Skip to content

Disable automatic SDK references for internal tools - #5417

Merged
safern merged 1 commit into
dotnet:masterfrom
safern:DisableAutomaticReferencesInternalTools
May 5, 2020
Merged

Disable automatic SDK references for internal tools#5417
safern merged 1 commit into
dotnet:masterfrom
safern:DisableAutomaticReferencesInternalTools

Conversation

@safern

@safern safern commented May 5, 2020

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Don't we ever restore internal tools on Unix?

@safern

safern commented May 5, 2020

Copy link
Copy Markdown
Member Author

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

@safern

safern commented May 5, 2020

Copy link
Copy Markdown
Member Author

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

safern commented May 5, 2020

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Member

I accidently believed that the refpack was necessary to restore.

@ViktorHofer ViktorHofer left a comment

Copy link
Copy Markdown
Member

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