Reputation: 319
My WPF required .NET framework higher than 4 in order to publish it in a single file. I updated my Visual Studio to the latest version like I read online but still the .NET framework only shows 4.7, 4.8 versions. I downloaded the latest version of Visual Studio and tried to install it. In Visual Studio Installer, I can't find .NET framework 7 anywhere. Did I miss something?
Modified question: My ultimate goal is to convert the .NET framework version in my WPF project. Currently, my WPF project looks like this in the Properties section:
After re-installed Visual Studio and .NET SDK to the latest version, I created a testing WPF app. I was able to choose .NET 7 framework like the image below but I had no luck with my current WPF app. It remained options of 4. versions.
Upvotes: 0
Views: 1147
Reputation: 319
I found my answer after 2 days of looking around on the Internet. I found a video from Microsoft website so I'd like to share in case someone encounter the same problem. For an existing project, there won't be .NET 7 available for the .NET target framework options in the Properties section. What you need to do is to download extension called ".NET Upgrade Assistant". After downloading it, right-click on the project, choose "Upgrade", then just following the steps to upgrade the target framework. Hope this help!
Upvotes: -1