| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <!-- Use fixed version instead of $(DefaultNetCoreTargetFramework) to avoid needing workarounds set up here. -->
- <TargetFramework>net5.0</TargetFramework>
- <ExcludeFromSourceOnlyBuild>false</ExcludeFromSourceOnlyBuild>
- <ConfigDirectory>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', '.config'))</ConfigDirectory>
- </PropertyGroup>
- <ItemGroup>
- <PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" PrivateAssets="All" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" IsImplicitlyDefined="true" />
- </ItemGroup>
- <!-- Update artifacts/bin/GenerateFiles/Directory.Build.* files. -->
- <Target Name="GenerateDirectoryBuildFiles">
- <PropertyGroup>
- <_TemplateProperties>
- AspNetCorePatchVersion=$(AspNetCorePatchVersion);
- DefaultNetCoreTargetFramework=$(DefaultNetCoreTargetFramework);
- DotnetDumpVersion=$(DotnetDumpVersion);
- DotnetEfVersion=$(DotnetEfVersion);
- DotnetServeVersion=$(DotnetServeVersion);
- MicrosoftAspNetCoreAppRefVersion=$(TargetingPackVersion);
- MicrosoftAspNetCoreAppRuntimeVersion=$(SharedFxVersion);
- MicrosoftNETCoreAppRefVersion=$(MicrosoftNETCoreAppRefVersion);
- MicrosoftNETCoreAppRuntimeVersion=$(MicrosoftNETCoreAppRuntimeVersion);
- MicrosoftPlaywrightCLIVersion=$(MicrosoftPlaywrightCLIVersion);
- LibNetHostAppPackVersion=$(BundledNETCoreAppPackageVersion);
- SupportedRuntimeIdentifiers=$([MSBuild]::Escape($(SupportedRuntimeIdentifiers)));
- ArtifactsShippingPackagesDir=$(ArtifactsShippingPackagesDir)
- </_TemplateProperties>
- </PropertyGroup>
- <MakeDir Directories="$(BaseOutputPath)" />
- <Message Importance="High" Text="$(MSBuildProjectName) -> $(BaseOutputPath)Directory.Build.props" />
- <GenerateFileFromTemplate TemplateFile="$(MSBuildThisFileDirectory)Directory.Build.props.in"
- Properties="$(_TemplateProperties)"
- OutputPath="$(BaseOutputPath)Directory.Build.props" />
- <Message Importance="High" Text="$(MSBuildProjectName) -> $(BaseOutputPath)Directory.Build.targets" />
- <GenerateFileFromTemplate TemplateFile="$(MSBuildThisFileDirectory)Directory.Build.targets.in"
- Properties="$(_TemplateProperties)"
- OutputPath="$(BaseOutputPath)Directory.Build.targets" />
- <Message Importance="High" Text="$(MSBuildProjectName) -> $(ConfigDirectory)dotnet-tools.json" />
- <GenerateFileFromTemplate TemplateFile="$(MSBuildThisFileDirectory)dotnet-tools.json.in"
- Properties="$(_TemplateProperties)"
- OutputPath="$(ConfigDirectory)dotnet-tools.json" />
- </Target>
- </Project>
|