Skip to content

Commit 19c741e

Browse files
committed
support sourcelink
1 parent 5147930 commit 19c741e

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

.github/CODEOWNERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Each line is a file pattern followed by one or more owners
2+
# See: https://help.github.com/articles/about-codeowners/
3+
4+
# These owners will be the default owners for everything in the repo
5+
# Unless a later match takes precedence, they will be requested for
6+
# review when someone opens a pull request
7+
8+
* @biplovkc

.github/workflows/publish-to-nuget.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555

5656
- name: Create tag
5757
uses: actions/github-script@v5
58+
if: ${{ always() }}
5859
with:
5960
script: |
6061
github.rest.git.createRef({

Biplov.DDD.Essentials/Biplov.DDD.Essentials.csproj

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,26 @@
1212
<Description>Useful classes and interfaces to implement domain driven design pattern</Description>
1313
<LangVersion>latest</LangVersion>
1414
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
15-
</PropertyGroup>
15+
<DebugSymbols>true</DebugSymbols>
16+
<IncludeSymbols>true</IncludeSymbols>
17+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
18+
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
19+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1620

17-
<PropertyGroup>
18-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
19-
</PropertyGroup>
21+
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
22+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2023

24+
<!-- Recommended: Embed symbols containing Source Link in the main file (exe/dll) -->
25+
<DebugType>embedded</DebugType>
26+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
27+
</PropertyGroup>
28+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
29+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
30+
</PropertyGroup>
2131
<ItemGroup>
22-
<None Include="..\LICENSE" Pack="true" PackagePath=""/>
32+
<None Include="../README.md" Pack="true" PackagePath="."/>
33+
</ItemGroup>
34+
<ItemGroup>
35+
<PackageReference Include="Microsoft.SourceLink.Github" Version="1.1.1" PrivateAsserts="all" />
2336
</ItemGroup>
24-
2537
</Project>

Directory.Build.props

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)