我有一个.NET Core Blazor Server应用程序,该应用程序当前使用.NET Core的6.03版。
6.04版本是几天前发布的,我需要升级该项目,然后发布该项目,以便它使用新的位。
我有:
-
从
-
我还使用nuget确保所有液体都在6.04上。
但是,当我打开项目并检查文件版本时,它仍在使用6.03。
我已经寻找项目文件中的任何设置,这些设置将指示哪个版本的.NET 6使用,但我看不到任何此类设置。我只看到这样的设置:
<TargetFramework>net6.0</TargetFramework>
有什么方法可以让VS使用6.04而不是6.03?
I have a .net core Blazor Server App which is currently using version 6.03 of .net core.
Version 6.04 came out a few days ago, and I need to upgrade the project and then publish it so it is using the new bits.
I have:
-
Install the latest SDK from here which includes 6.04.
-
I also used Nuget to ensure all libs are on 6.04.
However, when I open the project, and check the file versions, it is still using 6.03.
I have looked for any setting in the project file that would indicate which version of .net 6, it is using, but I don't see any such setting. I only see this setting:
<TargetFramework>net6.0</TargetFramework>
Is there some way to get VS to use 6.04 instead of 6.03?
经过相当多的工作,我发现次要版本与您正在使用的Visual Studio版本相关。
因此,我正在使用VS 2022版本17.2.0 Preview 4,并且该版本尚未发布.NET 6.0.4位。因此,这些版本无法访问这些位。
但是,已发布6.0.4位的VS 2022版本17.1.5。因此,通过下载和安装17.1.5,该项目随后使用6.0.4打开,而没有任何其他更改。
我敢肯定,很快将很快发布17.2版的位。
After quite a bit of working with this, I found that the minor version is tied to the Version of Visual Studio that you are using.
So, I was using VS 2022 Version 17.2.0 Preview 4, and the .net 6.0.4 bits had not been released yet for this version. So those bits are not accessible from this version.
However, the 6.0.4 bits have been released for VS 2022 Version 17.1.5. So by downloading and installing 17.1.5, the project then opened up using 6.0.4 without any other changes.
I am sure that soon the bits will be released for the 17.2 version soon.