Skip to content

Commit c87b33f

Browse files
authored
Add RemovePackageFrameworkReferences target to remove the framework reference from the package (#672)
1 parent 4bcdba8 commit c87b33f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Microsoft.VisualStudio.SlnGen/Microsoft.VisualStudio.SlnGen.csproj

+9
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,13 @@
5555
<RuntimeFramework Update="@(RuntimeFramework)" Version="$(_PreviousRuntimeFramework)" />
5656
</ItemGroup>
5757
</Target>
58+
<!--
59+
By default, NuGet includes "framework references" so that packages can import CLR assemblies, but this kind of package does not need them added to
60+
projects that reference this package.
61+
-->
62+
<Target Name="RemovePackageFrameworkReferences" AfterTargets="_WalkEachTargetPerFramework">
63+
<ItemGroup>
64+
<_FrameworkAssemblyReferences Remove="@(_FrameworkAssemblyReferences)" />
65+
</ItemGroup>
66+
</Target>
5867
</Project>

0 commit comments

Comments
 (0)