Frepo Posted October 2 Report Share Posted October 2 (edited) I just got back to modding again after a long time away. I noticed the game is now .NET7-based. After downloading the SDK I started my old project and tried a rebuild, and got this error: My mod still works fine after I updated the game (no changes whatsoever to the mod). I'm not sure what to make of this error. I realized my project wasn't targeting the .NET7 framework. I guess that must be the cause of the error. Problem is, I can't select the .NET7 framework in my project settings. It simply isn't there! The SDK seems to be installed and working. Visual Studio is up to date. Someone at StackOverflow mentioned you should check the box "Use previews of the .NET SDK"-box, and so I did. Is there anything else I need to do to make VS find the new framework version? Edited October 3 by Frepo Link to comment Share on other sites More sharing options...
Frepo Posted October 3 Author Report Share Posted October 3 (edited) Re-installed Visual Studio and made sure the .NET desktop development workload is installed as well. Still same error. I'm not accustomed to visual studio at all, but I noticed that VintagestoryAPI.dll is compiled against an older runtime version of .NET (v4.x). This must be because VS i targeting a 4.x-framework (4.8 in my case), right? So changing the target framework to 7.x (if I only could) should recompile the assembly against that version instead, right? Edited October 3 by Frepo Link to comment Share on other sites More sharing options...
Streetwind Posted October 3 Report Share Posted October 3 You need to update your project, using an internal updater tool: https://devblogs.microsoft.com/dotnet/upgrade-assistant-now-in-visual-studio/ 1 Link to comment Share on other sites More sharing options...
Frepo Posted October 3 Author Report Share Posted October 3 37 minutes ago, Streetwind said: You need to update your project, using an internal updater tool: https://devblogs.microsoft.com/dotnet/upgrade-assistant-now-in-visual-studio/ Thanks man! You're an angel! Link to comment Share on other sites More sharing options...
Recommended Posts