Skip to content

Commit

Permalink
Fixes for sourcelink
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Nov 18, 2024
1 parent 6207115 commit fc1ed66
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Pack Release
if: ${{ success() && !github.event.release.prerelease && github.event_name == 'release' }}
run: |
dotnet pack -c Release --no-build --no-restore -o out
dotnet pack -c Release --no-build --no-restore -o out --include-symbols -p:SymbolPackageFormat=snupkg
- name: Publish to Github
uses: svenstaro/upload-release-action@v2
if: ${{ success() && !github.event.release.prerelease && github.event_name == 'release' }}
Expand Down
3 changes: 3 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Project>
<ItemGroup>
<PackageVersion Include="GitVersion.MsBuild" Version="6.0.5" />
<PackageVersion Include="Noggog.CSharpExt" Version="2.68.0" />
<PackageVersion Include="Noggog.CSharpExt" Version="2.69.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2">
Expand Down
22 changes: 6 additions & 16 deletions Loqui.Generation/Loqui.Generation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,18 @@
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<LangVersion>Latest</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702; 1998</NoWarn>
<WarningsAsErrors>NU1605, CS4014</WarningsAsErrors>
<DocumentationFile>Loqui.Generation.xml</DocumentationFile>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702; 1998</NoWarn>
<WarningsAsErrors>NU1605, CS4014</WarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
<Nullable>disable</Nullable>
<Authors>Noggog</Authors>
<Company>Noggog</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>Class generation that offers functionality like copy masks, defaulting masks, serialization, interface generation, and other tedious bits of class and interface definitions.</Description>
<IsPackable>true</IsPackable>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Loqui/Loqui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<LangVersion>Latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>preview</LangVersion>
<IsPackable>true</IsPackable>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<IsPackable>true</IsPackable>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
Expand Down

0 comments on commit fc1ed66

Please sign in to comment.