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
Failure to load dotnet/runtime project or solution #49384
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. |
It would be interesting to get a binlog. I don't know how the MSBuild workplace evaluates projects and how it interacts with the Roslyn compilation. Note that the SDK that is not finding is an SDK we have for our custom target framework support that lives in arcade. cc: @rainersigwald |
This is probably a duplicate of microsoft/MSBuildLocator#88. |
@rainersigwald the linked issue has been open since April, but has not yet been fixed or investigated. This is currently blocking us, the runtime team, from being able to advance in a project we are working on. Would you mind taking a closer look? |
@safern and I took a deeper look at this, and we solved it with a combination of:
|
When I try to load a
src
project from thedotnet/runtime
repo, it comes back without any documents, and the compilation has no symbols.I found this message among the workspace diagnostic errors:
I tried adding the nuget package of that SDK into my project. I found it in my the folder
C:\Users\carlos\.nuget\packages
. It showed up there after building thedotnet/runtime
repo.But adding that nuget package to my project causes this error to show up when attempting to build the project:
It comes from
C:\Users\carlos\.nuget\packages\microsoft.dotnet.build.tasks.targetframework.sdk\6.0.0-beta.20554.1\build\Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.targets
line 79.Here is a code snippet that repros the problem:
cc @safern @jaredpar
The text was updated successfully, but these errors were encountered: