Closed donhuvy closed 3 years ago
@donhuvy thanks for contacting us.
It's not clear what's going on in your case, however we haven't made any changes in this area. I would suggest you look for a global.json in your solution or try to add one with the preview4 sdk version. In addition to that, clean all the bin and obj folders from your solution (I recommend deleting the files via the command line or with git clean)
@BrennanConroy looks related to https://github.com/dotnet/aspnetcore/pull/31784.
Thank @javiercn , @pranavkm for quick reply. I search in all solutions, I don't see file global.json
. I delete all bin
and obj
by Windows Explorer and in Recycle bin, but error is the same. I also clean solution, clean projects, build per project, build all solutions, the error is the same.
I read document, then I did
dotnet new globaljson --sdk-version 6.0.100-preview.4.21255.9
It works now with .NET 6.0.100-preview.4.21255.9 . Thank you very much!
I am using Microsoft Visual Studio Community 2019 Preview - Version 16.11.0 Preview 1.0 . My web-app work very well with .NET 6.0.0-preview.3.21201.13 . This is my upgrade process demonstrate by git diff
Error
If I try comment this line,
File
Startup.cs
How to fix it?
( You can see more at https://stackoverflow.com/questions/67723043/update-from-net-6-0-0-preview-3-21201-13-to-6-0-0-preview-4-21253-5-app-usebla )