Skip to content
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

NuGet update with packages.config doesn't consider targets files #9680

Open
brettfo opened this issue May 6, 2024 · 0 comments
Open

NuGet update with packages.config doesn't consider targets files #9680

brettfo opened this issue May 6, 2024 · 0 comments
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet

Comments

@brettfo
Copy link
Collaborator

brettfo commented May 6, 2024

Found in a package update in the wild, a .csproj/packages.config project (net462 TFM) had a dependency on System.Text.Json version 6.0.6 and a line in the project file looked like this:

...
<Import Project="..\packages\System.Text.Json.6.0.6\build\System.Text.Json.targets" Condition="Exists('..\packages\System.Text.Json.6.0.6\build\System.Text.Json.targets')" />
...

After updating System.Text.Json to 8.0.1, that path was expected to be updated to:

..\packages\System.Text.Json.8.0.1\buildTransitive\net462\System.Text.Json.targets"
@brettfo brettfo added the L: dotnet:nuget NuGet packages via nuget or dotnet label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
Status: Planned
Development

No branches or pull requests

1 participant