ExcludeAssets="compile"
has no effect on ProjectReference
.
#47403
Labels
ExcludeAssets="compile"
has no effect on ProjectReference
.
#47403
Describe the bug
I have a project that depends on another project at runtime, but must not reference it at compile time. In order to achieve this, I tried adding an
ExcludeAssets="compile"
metadata to theProjectReference
, but it had no effect and the second project was visible to the compiler.To Reproduce
Build this solution. It should fail with a compile error but it does not.
Exceptions (if any)
Further technical details
Using .NET SDK 9.0.200.
The text was updated successfully, but these errors were encountered: