зеркало из https://github.com/dotnet/aspnetcore.git
26 строки
1.4 KiB
XML
26 строки
1.4 KiB
XML
<Project>
|
|
<ItemGroup Condition=" '$(DotNetBuildFromSource)' != 'true' ">
|
|
<!--
|
|
This is here to workaround flakiness in the NuGet SDK resolver in MSBuild. Arcade will run a pre-restore for
|
|
these packages. This works more consistently than the SDK resolution which uses global.json. Without this
|
|
here, we see regular failures with 'error MSB4236: The SDK 'Yarn.MSBuild' specified could not be found.'
|
|
Since this project is evaluated before .npmproj files are loaded, this should cause the package to end up in
|
|
the NuGet cache ahead of time. This is not needed in source build.
|
|
-->
|
|
<PackageReference Include="Yarn.MSBuild" Version="1.22.10" />
|
|
</ItemGroup>
|
|
|
|
<!-- Update the generated files when we restore projects. Skip in desktop msbuild due to VS 16.8 requirements. -->
|
|
<Target Name="GenerateDirectoryBuildFiles"
|
|
AfterTargets="Restore"
|
|
Condition=" '$(MSBuildRuntimeType)' == 'core' ">
|
|
<!-- Separate invocations and use different properties to ensure second can load the restored package info. -->
|
|
<MSBuild Projects="$(RepoRoot)eng\tools\GenerateFiles\GenerateFiles.csproj"
|
|
RemoveProperties="BaseIntermediateOutputPath"
|
|
Targets="Restore" />
|
|
<MSBuild Projects="$(RepoRoot)eng\tools\GenerateFiles\GenerateFiles.csproj"
|
|
RemoveProperties="BaseIntermediateOutputPath;ExcludeRestorePackageImports"
|
|
Targets="GenerateDirectoryBuildFiles" />
|
|
</Target>
|
|
</Project>
|