Skip to content

Commit f83c165

Browse files
authored
Merge pull request #9 from GlebChili/package-fix
Update GmodNET.VersionTool.SourceGenerator.csproj
2 parents cd031ed + 38217ed commit f83c165

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

GmodNET.VersionTool.SourceGenerator/GmodNET.VersionTool.SourceGenerator/GmodNET.VersionTool.SourceGenerator.csproj

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,17 @@
3838
<Content Include="../../icon.png" PackagePath="/" />
3939
</ItemGroup>
4040

41-
<ItemGroup>
42-
<None Include="$(OutputPath)/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
43-
<None Include="$(OutputPath)/*.*" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
44-
<None Remove="$(OutputPath)/System.*.dll" />
45-
<None Remove="$(OutputPath)/Microsoft.*.dll" />
46-
<None Remove="$(OutputPath)/*.xml" />
47-
<None Remove="$(OutputPath)/*.pdb" />
48-
</ItemGroup>
41+
<Target Name="PackTaskDependencies" BeforeTargets="GenerateNuspec">
42+
<ItemGroup>
43+
<_PackageFiles Include="bin/$(Configuration)/netstandard2.0/*.*">
44+
<PackagePath>analyzers/dotnet/cs</PackagePath>
45+
</_PackageFiles>
46+
<_PackageFiles Remove="**/*.xml" />
47+
<_PackageFiles Remove="**/System.*.dll" />
48+
<_PackageFiles Remove="**/Microsoft.*.dll" />
49+
<_PackageFiles Remove="**/*.pdb" />
50+
</ItemGroup>
51+
</Target>
4952

5053
<ItemGroup>
5154
<Content Include="GmodNET.VersionTool.SourceGenerator.props" PackagePath="buildMultiTargeting/" />

0 commit comments

Comments
 (0)