Tools.props 770 B

1234567891011121314
  1. <Project>
  2. <!-- Update the generated files when we restore projects. Skip in desktop msbuild due to VS 16.8 requirements. -->
  3. <Target Name="GenerateDirectoryBuildFiles"
  4. AfterTargets="Restore"
  5. Condition=" '$(MSBuildRuntimeType)' == 'core' ">
  6. <!-- Separate invocations and use different properties to ensure second can load the restored package info. -->
  7. <MSBuild Projects="$(RepoRoot)eng\tools\GenerateFiles\GenerateFiles.csproj"
  8. RemoveProperties="BaseIntermediateOutputPath"
  9. Targets="Restore" />
  10. <MSBuild Projects="$(RepoRoot)eng\tools\GenerateFiles\GenerateFiles.csproj"
  11. RemoveProperties="BaseIntermediateOutputPath;ExcludeRestorePackageImports"
  12. Targets="GenerateDirectoryBuildFiles" />
  13. </Target>
  14. </Project>