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

Exclude project references with ReferenceOutputAssembly=false #1352

Merged
merged 1 commit into from
May 2, 2017

Conversation

emgarten
Copy link
Member

@emgarten emgarten commented May 1, 2017

Exclude project references with ReferenceOutputAssembly=false from Visual Studio restore

Projects with ReferenceOutputAssembly=false should be ignored during restore in Visual Studio. Transitive dependencies should not flow from these projects to the parent project.

I've tested this manually. I don't see a clear way to add unit tests for this without refactoring or making these private methods public which doesn't appear to go with the current design.

Fixes NuGet/Home#4992

…sual Studio restore

Projects with ReferenceOutputAssembly=false should be ignored during restore in Visual Studio. Transitive dependencies should not flow from these projects to the parent project.

Fixes NuGet/Home#4992
@rohit21agrawal
Copy link
Contributor

looks good. but why does this only happen from the VS Auto Restore? in other words, why isn't this a part of the common VS and CLI restore code path?

Copy link
Contributor

@rohit21agrawal rohit21agrawal left a comment

Choose a reason for hiding this comment

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

looks good generally, except with one question.

@emgarten
Copy link
Member Author

emgarten commented May 2, 2017

@rohit21agrawal this deals with how the inputs are collected. From VS it is sent to NuGet by the project system using a push model. From the command line we read it ourselves using MSBuild.

@emgarten emgarten merged commit 2bf857b into dev May 2, 2017
@emgarten emgarten deleted the dev-emgarten-referenceAssemblyOutputVS branch May 2, 2017 00:49
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