-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathplaceholderpackaging.targets
30 lines (25 loc) · 1.19 KB
/
placeholderpackaging.targets
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
<Project>
<PropertyGroup>
<!-- Prevent copying the build DLL into the bin. -->
<SkipCopyBuildProduct>true</SkipCopyBuildProduct>
<!-- Prevent restoring packages from frameworks that should not be built. -->
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<!-- Prevent including the build output in the package. -->
<IncludeBuildOutput>false</IncludeBuildOutput>
<!-- Hook up a target to include the placeholder file in the package. -->
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificBuildOutput);_AddPlaceholderFileToPackage</TargetsForTfmSpecificContentInPackage>
<!-- TFMs that are only used as placeholders should not include any default items. -->
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>
<ItemGroup>
<Compile Remove="@(Compile)" />
</ItemGroup>
<!-- Override to prevent building. -->
<Target Name="CoreCompile" />
<!-- Inserts a placeholder file in the package. -->
<Target Name="_AddPlaceholderFileToPackage">
<ItemGroup>
<TfmSpecificPackageFile Include="$(RepositoryEngineeringDir)_._" PackagePath="lib/$(TargetFramework)" />
</ItemGroup>
</Target>
</Project>