dotnet / dotnet/msbuild

On a ProjectReference, setting ReferenceOutputAssembly=false and Private=true does not copy the reference to the output without referencing it

Open
#1,916 8 comments 11 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

As far as I can see, the problem is that if `ReferenceOutputAssembly` is set to `false`, then the project will not be added to `_ResolvedProjectReferencePaths`, which is what gets passed to RAR, so RAR never even has the reference to consider.

I would expect ReferenceOutputAssembly to prevent the compiler from seeing the reference, but not prevent copying as a dependency (say, for reflection purposes).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.