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 Package Updates Not Working #4188

Open
chocvanstraw opened this issue Nov 28, 2024 · 1 comment
Open

Nuget Package Updates Not Working #4188

chocvanstraw opened this issue Nov 28, 2024 · 1 comment

Comments

@chocvanstraw
Copy link

I just created an MSTest project targeting .net 9. When I go to the Nuget package manager it says I have 4 updates for the following packages:

Microsoft.NET.Test.Sdk 17.11.1 -> 17.12.0
MSTest.Analyzers 3.6.1 -> 3.6.3
MSTest.TestAdapter 3.6.1 -> 3.6.3
MSTest.TestFramework 3.6.1 -> 3.6.3

If I update all of the packages they seem to update fine (the versions change in the project that was updated). However, if I rebuild the solution, the 4 packages listed above all revert back to the previous version. If I go to the nuget package manager, it shows 4 updates again.

Before update:

Image

After update:

Image

After building the solution:

Image

@Youssef1313
Copy link
Member

Youssef1313 commented Nov 28, 2024

@chocvanstraw Thanks for reporting this. Are you using MSTest.Sdk?

If you're using MSTest.Sdk, please have a look at the limitations documented in https://github.com/dotnet/docs/blob/087483735e3284d6e4f7d078b7fe66ae57218b8c/docs/core/testing/unit-testing-mstest-sdk.md#known-limitations (the known limitations section will isn't yet published to https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-sdk, but hopefully it will be soon).

NuGet issue: NuGet/Home#13127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants