2023-11-09 14:57:52 +00:00
|
|
|
<Project>
|
|
|
|
|
<Sdk Name="Microsoft.Build.CopyOnWrite" Version="1.0.282" />
|
2024-01-15 13:45:28 -08:00
|
|
|
|
|
|
|
|
<Import Project="$(MSBuildCachePackageRoot)\build\$(MSBuildCachePackageName).targets" Condition="'$(MSBuildCacheEnabled)' == 'true'" />
|
|
|
|
|
<Import Project="$(MSBuildCacheSharedCompilationPackageRoot)\build\Microsoft.MSBuildCache.SharedCompilation.targets" Condition="'$(MSBuildCacheEnabled)' == 'true'" />
|
2025-09-26 13:03:00 +08:00
|
|
|
|
|
|
|
|
<!-- Override ManifestTool to the x64 host tool under WindowsSdkDir for all projects once the SDK path is known. -->
|
|
|
|
|
<PropertyGroup Label="ManifestToolOverride">
|
|
|
|
|
<ManifestTool Condition="Exists('$(WindowsSdkDir)bin\x64\mt.exe')">$(WindowsSdkDir)bin\x64\mt.exe</ManifestTool>
|
|
|
|
|
</PropertyGroup>
|
2025-12-16 10:46:39 +08:00
|
|
|
|
|
|
|
|
<!-- Auto-restore NuGet for native vcxproj (PackageReference) when building inside VS -->
|
|
|
|
|
<Target Name="EnsureNuGetRestoreForVcxproj" BeforeTargets="PrepareForBuild" Condition="
|
|
|
|
|
'$(BuildingInsideVisualStudio)' == 'true'
|
|
|
|
|
and '$(DesignTimeBuild)' != 'true'
|
|
|
|
|
and '$(RestoreInProgress)' != 'true'
|
|
|
|
|
and '$(MSBuildProjectExtension)' == '.vcxproj'
|
|
|
|
|
and '$(RestoreProjectStyle)' == 'PackageReference'
|
|
|
|
|
and '$(MSBuildProjectExtensionsPath)' != ''
|
|
|
|
|
and !Exists('$(MSBuildProjectExtensionsPath)project.assets.json')
|
|
|
|
|
">
|
|
|
|
|
|
|
|
|
|
<Message Importance="normal" Text="NuGet assets missing for $(MSBuildProjectName); running Restore...; IntDir=$(IntDir); BaseIntermediateOutputPath=$(BaseIntermediateOutputPath)" />
|
|
|
|
|
|
|
|
|
|
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Restore" Properties="RestoreInProgress=true" BuildInParallel="false" />
|
|
|
|
|
</Target>
|
2023-11-09 14:57:52 +00:00
|
|
|
</Project>
|