Skip to content

Commit 1db57d0

Browse files
committed
Add build targets / prop file for samples
1 parent d221cb6 commit 1db57d0

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<PropertyGroup>
3+
<ExcludeFromCodeCoverage>true</ExcludeFromCodeCoverage>
4+
<ImportRepoCommonSettings>true</ImportRepoCommonSettings>
5+
<!-- Signal that samples are building in the repo as opposed to a standalone download from Samples Browser -->
6+
<IsClientLibrary>true</IsClientLibrary>
7+
<IsPackable>true</IsPackable>
8+
<IsSample>true</IsSample>
9+
<WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
10+
<NoWarn>
11+
$(NoWarn);
12+
NU5104;
13+
</NoWarn>
14+
</PropertyGroup>
15+
16+
<Import Project="..\Directory.Build.props" />
17+
18+
<PropertyGroup>
19+
<DefineConstants>$(DefineConstants);STRONGNAME_SIGNED</DefineConstants>
20+
<InheritDocEnabled>false</InheritDocEnabled>
21+
<IsShippingLibrary>false</IsShippingLibrary>
22+
</PropertyGroup>
23+
</Project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<TargetFrameworks Condition="'$(TargetFramework)' != ''">$(TargetFramework)</TargetFrameworks>
5+
</PropertyGroup>
6+
7+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.targets))\Directory.Build.targets"
8+
Condition="'$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.targets))' != ''" />
9+
10+
<!-- Disable targets not necessary for samples -->
11+
<Target Name="ValidateTargetFrameworks" />
12+
<Target Name="VerifyProjectReferencesReferences" />
13+
14+
</Project>

0 commit comments

Comments
 (0)