This is the GitHub page where I'm trying to use msbuild.exe
only it's throwing this following error:
1>------ Build started: Project: keycastow, Configuration: Debug|Win32 ------
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(379,5): error MSB8020: The build tools for Visual Studio 2013 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install Visual Studio 2013 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Is there 2 possible options to get this on GitHub to work?
NOTE: I would prefer option number one.
Additional info
Here's a screenshot of what I've currently installed in Visual Studio 2019. View.
There are no options in the current version to install Microsoft Build Tools 2013 in the app itself so the installed standalone version doesn't appear here as an option.
Open the keycastow.vcxproj
with notepad, change here the <PlatformToolset>v120</PlatformToolset>
to <PlatformToolset>v142</PlatformToolset>
to use the VC++ 2019 platform or change the version via UI
In Visual Studio, in Solution Explorer, open the shortcut menu for your project (not for your solution) and then choose Properties to open your project Property Pages dialog box.
In the Property Pages dialog box, open the Configuration drop-down list and then select All Configurations.
In the left pane of the dialog box, expand Configuration Properties and then select General.
In the right pane, select Platform Toolset and then select the toolset you want from the drop-down list (2019 - v142 in your case)
Choose the OK button.
Now you compile the project without installing anything.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With