-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make it easier to express dependencies among projects without referencing output assembly #3843
Comments
From @nguerrera on October 8, 2018 23:45 |
Any change here would need to live on the MSBuild side of the fence, because you can have dependencies to SDK projects from non-SDK projects. |
I don't think adding a new item type is the right way to fix this, because I wish we had made We could potentially just add a |
I agree with everything you wrote. There are actually two workarounds here vs. the desire of just saying ReferenceOutputAssembly="false"
Since it doesn't seem we can compatibly make ReferenceOutputAssembly="false" the master switch, I vote +1 on BuildOderingOnly="true" or some other new metadata. |
From @tmat on October 8, 2018 23:44
It is sometimes necessary to build project A before project B without project B referencing the assembly that A generates. In such cases one can use
ProjectReference
withReferenceOutputAssembly="false"
.This however is not sufficient in all scenarios, especially when these projects target different, incompatible frameworks and/or multi-target.
Turns out 3 properties need to be set to make this work:
This is much more complex than it should be.
Proposal: introduce a new item that can be use to express that this project depends on building another project, but has no implication on references. Such item could be called e.g.
ProjectBuildOrderDependency
,DependsOnProject
, etc.Copied from original issue: dotnet/sdk#2574
The text was updated successfully, but these errors were encountered: