-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
42 lines (38 loc) · 2.64 KB
/
Directory.Build.props
File metadata and controls
42 lines (38 loc) · 2.64 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
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<SolutionDir Condition=" '$(SolutionDir)' == '' ">$(MSBuildThisFileDirectory)..\</SolutionDir>
<Nullable>enable</Nullable>
<!-- Generate XML documentation so consumers get IntelliSense from the NuGet package -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Setup Version property. -->
<MajorVersion>3</MajorVersion>
<MinorVersion>0</MinorVersion>
<TimeSuffix>$([System.DateTime]::Now.ToString(yyyyMMddHHmm))</TimeSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' == '' ">-private-$(TimeSuffix)</VersionSuffix>
<!-- Allows build parameter to overwrite the NuGet package versions -->
<DefaultPackageVersion Condition=" $(DefaultPackageVersion) == '' ">$(MajorVersion).$(MinorVersion).0</DefaultPackageVersion>
<!-- Provides default SemVer when the property is set to `default`. That is expected to be the default parameter of the build pipeline. -->
<Version Condition=" '$(SPEventPipeNugetVersion)' == 'default' ">$(DefaultPackageVersion)-build-$(TimeSuffix)</Version>
<!-- When the value is provided but other than `default`, use it literally. -->
<Version Condition=" '$(SPEventPipeNugetVersion)' != '' ">$(SPEventPipeNugetVersion)</Version>
<!-- Otherwise, fallback to default version scheme. -->
<Version Condition=" '$(Version)' == '' ">$(DefaultPackageVersion)$(VersionSuffix)</Version>
<!--Properties for NuGet package-->
<!--Refer aka.ms/nuget for Microsoft NuGet packages authoring compliance-->
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Authors>Microsoft</Authors>
<Owners>microsoft,MicrosoftServiceProfiler</Owners>
<PackageProjectUrl>https://go.microsoft.com/fwlink/?linkid=869443</PackageProjectUrl>
<PackageLicenseFileName>EULA.md</PackageLicenseFileName>
<PackageIconFileName>icon.png</PackageIconFileName>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<PackageReleaseNotes>https://go.microsoft.com/fwlink/?linkid=869445</PackageReleaseNotes>
<NuspecProperties>
authors=$(Authors); owners=$(Owners); projectUrl=$(PackageProjectUrl); licenseFileName=$(PackageLicenseFileName); iconFileName=$(PackageIconFileName); requireLicenseAcceptance=$(RequireLicenseAcceptance); releaseNotes=$(PackageReleaseNotes); copyright=$(Copyright);
$(NuspecProperties)
</NuspecProperties>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\Profiler.EventPipe.CodeAnalysis.ruleset</CodeAnalysisRuleSet>
<NoWarn>$(NoWarn);NU1608;</NoWarn>
</PropertyGroup>
</Project>