mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-20 16:35:37 +08:00
[vcpkg] Fix nuget package import failed. (#11093)
* fix bug that caused exported nuget package import failure. * Give priority to nuget package to set $(VcpkgRoot). * [vcpkg] Remove trailing whitespace * fix nuget package import failed Co-authored-by: 施浩男 <shihaonan@zhongli360.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
parent
430a10ff35
commit
4727bc86a4
@ -62,7 +62,7 @@ namespace vcpkg::Export
|
||||
return Strings::format(R"###(
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<VcpkgRoot>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .vcpkg-root))\installed\$(VcpkgTriplet)\</VcpkgRoot>
|
||||
<VcpkgRoot></VcpkgRoot>
|
||||
</PropertyGroup>
|
||||
<Import Condition="Exists('%s')" Project="%s" />
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user