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

Microsoft.TeamFoundationServer.Client 19.246.0-preview #14006

Open
BartNSTCL opened this issue Dec 18, 2024 · 4 comments
Open

Microsoft.TeamFoundationServer.Client 19.246.0-preview #14006

BartNSTCL opened this issue Dec 18, 2024 · 4 comments
Labels
Functionality:Restore Status:No recent activity No recent activity. Type:Bug WaitingForCustomer Applied when a NuGet triage person needs more info from the OP

Comments

@BartNSTCL
Copy link

NuGet Product Used

Visual Studio Package Management UI

Product Version

19.246.0-preview

Worked before?

19.225.1

Impact

It bothers me. A fix would be nice

Repro Steps & Context

When I try to upgrade from 19.225.1 to 19.246.0-preview, there is an error. It looks like the new version is trying to downgrade System.Security.Cryptography.ProtectedData to 6.0.0. Currently, I have version 9.0.0 installed.

Verbose Logs

Warning As Error: Detected package downgrade: System.Security.Cryptography.ProtectedData from 8.0.0 to 6.0.0. Reference the package directly from the project to select a different version.
NstclInterfaces.Models -> Microsoft.EntityFrameworkCore.SqlServer 9.0.0 -> Microsoft.Data.SqlClient 5.2.1 -> System.Configuration.ConfigurationManager 8.0.0 -> System.Security.Cryptography.ProtectedData (>= 8.0.0)
NstclInterfaces.Models -> Microsoft.TeamFoundationServer.Client 19.246.0-preview -> Microsoft.VisualStudio.Services.Client 19.246.0-preview -> System.Security.Cryptography.ProtectedData (>= 6.0.0)
@nkolev92
Copy link
Member

@BartNSTCL

Any chance you can provide us with a repro?

Another idea would be to attempt using the old resolver to ensure there's no regression.

You can read more at: https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#nuget-dependency-resolver.

@nkolev92 nkolev92 added the WaitingForCustomer Applied when a NuGet triage person needs more info from the OP label Dec 18, 2024
@BartNSTCL
Copy link
Author

If I update the csproj file with true, the 19.246.0-preview does install.

When I tried without the RestoreUseLegacyDependencyResolver, the License Acceptance shows a slightly different list of items than when the RestoreUseLegacyDependencyResolver was used.
Without (Nuget will not install after acceptance)
Screenshot 2024-12-19 105634

With(Nuget installs ok)
Screenshot 2024-12-19 105742

The project.assets.json was the the same for either way, except for the "restoreUseLegacyDependencyResolver": true, setting.

@microsoft-github-policy-service microsoft-github-policy-service bot added WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. and removed WaitingForCustomer Applied when a NuGet triage person needs more info from the OP labels Dec 19, 2024
@nkolev92
Copy link
Member

@BartNSTCL

Thanks for the quick response!

At what point did you capture the assets files?

Can you try adding the PackageReference item for the package manually and then restore with/without the property and capture the obj content?

In one of the assets files there should be errors like the one mentioned.

@microsoft-github-policy-service microsoft-github-policy-service bot added WaitingForCustomer Applied when a NuGet triage person needs more info from the OP and removed WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. labels Dec 20, 2024

This issue has been automatically marked as stale because we have not received a response in 14 days. It will be closed if no further activity occurs within another 14 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Restore Status:No recent activity No recent activity. Type:Bug WaitingForCustomer Applied when a NuGet triage person needs more info from the OP
Projects
None yet
Development

No branches or pull requests

2 participants