VS: Disable ReferenceOutputAssembly for projects with no output
Our logic that sets ReferenceOutputAssembly
in ProjectReference
has
accumulated a series of conditions for different cases in which the
referenced target has no output. Simplify the condition to check
GetManagedType
directly for cases with no output.
Disable ReferenceOutputAssembly for projects with no output.
This will explicitly turn off ReferenceOutputAssembly
in ProjectReference
for special (i.e. ZERO_CHECK) and utility (i.e. add_custom_target) targets, while referencing all the targets that produce output.
Added test to verify the content of generated UWP app package.
Fixes: #19665 (closed)
Topic-rename: vs-ReferenceOutputAssembly-conditions
Edited by Brad King