oleg-st / InlineMethod.Fody

Inline methods in compile time
MIT License
14 stars 2 forks source link

Automatically set `<PrivateAssets>all</PrivateAssets>` #9

Closed WalkerCodeRanger closed 3 weeks ago

WalkerCodeRanger commented 2 months ago

There is some way to configure the NuGet package to automatically add <PrivateAssets>all</PrivateAssets> when the package is added in Visual Studio. Even Fody itself does this for v6.8.1. It would be good to set that up and then you wouldn't have that setup step and the install and setup would be eaiser.

oleg-st commented 2 months ago

Fody has <DevelopmentDependency>true</DevelopmentDependency>, which adds <PrivateAssets>all</PrivateAssets> and <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> to <PackageReference>.

We only need PrivateAssets="all" without <IncludeAssets>. I don't see any Fody addins that automatically set <PrivateAssets>.