Skip to content

Commit 55869b0

Browse files
authored
Include SourceLink and enable determenistic builds (#470)
* Change AppVeyor badge to use organizational project
1 parent f0e29bb commit 55869b0

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![FluentNHibernate logo](https://raw.githubusercontent.com/jagregory/fluent-nhibernate/master/docs/logo.png)
22

3-
[![Build status](https://ci.appveyor.com/api/projects/status/3uk49dtw8u4hdt7w/branch/master?svg=true)](https://ci.appveyor.com/project/jrogalan/fluent-nhibernate/branch/master)
3+
[![Build status](https://ci.appveyor.com/api/projects/status/684r2ot07i2lrcij/branch/master?svg=true)](https://ci.appveyor.com/project/nhibernate/fluent-nhibernate/branch/master)
44
[![NuGet](https://img.shields.io/nuget/v/FluentNHibernate.svg)](https://www.nuget.org/packages/FluentNHibernate)
55

66
## What is FluentNHibernate?

src/Directory.Build.props

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@
99
<PackageIconUrl>https://raw.githubusercontent.com/nhibernate/fluent-nhibernate/master/docs/logo-nuget.png</PackageIconUrl>
1010
<PackageIcon>logo-nuget.png</PackageIcon>
1111
<PackageProjectUrl>https://github.com/nhibernate/fluent-nhibernate</PackageProjectUrl>
12-
<RepositoryUrl>https://github.com/nhibernate/fluent-nhibernate.git</RepositoryUrl>
13-
<RepositoryType>git</RepositoryType>
1412
<PackageTags>ORM;DAL;NHibernate;Fluent;Conventions;DataBase;ADO.Net;Mappings</PackageTags>
1513
<AssembyDescription></AssembyDescription>
14+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
15+
<IncludeSymbols>true</IncludeSymbols>
16+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
17+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
1618
</PropertyGroup>
1719

20+
<PropertyGroup Condition="'$(CI)' == 'true'">
21+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
22+
</PropertyGroup>
23+
1824
<PropertyGroup>
1925
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">2.0.0</NetStandardImplicitPackageVersion>
2026
</PropertyGroup>
@@ -40,4 +46,8 @@
4046
<None Include="$(MSBuildThisFileDirectory)../docs/logo-nuget.png" Pack="true" PackagePath="/"/>
4147
</ItemGroup>
4248

49+
<ItemGroup>
50+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
51+
</ItemGroup>
52+
4353
</Project>

src/Directory.Build.targets

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Workaround. Remove once we're on 3.1.300+
2+
https://github.com/dotnet/sourcelink/issues/572 -->
3+
<Project>
4+
<PropertyGroup>
5+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
6+
</PropertyGroup>
7+
<ItemGroup>
8+
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
9+
</ItemGroup>
10+
11+
<!-- Workaround for https://github.com/dotnet/sdk/issues/11105 -->
12+
<ItemGroup>
13+
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
14+
</ItemGroup>
15+
</Project>

0 commit comments

Comments
 (0)