Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 4bbffdd

Browse files
committed
Sync SourceLink, XmlDoc, build.proj
1 parent e0032b3 commit 4bbffdd

File tree

5 files changed

+22
-20
lines changed

5 files changed

+22
-20
lines changed

CallPolly.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ EndProject
1212
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".project", ".project", "{6047ADD6-C48C-4583-A5C6-58FDF7A0DC10}"
1313
ProjectSection(SolutionItems) = preProject
1414
build.cmd = build.cmd
15+
build.proj = build.proj
1516
Directory.Build.props = Directory.Build.props
1617
global.json = global.json
1718
LICENSE = LICENSE

Directory.Build.props

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
<Authors>@jet @bartelink and contributors</Authors>
55
<Company>Jet.com</Company>
66
<Description>Apply systemwide resilience strategies consistently across subsystems, standing on Polly's shoulders</Description>
7-
<PackageProjectUrl>https://github.com/jet/CallPolly</PackageProjectUrl>
8-
<RepositoryUrl>https://github.com/jet/CallPolly</RepositoryUrl>
9-
<RepositoryType>git</RepositoryType>
7+
<PackageProjectUrl>https://github.com/jet/callpolly</PackageProjectUrl>
108
<PackageTags>polly bulkhead circuitbreaker timeout fsharp</PackageTags>
11-
<PackageLicenseUrl>https://github.com/jet/CallPolly/blob/master/LICENSE</PackageLicenseUrl>
9+
<PackageLicenseUrl>https://github.com/jet/callpolly/blob/master/LICENSE</PackageLicenseUrl>
1210
<Copyright>Copyright © 2018</Copyright>
11+
12+
<!-- SourceLink related properties https://github.com/dotnet/SourceLink#using-sourcelink -->
13+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
14+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
15+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
1316
</PropertyGroup>
1417
</Project>

build.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
dotnet pack build.proj /p:BN=%1 /p:PR=%2
2-
dotnet test build.proj -v n
1+
dotnet msbuild build.proj %*

build.proj

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
<Project ToolsVersion="15.0">
1+
<Project ToolsVersion="15.0" DefaultTargets="Build;Test">
22

33
<PropertyGroup>
44

55
<Name>CallPolly</Name>
6-
6+
<Cfg>--configuration Release</Cfg>
7+
78
<RepoRootDir>$([System.IO.Path]::GetFullPath("$(MSBuildThisFileDirectory)"))</RepoRootDir>
9+
<Bin>-o $(RepoRootDir)bin</Bin>
810

9-
<BuildNumber Condition="'$(BN)' != ''">$([System.String]::Format('{0:0000000}',$([MSBuild]::Add($(BN), 0))))</BuildNumber>
10-
<Suffix Condition=" '$(BuildNumber)' != '' AND '$(PR)' != ''">--version-suffix CI$(BuildNumber)-pr$(PR)</Suffix>
11-
<Suffix Condition=" '$(BuildNumber)' != '' AND '$(PR)' == ''">--version-suffix CI$(BuildNumber)</Suffix>
11+
<BuildNumber Condition="'$(BuildNumber)' != ''">$([System.String]::Format('{0:0000000}',$([MSBuild]::Add($(BuildNumber), 0))))</BuildNumber>
12+
<Suffix Condition=" '$(BuildNumber)' != '' AND '$(PullRequestId)' != ''">--version-suffix CI$(BuildNumber)-pr$(PullRequestId)</Suffix>
13+
<Suffix Condition=" '$(BuildNumber)' != '' AND '$(PullRequestId)' == ''">--version-suffix CI$(BuildNumber)</Suffix>
1214

1315
</PropertyGroup>
1416

1517
<Target Name="Build">
16-
<Exec Command="dotnet build src/$(Name) --configuration Release $(Suffix)" WorkingDirectory="$(RepoRootDir)" />
17-
</Target>
18-
19-
<Target Name="Pack">
20-
<Exec Command="dotnet pack src/$(Name) --configuration Release -o $(RepoRootDir)bin $(Suffix)" WorkingDirectory="$(RepoRootDir)" />
18+
<Exec Command="dotnet pack src/$(Name) $(Cfg) $(Bin) $(Suffix)" />
2119
</Target>
2220

2321
<Target Name="Test">
24-
<Exec Command='dotnet test tests/$(Name).Tests --configuration Release' WorkingDirectory="$(RepoRootDir)" />
25-
<Exec Command='dotnet test tests/$(Name).Acceptance --configuration Release' WorkingDirectory="$(RepoRootDir)" />
22+
<Exec Command="dotnet test tests/$(Name).Tests $(Cfg)" />
23+
<Exec Command="dotnet test tests/$(Name).Acceptance $(Cfg)" />
2624
</Target>
27-
<Target Name="VSTest" DependsOnTargets="Test" />
2825

2926
</Project>

src/CallPolly/CallPolly.fsproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
5+
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
56
<WarningLevel>5</WarningLevel>
67
<IsTestProject>false</IsTestProject>
78
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
@@ -18,7 +19,8 @@
1819
</ItemGroup>
1920

2021
<ItemGroup>
21-
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' == 'net461' " />
22+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All" />
23+
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' != 'netstandard2.0' " />
2224
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />
2325
<PackageReference Include="Jet.JsonNet.Converters" Version="0.0.3-CI69140" />
2426
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />

0 commit comments

Comments
 (0)