Skip to content

Commit

Permalink
Fix source generator packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Jan 22, 2024
1 parent e2d054d commit 7f2bf23
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Generate NuGet packages
run: dotnet pack --configuration Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output ./packages
run: dotnet pack --configuration Release --no-build --output ./packages
- uses: actions/upload-artifact@v2
with:
name: Artifacts
Expand Down
6 changes: 1 addition & 5 deletions Tsu.TreeSourceGen/src/Tsu.TreeSourceGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>

<IsRoslynComponent>true</IsRoslynComponent>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<GenerateDocumentationFile>false</GenerateDocumentationFile>

<Copyright>GGG KILLER © 2024</Copyright>
<PackageId>Tsu.TreeSourceGen</PackageId>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<Description>A source generator that creates visitors for your trees.</Description>
</PropertyGroup>

Expand Down
6 changes: 5 additions & 1 deletion build/Settings.Library.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project>

<!-- Nothing currently -->
<PropertyGroup>
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

</Project>
16 changes: 15 additions & 1 deletion build/Settings.SourceGenerator.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
<Project>

<!-- Nothing currently -->
<PropertyGroup>
<NoWarn>$(NoWarn);NU5128</NoWarn>

<IsRoslynComponent>true</IsRoslynComponent>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<IncludeBuildOutput>false</IncludeBuildOutput>

<IncludeSymbols>false</IncludeSymbols>
<SymbolPackageFormat></SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

</Project>
5 changes: 1 addition & 4 deletions build/Settings.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!-- Package props -->
<PropertyGroup>
<Authors>GGG KILLER</Authors>
<Copyright>GGG KILLER © 2022</Copyright>
<Copyright>GGG KILLER © 2022~2024</Copyright>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<RepositoryUrl>https://github.com/GGG-KILLER/Tsu</RepositoryUrl>
Expand All @@ -29,9 +29,6 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

</Project>

0 comments on commit 7f2bf23

Please sign in to comment.