-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot load or run lots of my projects in my solution after installing .NET 7 #28947
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Just updated VS and I'm getting the same error when I open my .net 6 projects (without a Project without a
Project with a
|
I tried to hack the problem locally pending a proper fix. My error message states that there is a conflict between two manifests (macOS arm64, hence the paths): I'm not entirely sure how these are intended to work, but I saw "there is a conflict" and thought "what if I remove one of them?". So I deleted (moved elsewhere just in case) the
Now, Obviously this is just a temporary hack, your mileage may vary, and I don't know if this can damage some setups, I'm not endorsing that everyone affected should do this while waiting for the fix. Just hoping it can help some people in the meantime. Edit: I should mention: macOS 13.0 arm64, .NET 7.0 SDK arm64 GA directly, no Visual Studio, here are all my SDKs installed:
|
Following up on the workaround by @pascallapradebrite4 if I remove Contents of
|
Just realized there was still a preview version of the sdk installed. I assumed this would be cleaned up when updating since I never manually installed this, but I guess it wasn't. After updating I did restart like it suggested so it's not due to a cleanup task not running yet. I manually uninstalled |
@xt0rted faced same issue, followed your instruction. deleted the folder, and everything is fine again :) |
I'm not sure about deleting anything that I don't know. I'm scared if it makes it worse. |
Don't delete, but move it to some other outer folder. If things get worse - just move it back :) |
@sencagri you have a pre-release version of dotnet 7 installed (7.0.100-rc.2.22477.23), uninstall that and see if the errors persist. When I uninstalled the preview that was left on my machine the issues went away. |
Sorry you're dealing with this; it sucks to get an update and then suddenly have your things break. The official guidance we have for you atm is to uninstall any preview SDKs, like @xt0rted mentioned. Some workload files in some of the preview SDKs will conflict with the RTM / official .NET 7 SDK release. @pascallapradebrite4's suggestion to delete the As for why, I believe In the middle of preview development some workload content got renamed, with |
In my case, on Mac I had to
|
I have deleted the folders you mentioned. Now I'm able to load projects but cannot build anymore. I am getting these errors:
What is "restore" mean? |
Unfortunately, the dotnet documentation isn’t clear about it. Have you reinstalled the SDKs? |
I have the same issue. Fortunately, I have two computers running the same version of .NET 7.0 / Visual Studio 2022 with the same workloads. One works fine and the other is broken. I checked the path I deleted the extra folder, and now the .NET 7.0 / Visual Studio works fine. The error message:
|
@xt0rted FINALLY A (partial) SOLUTION! Notes:
I've had this (or very similar) issue since June 15 2022 (judging by folder dates modified) which coincides with the Jun 14, 2022 release of .NET 7 Preview 5. I had originally tried the .NET 7.0 Preview due to bugs in .NET6.0 that prevented publishing Trimmed & SelfContained executables. Today I upgraded to dotnet7.0 RTM. This broke BOTH VS2022Pro & VS2022ProPreview so I'm now dead in the water. This time though, Google actually has search result because everyone's been upgrading to dotnet7.0.
My new issue / return of the Publish issue:I originally went to VS2022ProPreview with .NET 7.0 Preview 5 because publishing with .NET6.0 would always result in:
Contents of C:\Users\Derek\AppData\Local\Temp\tmp5DAA.tmp:
Build Output:
Yet, the project builds just fine in Debug & Release mode. It's only for publish that Publish worked before the update. @walterlv or anyone else. Can you verify Publish still works after deleting the mono folder? |
I was able to build and debug some of my projects before deleting the folder mentioned above. After deleting, I cannot debug & build or publish. Things I have tried but build: What about installing a zero Windows 10 & 11 ? What is the fastest way to workaround before official solution? |
The uninstall tool has an artificial limitation not to uninstall SDK 7+ versions, and the issue is open since August (dotnet/cli-lab#230). Ironically, I tried cloning the repository to apply the fix and run it, but it failed to build because of the exact issue described here. |
@DerekZiemba Any suggestions for me to verify the Publish? I've published some of my WPF / MAUI / Asp.NET projects and succeeded. I can't figure out which type of project will use the mono workload to verify the lack of the deleted folder. |
Have same issue, deleting microsoft.net.workload.mono.toolchain helped alot on my mac. Kudos to @pascallapradebrite4 for workaround. Anyway, i am guessing that one of net 7/6 preview versions had improper folder name |
@walterlv I'm just publishing a console app that doesn't show a window. Its purpose is a launcher and updater. Also I checked my shadow volume checkpoint history and my
There's also a stackoverflow thread about this https://stackoverflow.com/questions/74365441/sdk-resolver-failure-net-7-net-6 They said to uninstall the previews. Which I do have installed and am in the process of removing. Will report back if it fixes things. EDIT: Everything works for me now. Better than it ever has actually. I've been putting up with an issue where dotnet core, standard, new framework , & anything except dotnet framework <4.8.1 project templates wouldn't appear in the new project menus. That's fixed too now. To get it to publish I had to remove the following from the project file <TargetFramework>net7.0-windows10.0.17763.0</TargetFramework>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion> |
Also hitting this. |
@xt0rted Many thanks. It was Microsoft .NET SDK 7.0.100-preview.3.22179.4 in my case. |
metoo, can't open projects after updating VS:
|
See context here: dotnet/sdk#28947
Had the same problem on Macbook Arm64 What helped me:
Also i checked in Rider 2022.2 and 2022.3 EAP 7 and works fine there as well |
I have installed everything from zero. Now everything works. Thanks for help. |
@sencagri Glad to hear! Thanks for reaching out and working it through with us. |
Uninstalling all of the .NET 7 Preview releases resolved the issue for me |
ended up removing |
I only unintall the NET CORE 7 preview from my PC and It works for me. I hope that It will be usefull |
same issue, no projects could be loaded after the vs/net 7.0 update. Removing the microsoft.net.workload.mono.toolchain directory fixed it. Thank you very much 👍 |
Deleting: C:\Program Files\dotnet\sdk-manifests\7.0.100\microsoft.net.workload.mono.toolchain |
I don't have evident to prove it now but what it looked like to me from the CLI output was that .NET 7.0.100 was showing up as a preview. I uninstalled via add/remove programs - then installed via |
macos:
this issue can happen if you previously installed preview or candidate versions, i had also to cleanup other folders for that related to -rc version of the same |
None of these fixes have worked for me. I had VS 2022 Preview installed before, but have since removed it. I have no preview version of .NET 7 installed, I have tried removing .NET 7 and re-installing. Nothing mentiond here has worked. I do not have this |
My symptoms were:
Strange enough, it seems somehow my SDK for Android API 31 somehow was either never installed or was uninstalled during the upgrade. I'm 99% sure it was installed because I have targeted that API for over 3 months now. Well, it turns out it wasn't, so I installed the API through the Android SDK manager, and now it works. |
This happened to me too; deleting the preview sdk fixed it. The error I was seeing:
|
Edit + General Resolution (from @nagilson):
This is now documented as a known issue for .NET 7 and a resolution is provided here.
Describe the bug
I just installed the last update of visual studio. Then, this happened, I cannot open my projects.

C:\Users\PC2\source\repos\AktifPOS\AktifBarkod.AktifPOS.Data\AktifBarkod.AktifPOS.Data.csproj : error : SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver" failed while attempting to resolve the SDK "Microsoft.NET.Sdk". Exception: "Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestCompositionException: Workload definition 'wasm-tools' in manifest 'microsoft.net.workload.mono.toolchain' [C:\Program Files\dotnet\sdk-manifests\7.0.100\microsoft.net.workload.mono.toolchain\WorkloadManifest.json] conflicts with manifest 'microsoft.net.workload.mono.toolchain.net7' [C:\Program Files\dotnet\sdk-manifests\7.0.100\microsoft.net.workload.mono.toolchain.net7\WorkloadManifest.json]
at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.ComposeWorkloadManifests()
at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.Create(IWorkloadManifestProvider manifestProvider, String dotnetRootPath, String sdkVersion, String userProfileDir)
at Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.CachingWorkloadResolver.Resolve(String sdkReferenceName, String dotnetRootPath, String sdkVersion, String userProfileDir)
at Microsoft.DotNet.MSBuildSdkResolver.DotNetMSBuildSdkResolver.Resolve(SdkReference sdkReference, SdkResolverContext context, SdkResultFactory factory)
at Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.TryResolveSdkUsingSpecifiedResolvers(IList`1 resolvers, Int32 submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, String solutionPath, String projectPath, Boolean interactive, Boolean isRunningInVisualStudio, SdkResult& sdkResult)"" C:\Users\PC2\source\repos\AktifPOS\AktifBarkod.AktifPOS.Data\AktifBarkod.AktifPOS.Data.csproj
To Reproduce
Exceptions (if any)
Further technical details
.NET SDK:
Version: 7.0.100
Commit: e12b7af
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.100\
Host:
Version: 7.0.0
Architecture: x64
Commit: d099f075e4
.NET SDKs installed:
3.1.424 [C:\Program Files\dotnet\sdk]
5.0.301 [C:\Program Files\dotnet\sdk]
5.0.414 [C:\Program Files\dotnet\sdk]
6.0.100-rc.1.21463.6 [C:\Program Files\dotnet\sdk]
6.0.200 [C:\Program Files\dotnet\sdk]
7.0.100-rc.2.22477.23 [C:\Program Files\dotnet\sdk]
7.0.100 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0-rc.1.21452.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-rc.2.22476.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-rc.1.21451.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-rc.2.22472.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.30 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0-rc.1.21451.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-rc.2.22472.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
arm64 [C:\Program Files\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\arm64\InstallLocation]
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
PS C:\Users\PC2>
The text was updated successfully, but these errors were encountered: