-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PrivateAsset PackageReferences causing framework dependencies to be dropped from the publish operation #17218
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
PrivateAssets should only control what compiler sees. It should not affect the output of the build. @nkolev92 any idea on this issue? |
Is the workaround for now to not have "PrivateAssets" in our projects? |
We'll track as #1019 so closing this. No plans to resolve this for now. |
The workaround is to also specify <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.9.0">
<PrivateAssets>All</PrivateAssets>
<Publish>true</Publish>
</PackageReference> More details here: #1019 (comment) |
Steps to Repro
System.Runtime.CompilerServices.Unsafe
to appear in the publish directoryExpected
6. Version 4.7.1 of
System.Runtime.CompilerServices.Unsafe
exists in the publish directory.Actual
6.
System.Runtime.CompilerServices.Unsafe
is missing from the publish directory.The text was updated successfully, but these errors were encountered: