-
Notifications
You must be signed in to change notification settings - Fork 18
/
Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.csproj
45 lines (36 loc) · 1.97 KB
/
Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.csproj
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
41
42
43
44
45
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<PackageType>MSBuildSdk</PackageType>
<!-- Allow to run on later tooling if exact match isn't present -->
<RollForward>Major</RollForward>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.DotNet.HotReload.Utils.Generator.Frontend\Microsoft.DotNet.HotReload.Utils.Generator.Frontend.csproj" />
<!-- the Generator.Tasks aren't used by the BuildTool, but they are used by some of the targets -->
<ProjectReference Include="..\Microsoft.DotNet.HotReload.Utils.Generator.Tasks\Microsoft.DotNet.HotReload.Utils.Generator.Tasks.csproj" ExcludeAssets="runtime" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" />
</ItemGroup>
<PropertyGroup>
<HotReloadTargetsTemplateFile>Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets.in</HotReloadTargetsTemplateFile>
<HotReloadTargetsOutputFile>$(IntermediateOutputPath)Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets</HotReloadTargetsOutputFile>
</PropertyGroup>
<Target Name="ReplaceTemplateParametersInHotReloadTargetsTemplate"
Inputs="$(HotReloadTargetsTemplateFile)"
Outputs="$(HotReloadTargetsOutputFile)"
BeforeTargets="Build">
<GenerateFileFromTemplate TemplateFile="$(HotReloadTargetsTemplateFile)"
OutputPath="$(HotReloadTargetsOutputFile)"
Properties="NetToolCurrent=$(NetToolCurrent)">
<Output TaskParameter="ResolvedOutputPath" ItemName="FileWrites" />
</GenerateFileFromTemplate>
<ItemGroup>
<None Include="$(HotReloadTargetsOutputFile)" Pack="true">
<PackagePath>build/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets</PackagePath>
</None>
</ItemGroup>
</Target>
<Import Project="$(RepoRoot)eng\BuildTask.targets" />
</Project>