Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Directory.Build.props « samples - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8b38f0a8b10dba635cceb920e96fe76008070b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<Project>
 <!--
    This file is intended as a best practice for using sourcelink.
    https://github.com/dotnet/sourcelink

    At Microsoft, we have three build types:

    Official build:
    - OfficialBuild property is set to true (this is an adhoc property)
    - ContinuousIntegrationBuild property is set to true
    - Produces authenticode signed binaries, unique version numbers, packages published to feeds, symbols published to symbol servers
    - Produces standalone Portable PDBs to reduce the size of the binaries.
    PR validation build:
    - ContinuousIntegrationBuild property is set to true
    - Embeds PDBs to make it easier to debug crash dumps captured on the CI machine.
    Developer build:
    - Embeds PDBs to be consistent with PR validation build.

    Context:
    * https://github.com/dotnet/arcade/blob/main/src/Microsoft.DotNet.Arcade.Sdk/tools/ProjectDefaults.props
    * https://github.com/dotnet/sourcelink/tree/main/docs#continuousintegrationbuild
 -->

    <PropertyGroup>
        <PublishRepositoryUrl>true</PublishRepositoryUrl>
        <DebugType>embedded</DebugType>
        <EmbedUntrackedSources>true</EmbedUntrackedSources>
    </PropertyGroup>

    <PropertyGroup Condition="'$(OfficialBuild)' == 'true'">
        <Configuration>release</Configuration>
        <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
        <DebugType>portable</DebugType>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0-beta-20204-02" PrivateAssets="All"/>
    </ItemGroup>

</Project>