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

MSBuild #20

Closed
sslaughter opened this issue Feb 18, 2017 · 2 comments
Closed

MSBuild #20

sslaughter opened this issue Feb 18, 2017 · 2 comments

Comments

@sslaughter
Copy link

I apologize if this is not the appropriate place for support questions, but I've run into an issue while trying to install. When trying to build airsim (build.cmd in repo) I run into the error of it being unable to find microsoft.build.tasks.v12.0.dll. It's looking in the following directory:

program files (x86)\MSBuild\Microsoft\14.0\bin

The file is not there and after looking around I went ahead and installed MSBuild separately from here. This populated the ....\MSBuild\Microsoft\12.0 directory and the missing dll is there. However, I'm uncertain how to redirect the MSBuildToolsPath that is referenced. This may be simple, but my search has not yet found a good way of doing so that I understand.

Full error message:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\CodeAnalysis\Microsoft.CodeAnalysis
.targets(219,5): error MSB4175: The task factory "CodeTaskFactory" could not be loaded from the a
ssembly "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.v12.0.dll". Could not load
file or assembly 'file:///C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.v12.0.dl
l' or one of its dependencies. The system cannot find the file specified. [D:\Epic Games\AirSim\M
avLinkCom\MavLinkCom.vcxproj]

System Info:
Windows 10, 64bit
Visual Studio Community 15

@lovettchris
Copy link
Member

lovettchris commented Feb 18, 2017

Ah yes, there is a dependency in our .vcxproj files on VS 2015 version of C++, you will see where it sets PlatformToolset to v140. Notice our build.md instructions mention VS2015. We have not tested on VS 2013. But if you want to try it you could try the cmake instructions, scroll to the bottom to see how to build new .vcxproj files on windows.

@sytelus
Copy link
Contributor

sytelus commented Feb 25, 2017

AirSim most likely won't work below VS2015 Update 3 because it needs few C++14 features to compile rpclib.

@sytelus sytelus closed this as completed Feb 25, 2017
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

3 participants