Skip to content

Commit

Permalink
Add SourceLink for Marten libs - fixes GH-1156
Browse files Browse the repository at this point in the history
- Add SourceLink related settings to Marten and Marten.Commandline
csproj files
- Replace deprecated PackageLicenseUrl with PackageLicenseExpression in
csproj files
- Update AppVeyor config to add .snupkg to artifacts folder
- Add .snupkg to .gitignore
  • Loading branch information
mysticmind committed Jan 4, 2019
1 parent 48f162d commit c59e8fd
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ publish/

# NuGet Packages
*.nupkg
*.snupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ build_script:
test: off

artifacts:
- path: '**\Marten.*.nupkg' # find all NuGet packages recursively
- path: '**\Marten.*.*nupkg' # find all NuGet packages recursively
13 changes: 12 additions & 1 deletion src/Marten.CommandLine/Marten.CommandLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>Marten.CommandLine</PackageId>
<PackageIconUrl>http://jasperfx.github.io/marten/content/images/emblem.png</PackageIconUrl>
<PackageProjectUrl>http://jasperfx.github.io/marten</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/JasperFX/marten/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
Expand Down Expand Up @@ -49,4 +49,15 @@
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<!--SourceLink specific settings-->
<PropertyGroup>
<RepositoryUrl>https://github.com/JasperFx/marten.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SourceLink.Create.GitHub" Version="2.8.3" PrivateAssets="All" />
</ItemGroup>
</Project>
13 changes: 12 additions & 1 deletion src/Marten/Marten.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageId>Marten</PackageId>
<PackageIconUrl>http://jasperfx.github.io/marten/content/images/emblem.png</PackageIconUrl>
<PackageProjectUrl>http://jasperfx.github.io/marten</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/JasperFX/marten/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<GenerateAssemblyTitleAttribute>true</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>true</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyProductAttribute>true</GenerateAssemblyProductAttribute>
Expand Down Expand Up @@ -59,4 +59,15 @@
<ItemGroup Condition="'$(OS)' != 'Windows_NT' AND '$(TargetFramework)'== 'net46'">
<PackageReference Include="Microsoft.TargetingPack.NETFramework.v4.6" Version="1.0.1" ExcludeAssets="All" PrivateAssets="All" />
</ItemGroup>
<!--SourceLink specific settings-->
<PropertyGroup>
<RepositoryUrl>https://github.com/JasperFx/marten.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SourceLink.Create.GitHub" Version="2.8.3" PrivateAssets="All" />
</ItemGroup>
</Project>

0 comments on commit c59e8fd

Please sign in to comment.