Skip to content

Commit

Permalink
Enables SourceLink
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Oct 8, 2024
1 parent 8d19c9c commit acf5ca9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Kook.Net.targets
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/gehongyan/Kook.Net.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageTags>kook;kookapp</PackageTags>
<PackageReleaseNotes>See https://github.com/gehongyan/Kook.Net/releases</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand All @@ -26,17 +27,27 @@
<WarningLevel>6</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup>
<Version Condition=" '$(VersionSuffix)' == '' ">$(VersionPrefix)</Version>
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<None Include="../../README.md" Pack="true" PackagePath="\"/>
<None Include="../../LICENSE" Pack="true" PackagePath="\"/>
Expand Down

0 comments on commit acf5ca9

Please sign in to comment.