Skip to content

Commit

Permalink
Added SourceLink support (#587)
Browse files Browse the repository at this point in the history
Do not copy the attributes when ILMerging, it's not required for the dependencies to work
  • Loading branch information
Aragas authored Mar 2, 2024
1 parent 37df904 commit 3a3a91d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Harmony/Harmony.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
<InformationalVersion>$(HarmonyVersion)$(HarmonyPrerelease)</InformationalVersion>
<NoWarn>$(NoWarn);SYSLIB0011;NU5131</NoWarn>
<Configurations>DebugThin;DebugFat;ReleaseThin;ReleaseFat</Configurations>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!--
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
-->
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)'=='net5.0' Or '$(TargetFramework)'=='net6.0' Or '$(TargetFramework)'=='net7.0' Or '$(TargetFramework)'=='net8.0'">
Expand Down Expand Up @@ -75,6 +81,7 @@
<PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.26" PrivateAssets="all" />
<!-- Reference assemblies are needed for non-Windows .NET Framework targeting builds. -->
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>

<!-- netstandard2.0 reference assemblies -->
Expand Down
2 changes: 1 addition & 1 deletion ILRepack.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ILRepack
InputAssemblies="@(InputAssemblies)"
OutputFile="$(OutputPath)\$(AssemblyName).dll"
CopyAttributes="true"
CopyAttributes="false"
XmlDocumentation="true"
Internalize="true"
Parallel="true"
Expand Down

0 comments on commit 3a3a91d

Please sign in to comment.