Przeglądaj źródła

Adding SourceLink

Vicente Penades 4 lat temu
rodzic
commit
72290bc49f

+ 1 - 0
src/SharpGLTF.Core/SharpGLTF.Core.csproj

@@ -17,6 +17,7 @@
   <Import Project="..\Version.props" />
   <Import Project="..\Analyzers.props" />
   <Import Project="..\Testing.props" />
+  <Import Project="..\SourceLink.props" />
   
   <ItemGroup>
     <Compile Include="..\Shared\Guard.cs" Link="Diagnostics\Guard.cs" />

+ 2 - 1
src/SharpGLTF.Toolkit/SharpGLTF.Toolkit.csproj

@@ -11,7 +11,8 @@
   <Import Project="..\PackageInfo.props" />
   <Import Project="..\Version.props" />
   <Import Project="..\Analyzers.props" />
-  <Import Project="..\Testing.props" />  
+  <Import Project="..\Testing.props" />
+  <Import Project="..\SourceLink.props" />
 
   <ItemGroup>
     <Compile Include="..\Shared\Guard.cs" Link="Diagnostics\Guard.cs" />

+ 6 - 2
src/SourceLink.props

@@ -1,8 +1,12 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project>
+
+  <!-- https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/ -->
 
   <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
 
+    <Deterministic>true</Deterministic>
+
     <GitRepositoryRemoteName>github</GitRepositoryRemoteName>
 
     <!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
@@ -14,7 +18,7 @@
   </PropertyGroup>
 
   <ItemGroup Condition=" '$(Configuration)' == 'Release' ">
-    <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
+    <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0" PrivateAssets="All"/>
   </ItemGroup>
 	
 </Project>