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

Disable automatic SDK references for internal tools #5417

Merged

Conversation

safern
Copy link
Member

@safern safern commented May 5, 2020

The latest SDK adds an automatic reference to Microsoft.NETFramework.ReferenceAssemblies if targeting full framework and the targeting pack can't be found in the machine:

dotnet/sdk@714c051#diff-81720bb5fb8b13c6dff8490812b4c44a

We should disable these references for repos to be able to restore internal tools with the newest SDK since in internal tools restore we shouldn't need to add nuget.org feed as the restore sources.

cc: @ericstj @tmat @ViktorHofer

@ViktorHofer
Copy link
Member

Don't we ever restore internal tools on Unix?

@safern
Copy link
Member Author

safern commented May 5, 2020

Test build just for the sake of seeing it work here: https://dev.azure.com/dnceng/internal/_build/results?buildId=631946&view=results

@safern
Copy link
Member Author

safern commented May 5, 2020

Don't we ever restore internal tools on Unix?

What do you mean? Yes this is actually failing on Unix because the ref pack is not present in those machines.

@safern
Copy link
Member Author

safern commented May 5, 2020

The test build went pass the restore internal tools step in all CoreCLR Unix legs and the Libraries Unix legs that got to that point.

@safern safern merged commit 566a7d2 into dotnet:master May 5, 2020
@safern safern deleted the DisableAutomaticReferencesInternalTools branch May 5, 2020 18:26
@ViktorHofer
Copy link
Member

I accidently believed that the refpack was necessary to restore.

Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants