microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
https://walbourn.github.io/directxtk/
MIT License
2.54k stars 505 forks source link

directxtk build failure for x86-uwp #9486 #202

Closed mediabuff closed 4 years ago

mediabuff commented 4 years ago

9486

"C:\MyDevProjects\MyProjectsThirdPartyLibs\vcpkg2\vcpkg\buildtrees\directxtk\src\dec2019-b08f6255ba\DirectXTK_Windows10_2019.sln" (Rebuild target) (1) -> (ValidateSolutionConfiguration target) -> C:\MyDevProjects\MyProjectsThirdPartyLibs\vcpkg2\vcpkg\buildtrees\directxtk\src\dec2019-b08f6255ba\DirectXTK_Windows10_2019.sln.metaproj : error MSB4126: The specified solution configuration "Release|Win32" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. [C:\MyDevProjects\MyProjectsThirdPartyLibs\vcpkg2\vcpkg\buildtrees\directxtk\src\dec2019-b08f6255ba\DirectXTK_Windows10_2019.sln]

0 Warning(s) 1 Error(s)

Build FAILED.

"C:\MyDevProjects\MyProjectsThirdPartyLibs\vcpkg2\vcpkg\buildtrees\directxtk\src\dec2019-b08f6255ba\DirectXTK_Windows10_2019.sln" (Rebuild target) (1) -> (ValidateSolutionConfiguration target) -> C:\MyDevProjects\MyProjectsThirdPartyLibs\vcpkg2\vcpkg\buildtrees\directxtk\src\dec2019-b08f6255ba\DirectXTK_Windows10_2019.sln.metaproj : error MSB4126: The specified solution configuration "Release|Win32" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. [C:\MyDevProjects\MyProjectsThirdPartyLibs\vcpkg2\vcpkg\buildtrees\directxtk\src\dec2019-b08f6255ba\DirectXTK_Windows10_2019.sln]

0 Warning(s) 1 Error(s)

walbourn commented 4 years ago

I don't directly maintain the vcpkg, but it's probably an issue with the metaproj.

VS 2015 renamed "Win32" to "x86" in the solutions (it's still Win32 in the vcxproj), so it probably needs to be invoked as "x86" by vcpkg.

walbourn commented 4 years ago

Note I've normalized all my sln files for desktop to use "x86" in this commit