|
1 | 1 | <Project>
|
2 | 2 | <!-- To extend/change the defaults, create a Directory.props alongside this file -->
|
3 | 3 |
|
| 4 | + <PropertyGroup Label="CI" Condition="'$(CI)' == ''"> |
| 5 | + <CI>false</CI> |
| 6 | + <!-- GH, CircleCI, GitLab and BitBucket already use CI --> |
| 7 | + <CI Condition="'$(TF_BUILD)' == 'true' or |
| 8 | + '$(TEAMCITY_VERSION)' != '' or |
| 9 | + '$(APPVEYOR)' != '' or |
| 10 | + '$(BuildRunner)' == 'MyGet' or |
| 11 | + '$(JENKINS_URL)' != '' or |
| 12 | + '$(TRAVIS)' == 'true' or |
| 13 | + '$(BUDDY)' == 'true'">true</CI> |
| 14 | + </PropertyGroup> |
| 15 | + |
| 16 | + <PropertyGroup> |
| 17 | + <!-- The Microsoft.Managed.Core.targets use this property to use deterministic source paths in CI builds --> |
| 18 | + <ContinuousIntegrationBuild>$(CI)</ContinuousIntegrationBuild> |
| 19 | + </PropertyGroup> |
| 20 | + |
4 | 21 | <PropertyGroup Label="NuGet">
|
5 | 22 | <Authors>kzu</Authors>
|
6 | 23 | <Copyright>Copyright (C) Daniel Cazzulino and Contributors. All rights reserved.</Copyright>
|
|
21 | 38 |
|
22 | 39 | <ItemGroup Label="NuGet">
|
23 | 40 | <!-- This is compatible with nugetizer and SDK pack -->
|
24 |
| - <Content Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png" |
25 |
| - CopyToOutputDirectory="PreserveNewest" |
26 |
| - Pack="true" |
27 |
| - Visible="false" |
28 |
| - PackagePath="%(Filename)%(Extension)" /> |
| 41 | + <None Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png" |
| 42 | + Pack="true" |
| 43 | + Visible="false" |
| 44 | + PackagePath="%(Filename)%(Extension)" /> |
29 | 45 | </ItemGroup>
|
30 | 46 |
|
31 | 47 | <PropertyGroup Label="Build">
|
|
68 | 84 |
|
69 | 85 | <!-- See: https://www.cazzulino.com/project-dependencies-as-project-references.html -->
|
70 | 86 | <AddSyntheticProjectReferencesForSolutionDependencies>false</AddSyntheticProjectReferencesForSolutionDependencies>
|
| 87 | + |
| 88 | + <!-- Don't warn for packages using semver 2.0 --> |
| 89 | + <NoWarn>NU5105;$(NoWarn)</NoWarn> |
| 90 | + <!-- Turn warnings into errors in CI or Release builds --> |
| 91 | + <WarningsAsErrors Condition="$(CI) or '$(Configuration)' == 'Release'">true</WarningsAsErrors> |
71 | 92 | </PropertyGroup>
|
72 | 93 |
|
73 | 94 | <PropertyGroup Label="Version">
|
|
106 | 127 | <ProjectProperty Include="PublicKeyToken" />
|
107 | 128 | </ItemGroup>
|
108 | 129 |
|
109 |
| - |
110 |
| - <PropertyGroup Label="CI" Condition="'$(CI)' == ''"> |
111 |
| - <CI>false</CI> |
112 |
| - <!-- GH, CircleCI, GitLab and BitBucket already use CI --> |
113 |
| - <CI Condition="'$(TF_BUILD)' == 'true' or |
114 |
| - '$(TEAMCITY_VERSION)' != '' or |
115 |
| - '$(APPVEYOR)' != '' or |
116 |
| - '$(BuildRunner)' == 'MyGet' or |
117 |
| - '$(JENKINS_URL)' != '' or |
118 |
| - '$(TRAVIS)' == 'true' or |
119 |
| - '$(BUDDY)' == 'true'">true</CI> |
120 |
| - </PropertyGroup> |
121 |
| - |
122 |
| - <PropertyGroup> |
123 |
| - <!-- The Microsoft.Managed.Core.targets use this property to use deterministic source paths in CI builds --> |
124 |
| - <ContinuousIntegrationBuild>$(CI)</ContinuousIntegrationBuild> |
125 |
| - </PropertyGroup> |
126 |
| - |
127 | 130 | <Import Project="Directory.props" Condition="Exists('Directory.props')"/>
|
128 | 131 | </Project>
|
0 commit comments