-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find & set .Net6 as Target Framework with VisualStudio2022 #8493
Comments
Is there a |
hi @steveharter , there is no global.json. |
However, I previously was using VS2019, I did not uninstall VS2019 before I install the VS2022. This is due to I still need some dev work using VS2019. But again, there should not be a global.json file. |
Hi @mairaw , it's a vanilla console app project. Below is the csproj file And this is the result from the cmd you mentioned |
The second file location is where I've currently installed my .Net6 SDK. The 1st one is a previous login to Windows which is no longer in used. currently I'm using |
I'd try to change the path so the second entry comes first or simply remove the first entry from the PATH. This might be messing VS. Some instructions on how to do that can be found at #5962 (comment) |
Hi @mairaw , it looks like when building the solution, it is still trying to look for the SDK under this path.
However, from my dotnet folder, the layout should look like below format
Do you know how to fix the issue? |
I've uninstalled all SDKs, runtime related to .Net6 and reinstalled VS22 completely. The issue seems resolved for me now, thank you for help on this! |
Hello Team,
I'm trying to setup the workspace for .Net6 development environment.
I've installed the VS2022 with newest release (also tested with older version like 17.5.4) and specifically installed the .Net6 SDK. See below results from cmd & folder
Then I used the VS2022 to create a completely new project with ConsoleApp type.
During the creation steps, I was able to see the .Net6 option and select it
But after the project is created and try to build the solution, it gave me below errors.
And from the solution properties, I was not able to see the .Net6 sdk from the dropdown list
I've downloaded the .Net6 SDK from here for x64. (Also tried with x86 and did not work as well)
Please kindly let us know how could we resolve the issue as it is blocking us, would really appreciate it!
Thanks again!
The text was updated successfully, but these errors were encountered: