-
Notifications
You must be signed in to change notification settings - Fork 164
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
VS version selected does not contain required workloads #723
Comments
Looks like you don't have the web application workload in VS 2022. For now, try installing the workloads needed to build successfully in VS 2022 (or remove it from your system). We'll work on providing a way to select a VS version when multiple are installed. |
I've opened a design proposal that we'll keep open in lieu of this issue. Please reopen if the workaround does not work for you |
@twsouthwick One way to hack around this issue is to copy the |
Hi @twsouthwick Thanks |
I am trying to upgrade ASP.NET MVC Project targeted to .NET Framework 4.8 to .NET 5 using the .NET Upgrade Assistant tool. I am using VS2019 with update 16.10.3. I have followed steps from "https://docs.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-aspnetmvc" but I am getting the following error:
[18:19:12 INF] Loaded 3 extensions
[18:19:13 INF] MSBuild registered from C:\Program Files\dotnet\sdk\5.0.302
[18:19:15 INF] Initializing upgrade step Select an entrypoint
[18:19:15 INF] Setting entrypoint to only project in solution: C:\DXC\july21\MUV5_NewApp\MUV5_NewApp\MUV5_NewApp.csproj
[18:19:15 INF] Initializing upgrade step Select project to upgrade
[18:19:15 ERR] Project C:\DXC\july21\MUV5_NewApp\MUV5_NewApp\MUV5_NewApp.csproj cannot be loaded: The imported project "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets" is correct, and that the file exists on disk. C:\DXC\july21\MUV5_NewApp\MUV5_NewApp\MUV5_NewApp.csproj
[18:19:15 INF] No projects need upgraded for selected entrypoint
[18:19:15 INF] Initializing upgrade step Finalize upgrade
Upgrade Steps
I am seeking help on this.
Thanks in advance
Regards
Mahesh Sabnis
The text was updated successfully, but these errors were encountered: