-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cannot transitively reference a csproj+project.json #1112
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
Comments
I've verified that the problem also happens when building with full-framework commandline MSBuild (version 15.1.1012.6693) |
@AndyGerlicher @rainersigwald can you guys help take a look? @gulbanana please note that this will not work through |
I don't see this with |
Oh wow, i had unpushed commits in my local copy of the repo.. sorry, it should reproduce now! Here's the output of The content of the project.json file which is claimed to be invalid:
My guess is that the MSB4025 error indicates it's trying to load the project.json as an msbuild project file, which of course won't work. |
With that I'm now able to reproduce this, thanks. You're right--the SDK includes transitive project references as It looks like this was done intentionally in #478, but I don't know the full implications. @emgarten, is this a problem in the SDK layer, or is NuGet reporting bad information here? |
This looks like the same issue as #922 The error there is:
The workaround for this is to reference the project directly instead of getting it as a transitive project reference. |
That workaround works (around) for me. |
Let's track it though #922. |
…118.10 (dotnet#1112) - Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19568.10
Steps to reproduce
dotnet build
The bug also occurs when building in Visual Studio.
The text was updated successfully, but these errors were encountered: