Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Disable automatic package restore in VS #10190

Merged
merged 1 commit into from
Jul 20, 2016

Conversation

nguerrera
Copy link
Contributor

It is breaking the VS build unless you disable it globally, which would interfere with work on other projects that depend on it working.

I assume that running sync.cmd to restore packages is already a requirement before opening projects in VS, so this shouldn't break anything, but makes the VS experience work without damaging your global VS settings.

It is breaking the VS build unless you disable it globally,
which would interfere with work on other projects that
depend on it working.
@stephentoub
Copy link
Member

cc: @maririos, @MattGal, @ellismg

@@ -10,4 +10,9 @@
<config>
<add key="repositoryPath" value="..\packages" />
</config>
<packageRestore>
<!-- Automated package restore in VS does not work at this time with
this project and it causes build failures in VS. Disable it. -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Just so I understand, this is essentially unchecking the Automatically check for missing packages during build in Visual Studio option in VS, but only for things in corefx?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

@mellinoe
Copy link
Contributor

Looks good to me; I've long since disabled that setting globally since I find it kind of distracting/slow. And you are correct, restoring packages outside of VS is required unless something has changed. At various points in time, the built-in package manager couldn't actually successfully restore any of our projects. It probably still can't.

@stephentoub stephentoub merged commit dc9c565 into dotnet:master Jul 20, 2016
@nguerrera nguerrera deleted the disable-vs-auto-restore branch July 21, 2016 00:38
@karelz karelz modified the milestone: 1.1.0 Dec 3, 2016
macrogreg pushed a commit to open-telemetry/opentelemetry-dotnet-instrumentation that referenced this pull request Sep 24, 2020
…-restore

Disable automatic package restore in VS

Commit migrated from dotnet/corefx@dc9c565
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants