-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
32 lines (28 loc) · 1.49 KB
/
Directory.Build.props
File metadata and controls
32 lines (28 loc) · 1.49 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
<Project>
<PropertyGroup>
<IsTestProject>false</IsTestProject>
<SolutionDir Condition="'$(SolutionDir)'==''">$(MSBuildThisFileDirectory)</SolutionDir>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<NoWarn>$(NoWarn);NETSDK1233</NoWarn>
</PropertyGroup>
<!--<PropertyGroup>
<RestoreAdditionalProjectSources Condition="EXISTS('$(SolutionDir)\nuget')">$(SolutionDir)\nuget</RestoreAdditionalProjectSources>
</PropertyGroup>-->
<ItemGroup>
<PackageReference Include="Microsoft.Build.CopyOnWrite" Version="1.0.334" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.102" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup>
<OpenTelemetryVersion>1.12.0</OpenTelemetryVersion>
<OpenTelemetryBetaVersion>1.12.0-beta.1</OpenTelemetryBetaVersion>
</PropertyGroup>
<!-- Suppress APIRE004 warning by setting _IsExecutable to true in MSBuild.SDK.SystemWeb based projects -->
<!-- TODO: Investigate if we can just set that to true and what effect that might have -->
<Target Name="GetTargetFrameworksWithPlatformForSingleTargetFramework" /> <!-- Ensure target exists for non net projects -->
<Target Name="SupressApire004" BeforeTargets="GetTargetFrameworksWithPlatformForSingleTargetFramework">
<!-- UsingMSBuildSDKSystemWeb requires MSBuild.SDK.SystemWeb >= 4.0.97 -->
<PropertyGroup Condition="'$(UsingMSBuildSDKSystemWeb)' == 'true'">
<_IsExecutable>true</_IsExecutable>
</PropertyGroup>
</Target>
</Project>