-
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
dotnet build
fails with error NU1008 when directory tree contains multiple Directory.Packages.props files.
#40445
Comments
dotnet build
fails with error NU1008 when directory tree contains multiple Directory.Packages.props files.dotnet build
fails with error NU1008 when directory tree contains multiple Directory.Packages.props files.
Without a global.json, build in VS works but The logic for how to load the directory.build.props file comes from the common props in msbuild. CC @dotnet/kitten to comment on the best way to get the experience you want. |
In preview VS it fails always.
|
This is a behavior change caused by NuGet/NuGet.Client#5572. @JonDouglas called it out as a breaking change in NuGet/Home#11834 but I'm not sure that's documented as such yet. @jeffkl fyi. |
@rainersigwald , how do I disable it for the subtree then (
|
Explicitly set <PropertyGroup>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup> in the nested |
Ah, so I need to create it as well. Ok, thanks. |
Is there a way to keep it default as false? |
I've created empty
|
Describe the bug
I have a repository with multiple
Directory.Packages.props
files. I want to exclude some projects (tools
directory) from central package management.I can build solution in VS Version 17.9.6 (fails with Version 17.10.0 Preview 5.0) without issues, but
dotnet build
command fails with this error:It looks like the closest
Directory.Packages.props
file is ignored.To Reproduce
Here is the solution to reproduce the issue (sln file is in
Json.TestLogger directory
):CliBug.zip
Further technical details
dotnet --info
I've put
global.json
in root folder and it fixed the cli, but VS Version 17.10.0 Preview 5.0 still does not build.The text was updated successfully, but these errors were encountered: