Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019 Visual Studio Community: error MSB4019 msbuild help #15

Closed
stephen147 opened this issue Jun 22, 2019 · 1 comment
Closed

2019 Visual Studio Community: error MSB4019 msbuild help #15

stephen147 opened this issue Jun 22, 2019 · 1 comment

Comments

@stephen147
Copy link

stephen147 commented Jun 22, 2019

I'm getting an error code: error MSB4019. Google machine didn't help much.

I've just installed VS and everything is up to date. Any help would be appreciated.

"C:\Users\user\Desktop\KeyCastOW-master\keycastow.vcxproj" (default target) (1) ->
  C:\Users\user\Desktop\KeyCastOW-master\keycastow.vcxproj(34,3): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.22
@stephen147
Copy link
Author

I've fixed the issue help. See here:
https://stackoverflow.com/a/56726874/8262102

TLDR
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.

  1. In the Property Pages dialog box, open the Configuration drop-down list and then select All Configurations.

  2. In the left pane of the dialog box, expand Configuration Properties and then select General.

  3. In the right pane, select Platform Toolset and then select the toolset you want from the drop-down list (2019 - v142 in your case)

  4. Choose the OK button.

Now you compile the project without installing anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant