-
Notifications
You must be signed in to change notification settings - Fork 23
/
common.props
104 lines (95 loc) · 5.47 KB
/
common.props
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Assembly, App, Package version for all non-OSS files. Uses SemVer. -->
<PropertyGroup Label="Version">
<VersionPrefix>10.3.7</VersionPrefix>
</PropertyGroup>
<!-- Common packaging properties -->
<PropertyGroup>
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageTags>Microsoft;Factory Orchestrator;Manufacturing;FactoryOS;IPC;Inter-Process Communication;Windows 10X;Testing;Testing Framework;Remote Execution</PackageTags>
<Authors>Microsoft</Authors>
<Company>Microsoft Corporation</Company>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Product>Factory Orchestrator</Product>
<PackageProjectUrl>https://github.com/microsoft/factoryorchestrator</PackageProjectUrl>
</PropertyGroup>
<PropertyGroup Condition="'$(AGENT_ID)' != '' Or '$(GITHUB_ACTIONS)' == 'true'">
<!-- Deterministic Builds for source link -->
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<OutputRootPath>$(BUILD_ARTIFACTSTAGINGDIRECTORY)/bin/</OutputRootPath>
</PropertyGroup>
<PropertyGroup Condition="'$(AGENT_ID)' == '' And '$(GITHUB_ACTIONS)' != 'true'">
<OutputRootPath>$(MSBuildThisFileDirectory)../bin/</OutputRootPath>
</PropertyGroup>
<!-- Add notice file to all nuget packages -->
<PropertyGroup>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);IncludeNoticeInPack</TargetsForTfmSpecificContentInPackage>
</PropertyGroup>
<Target Name="IncludeNoticeInPack">
<ItemGroup>
<TfmSpecificPackageFile Include="$(MSBuildThisFileDirectory)../NOTICE.txt"/>
</ItemGroup>
<Message Text="IncludeNoticeInPack - found: @(TfmSpecificPackageFile)" Importance="High"/>
</Target>
<PropertyGroup>
<!-- Enable FxCop -->
<SkipDefaultEditorConfigAsAdditionalFile>true</SkipDefaultEditorConfigAsAdditionalFile>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzers>true</RunAnalyzers>
</PropertyGroup>
<PropertyGroup>
<PowerShellExeName Condition="Exists('C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe') And !Exists('C:\Program Files\PowerShell\7\pwsh.exe')">powershell.exe</PowerShellExeName>
<PowerShellExeName Condition="'$(PowerShellExeName)' == ''">pwsh</PowerShellExeName>
</PropertyGroup>
<ItemGroup Condition="Exists('$(MSBuildThisFileDirectory).editorconfig')" >
<AdditionalFiles Include="$(MSBuildThisFileDirectory).editorconfig" />
</ItemGroup>
<!-- UWP package references -->
<ItemGroup Condition="'$(TargetPlatformIdentifier)' != ''">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers">
<Version>3.3.0</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition="('$(BUILD_REPOSITORY_URI.Contains(`dev.azure.com`))' == 'true' Or '$(BUILD_REPOSITORY_URI.Contains(`visualstudio.com`))' == 'true') And ('$(TargetPlatformIdentifier)' != '')">
<PackageReference Include="Microsoft.SourceLink.AzureRepos.Git">
<Version>1.0.0</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition="('$(BUILD_REPOSITORY_URI.Contains(`github.com`))' == 'true' Or '$(GITHUB_ACTIONS)' == 'true') And ('$(TargetPlatformIdentifier)' != '')">
<PackageReference Include="Microsoft.SourceLink.GitHub">
<Version>1.0.0</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<!-- .NET Core package references -->
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == ''">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition="('$(BUILD_REPOSITORY_URI.Contains(`dev.azure.com`))' == 'true' Or '$(BUILD_REPOSITORY_URI.Contains(`visualstudio.com`))' == 'true') And ('$(TargetPlatformIdentifier)' == '')">
<!-- Use AzureRepos version of SourceLink if source code is from ADO. -->
<PackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>
<ItemGroup Condition="('$(BUILD_REPOSITORY_URI.Contains(`github.com`))' == 'true' Or '$(GITHUB_ACTIONS)' == 'true') And ('$(TargetPlatformIdentifier)' != '')">
<!-- Use the GitHub version of SourceLink for all other builds. -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>
</Project>