2020-10-27 10:04:33 +03:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
2020-12-03 09:50:09 +03:00
|
|
|
<!-- Use fixed version instead of $(DefaultNetCoreTargetFramework) to avoid needing workarounds set up here. -->
|
|
|
|
<TargetFramework>net5.0</TargetFramework>
|
2020-10-27 10:04:33 +03:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Update artifacts/bin/GenerateFiles/Directory.Build.* files. -->
|
|
|
|
<Target Name="GenerateDirectoryBuildFiles">
|
|
|
|
<PropertyGroup>
|
|
|
|
<_TemplateProperties>
|
|
|
|
DefaultNetCoreTargetFramework=$(DefaultNetCoreTargetFramework);
|
|
|
|
KnownAppHostPackOrFrameworkReferenceTfm=$(KnownAppHostPackOrFrameworkReferenceTfm);
|
2020-11-13 21:52:40 +03:00
|
|
|
MicrosoftAspNetCoreAppRefVersion=$(TargetingPackVersion);
|
|
|
|
MicrosoftAspNetCoreAppRuntimeVersion=$(SharedFxVersion);
|
|
|
|
MicrosoftNETCoreAppRefVersion=$(MicrosoftNETCoreAppRefVersion);
|
2020-10-27 10:04:33 +03:00
|
|
|
MicrosoftNETCoreAppRuntimeVersion=$(MicrosoftNETCoreAppRuntimeVersion);
|
2020-11-13 21:52:40 +03:00
|
|
|
MicrosoftNetCompilersToolsetVersion=$(MicrosoftNetCompilersToolsetVersion);
|
2020-10-27 10:04:33 +03:00
|
|
|
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers.Trim())
|
|
|
|
</_TemplateProperties>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<MakeDir Directories="$(BaseOutputPath)" />
|
|
|
|
|
|
|
|
<Message Importance="High" Text="$(MSBuildProjectName) -> $(BaseOutputPath)Directory.Build.props" />
|
|
|
|
<GenerateFileFromTemplate TemplateFile="$(MSBuildProjectDirectory)\Directory.Build.props.in"
|
|
|
|
Properties="$(_TemplateProperties)"
|
|
|
|
OutputPath="$(BaseOutputPath)Directory.Build.props" />
|
|
|
|
|
|
|
|
<Message Importance="High" Text="$(MSBuildProjectName) -> $(BaseOutputPath)Directory.Build.targets" />
|
|
|
|
<GenerateFileFromTemplate TemplateFile="$(MSBuildProjectDirectory)\Directory.Build.targets.in"
|
|
|
|
Properties="$(_TemplateProperties)"
|
|
|
|
OutputPath="$(BaseOutputPath)Directory.Build.targets" />
|
|
|
|
</Target>
|
|
|
|
</Project>
|