Skip to content

Commit fc1ed66

Browse files
committed
Fixes for sourcelink
1 parent 6207115 commit fc1ed66

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

.github/workflows/ci-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: Pack Release
9898
if: ${{ success() && !github.event.release.prerelease && github.event_name == 'release' }}
9999
run: |
100-
dotnet pack -c Release --no-build --no-restore -o out
100+
dotnet pack -c Release --no-build --no-restore -o out --include-symbols -p:SymbolPackageFormat=snupkg
101101
- name: Publish to Github
102102
uses: svenstaro/upload-release-action@v2
103103
if: ${{ success() && !github.event.release.prerelease && github.event_name == 'release' }}

Directory.Build.props

+3
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<ImplicitUsings>true</ImplicitUsings>
77
</PropertyGroup>
8+
<ItemGroup>
9+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
10+
</ItemGroup>
811

912
</Project>

Directory.Packages.props

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<Project>
22
<ItemGroup>
33
<PackageVersion Include="GitVersion.MsBuild" Version="6.0.5" />
4-
<PackageVersion Include="Noggog.CSharpExt" Version="2.68.0" />
4+
<PackageVersion Include="Noggog.CSharpExt" Version="2.69.0" />
55
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
66
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
7+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
78
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
89
<PackageVersion Include="xunit" Version="2.9.2" />
910
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2">

Loqui.Generation/Loqui.Generation.csproj

+6-16
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,18 @@
33
<PropertyGroup>
44
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<LangVersion>Latest</LangVersion>
6-
</PropertyGroup>
7-
8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<NoWarn>1701;1702; 1998</NoWarn>
10-
<WarningsAsErrors>NU1605, CS4014</WarningsAsErrors>
11-
<DocumentationFile>Loqui.Generation.xml</DocumentationFile>
12-
<DebugType>embedded</DebugType>
13-
<DebugSymbols>true</DebugSymbols>
14-
</PropertyGroup>
15-
16-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
17-
<NoWarn>1701;1702; 1998</NoWarn>
18-
<WarningsAsErrors>NU1605, CS4014</WarningsAsErrors>
19-
</PropertyGroup>
20-
21-
<PropertyGroup>
226
<Nullable>disable</Nullable>
237
<Authors>Noggog</Authors>
248
<Company>Noggog</Company>
259
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2610
<Description>Class generation that offers functionality like copy masks, defaulting masks, serialization, interface generation, and other tedious bits of class and interface definitions.</Description>
2711
<IsPackable>true</IsPackable>
12+
<DebugType>portable</DebugType>
13+
<DebugSymbols>true</DebugSymbols>
14+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
15+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
16+
<IncludeSymbols>true</IncludeSymbols>
17+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2818
</PropertyGroup>
2919

3020
<ItemGroup>

Loqui/Loqui.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<LangVersion>Latest</LangVersion>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<LangVersion>preview</LangVersion>
8+
<IsPackable>true</IsPackable>
89
<DebugType>portable</DebugType>
910
<DebugSymbols>true</DebugSymbols>
10-
<IsPackable>true</IsPackable>
1111
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1212
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1313
<IncludeSymbols>true</IncludeSymbols>

0 commit comments

Comments
 (0)