Update instructions to use ContinuousIntegrationBuild (#1567)
This commit is contained in:
parent
5d6abbef45
commit
aa149360de
|
@ -69,24 +69,23 @@ You can make tools debuggable with [sourcelink](https://github.com/dotnet/source
|
|||
|
||||
```xml
|
||||
<PropertyGroup>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<DebugType>embedded</DebugType>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62905-03" PrivateAssets="All"/>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62909-01" PrivateAssets="All"/>
|
||||
</ItemGroup>
|
||||
```
|
||||
|
||||
Use [`DeterministicSourcePaths`](https://github.com/dotnet/sourcelink/blob/master/docs/README.md#deterministicsourcepaths) when producting official builds. The simplest way to do that is by packing with an additional property set.
|
||||
Use [`ContinuousIntegrationBuild`](https://github.com/dotnet/sourcelink/blob/master/docs/README.md#continuousintegrationbuild) when producting official builds. The simplest way to do that is by packing with an additional property set.
|
||||
|
||||
```console
|
||||
dotnet pack -c release -o nupkg /p:DeterministicSourcePaths=true
|
||||
dotnet pack -c release -o nupkg /p:ContinuousIntegrationBuild=true
|
||||
```
|
||||
|
||||
Make sure to build official packages from repositories with stable commit hashes. If you build from a branch who commits are later [squashed](https://help.github.com/articles/about-pull-request-merges/), then the commit hashs will not be found and sourcelink will not work correctly.
|
||||
Make sure to build official packages from repositories with stable commit hashes. If you build from a branch whose commits are later [squashed](https://help.github.com/articles/about-pull-request-merges/), then the commit hashs will not be found and sourcelink will not work correctly.
|
||||
|
||||
## Debug Tools with Visual Studio
|
||||
|
||||
|
|
|
@ -3,10 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<AssemblyName>dotnetsay</AssemblyName>
|
||||
<Description>A simple .NET Core global tool.</Description>
|
||||
<RootNamespace>dotnetsay</RootNamespace>
|
||||
<NeutralLanguage>en-US</NeutralLanguage>
|
||||
<LangVersion>Latest</LangVersion>
|
||||
<VersionPrefix>2.1.2</VersionPrefix>
|
||||
<Authors>.NET Team</Authors>
|
||||
|
@ -15,8 +12,6 @@
|
|||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseUrl>https://github.com/dotnet/core/blob/master/LICENSE.TXT</PackageLicenseUrl>
|
||||
<PackageProjectUrl>https://github.com/dotnet/core/blob/master/samples/dotnetsay/README.md</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/dotnet/core</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<DebugType>embedded</DebugType>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
|
@ -25,7 +20,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62905-03" PrivateAssets="All"/>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62909-01" PrivateAssets="All"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
Loading…
Reference in a new issue