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

Update Microsoft.Build.Locator version #4247

Merged
merged 1 commit into from
Sep 9, 2021
Merged

Conversation

erdembayar
Copy link
Contributor

@erdembayar erdembayar commented Sep 4, 2021

Bug

Fixes: NuGet/Home#11158
Related to NuGet/Home#11169
Regression? Last working version: n/a

Description

Open NuGet.sln in VS, set NuGet.CommandLine.XPlat as startup project, set Debug command line parameters as package list SomeProject.csproj --deprecated (any report type should fail) and debug. You will see:

error: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I investigated this issue with @jeffkl and it happens to be Microsoft.Build.Locator issue. It's same as microsoft/MSBuildLocator#95

After this change I manually tested above scenario works, I'll add tests with when addressing NuGet/Home#11169

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@erdembayar erdembayar requested a review from a team as a code owner September 4, 2021 00:55
@erdembayar
Copy link
Contributor Author

@NuGet/nuget-client
Please review, I want to merge by today evening.

@erdembayar erdembayar merged commit f4ae349 into dev Sep 9, 2021
@erdembayar erdembayar deleted the dev-eryondon-11158 branch September 9, 2021 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: F5 for XPlat CLI fails due to missing assembly (may need retarget to net6.0)
3 participants