-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
Microsoft.NET.Runtime.MonoTargets.Sdk.pkgproj
40 lines (32 loc) · 1.54 KB
/
Microsoft.NET.Runtime.MonoTargets.Sdk.pkgproj
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
<Project DefaultTargets="Build">
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
<PropertyGroup>
<PackageDescription>Provides the tasks+targets, for consumption by mono-based workloads</PackageDescription>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="$(RepoTasksDir)MonoTargetsTasks\MonoTargetsTasks.csproj" />
</ItemGroup>
<ItemGroup>
<PackageFile Include="Sdk\Sdk.props" TargetPath="Sdk" />
<PackageFile Include="Sdk\Sdk.targets" TargetPath="Sdk" />
<PackageFile Include="build\$(MSBuildProjectName).props" TargetPath="build" />
<PackageFile Include="Sdk\RuntimeComponentManifest.targets" TargetPath="Sdk" />
</ItemGroup>
<Target Name="_PrepareForPack" BeforeTargets="GetPackageFiles">
<PropertyGroup>
<MonoTargetsTasksPropsPath>$(IntermediateOutputPath)MonoTargetsTasks.props</MonoTargetsTasksPropsPath>
</PropertyGroup>
<ItemGroup>
<_ReplacementValue Include="TargetFrameworkForNETCoreTasks" Value="$(TargetFrameworkForNETCoreTasks)" />
<_ReplacementValue Include="TargetFrameworkForNETFrameworkTasks" Value="$(TargetFrameworkForNETFrameworkTasks)" />
</ItemGroup>
<GenerateFileFromTemplate
TemplateFile="Sdk/MonoTargetsTasks.props.in"
Properties="@(_ReplacementValue)"
OutputPath="$(MonoTargetsTasksPropsPath)" />
<ItemGroup>
<PackageFile Include="$(MonoTargetsTasksPropsPath)" TargetPath="Sdk" />
</ItemGroup>
</Target>
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets))" />
</Project>