-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
57 lines (52 loc) · 2.44 KB
/
Directory.Build.props
File metadata and controls
57 lines (52 loc) · 2.44 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<!-- Deterministic Build when build online -->
<PropertyGroup Condition=" '$(SERVER_BUILD)' == 'true' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<PropertyGroup>
<!-- Enable Public API Analyzers by default for all projects under this folder and sub folders -->
<EnablePublicAPIAnalyzers Condition=" '$(EnablePublicAPIAnalyzers)' == '' ">true</EnablePublicAPIAnalyzers>
<!-- Generate XML documentation so consumers get IntelliSense from the NuGet package -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<!-- Warning as errors -->
<PropertyGroup>
<WarningsAsErrors>RS0017,RS0016</WarningsAsErrors>
</PropertyGroup>
<!-- Determine the version to use -->
<PropertyGroup>
<!-- The current release version. -->
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">1.0.0</VersionPrefix>
<!-- Assuming Version = Prefix-Suffix -->
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
<!-- When suffix doesn't exist, remove it alone with the dash -->
<Version Condition=" '$(VersionSuffix)' == '' ">$(VersionPrefix)</Version>
</PropertyGroup>
<!-- Symbol Package configuration -->
<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<!--Shared Properties for NuGet package-->
<!--Refer aka.ms/nuget for Microsoft NuGet packages authoring compliance-->
<PropertyGroup>
<!-- Package version is default to version. -->
<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(Version)</PackageVersion>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Authors>Microsoft</Authors>
<Owners>microsoft,MicrosoftServiceProfiler</Owners>
<PackageProjectUrl>https://github.com/Azure/azuremonitor-opentelemetry-profiler-net</PackageProjectUrl>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<PackageReleaseNotes></PackageReleaseNotes>
<NuspecProperties><![CDATA[authors=$(Authors);
copyright=$(Copyright);
owners=$(Owners);
projectUrl=$(PackageProjectUrl);
releaseNotes=$(PackageReleaseNotes);
requireLicenseAcceptance=$(RequireLicenseAcceptance);
version=$(PackageVersion);
$(NuspecProperties)]]>
</NuspecProperties>
</PropertyGroup>
</Project>