Skip to content

Commit

Permalink
Drop NuGetizer from packaging project
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Apr 6, 2023
1 parent 04ebf1a commit ae564c5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
7 changes: 0 additions & 7 deletions src/Directory.Build.props

This file was deleted.

21 changes: 16 additions & 5 deletions src/PolySharp.Package/PolySharp.Package.msbuildproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>

<!--
This ignores the following warning:
"NU5128: some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not
have exact matches in the other location. [...] Add lib or ref assemblies for the netstandard2.0 target framework."
This happens because the package only includes an analyzer, and no binaries to reference at runtime at all.
<--
<NoWarn>$(NoWarn);NU5128</NoWarn>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -12,19 +20,22 @@
</PropertyGroup>

<ItemGroup>
<None Include="icon.png" PackagePath="icon.png" Pack="true" />
<None Include="README.md" PackagePath="README.md" Pack="true" />
<None Include="icon.png" PackagePath="\" Pack="true" />
<None Include="README.md" PackagePath="\" Pack="true" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\PolySharp.SourceGenerators\PolySharp.SourceGenerators.csproj" PackFolder="analyzers\dotnet\cs" />
<ProjectReference Include="..\PolySharp.SourceGenerators\PolySharp.SourceGenerators.csproj" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup Label="Package">

<!-- Include the custom .targets file to check the source generator -->
<None Include="..\PolySharp.SourceGenerators\PolySharp.targets" PackagePath="buildTransitive\PolySharp.targets" Pack="true" />
<None Include="..\PolySharp.SourceGenerators\PolySharp.targets" PackagePath="build\PolySharp.targets" Pack="true" />
<None Include="..\PolySharp.SourceGenerators\PolySharp.targets" PackagePath="buildTransitive\" Pack="true" />
<None Include="..\PolySharp.SourceGenerators\PolySharp.targets" PackagePath="build\" Pack="true" />

<!-- Pack the source generator binary -->
<None Include="..\PolySharp.SourceGenerators\bin\$(Configuration)\netstandard2.0\PolySharp.SourceGenerators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" />
</ItemGroup>

</Project>

0 comments on commit ae564c5

Please sign in to comment.