[DLL] Visual Studio 2015

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,727
Location
Near Portsmouth, UK
Been playing with VS-2015 and the good news is you can use it, the bad news is you'll still need VS-2008 installed to be able to compile/link

Basically, while you can upgrade the solution files to VS-2015 and fix the myriad of ensuing compiler warnings, because the DLL needs to link against other libs that were compiled with VS-2008 the linker process will fail.

So, when you load the solution into VS-2015, do NOT check the "upgrade to VS-2015" tick-boxes!
 
thanks for the warning :)
 
How did you get VS2015 to compile? I have VS2008 installed as well as VS2015, and didn't upgrade to 2015 when importing CvGameCoreDLL.vs2013.sln.

I can't work out how to make VS2015 use the VS2008 toolchain.

Spoiler :
Severity Code Description Project File Line Suppression State
Error MSB8020 The build tools for Visual Studio 2008 (Platform Toolset = 'v90') cannot be found. To build using the v90 build tools, please install Visual Studio 2008 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". CvGameCoreDLL C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets 56
 
Did installing VS-2015 remove VS-2008? (IIRC VS-2012/3 had that tendency)
 
I actually installed 2008 after 2015.

In 2015, I see for each project in the DLL solution, under Project Properties -> Configuration Properties -> General -> Platform Toolset is says "Visual Studio 2008 (v90) Not Installed"

I suppose I need to find a way for 2015 to recognize the 2008 install (and use its toolchain).
 
I actually installed 2008 after 2015.
Doesn't work (and I'm pretty sure it's mentioned in the compiling the DLL thread - although it will mention VS-2010 not VS-2015 as it was written/discovered pre-VS-2015)

You will have to

1) Uninstall VS-2008
2) Uninstall VS-2015
3) Search the hard disk and make sure all traces of VS-2008 and VS-2015 are gone
4) Search the registry and make sure all traces of VS-2008 and VS-2015 are gone
5) Install VS-2008
6) Install VS-2015
 
Doesn't work (and I'm pretty sure it's mentioned in the compiling the DLL thread - although it will mention VS-2010 not VS-2015 as it was written/discovered pre-VS-2015)

You will have to

1) Uninstall VS-2008
2) Uninstall VS-2015
3) Search the hard disk and make sure all traces of VS-2008 and VS-2015 are gone
4) Search the registry and make sure all traces of VS-2008 and VS-2015 are gone
5) Install VS-2008
6) Install VS-2015

Thanks very much for the help. I did all that (what a pain in the ass), and now get a error immediately when building the solution, on this code:

<CL Condition="'%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true'"

Code:
1>------ Build started: Project: CvGameCoreDLL, Configuration: Mod Win32 ------
2>------ Build started: Project: CvGameCoreDLL_Expansion1, Configuration: Mod Win32 ------
3>------ Build started: Project: CvGameCoreDLL_Expansion2, Configuration: Mod Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(57,5): error : Required file "" is missing.
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(57,5): error : Required file "" is missing.
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(57,5): error : Required file "" is missing.
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

Perhaps I will uninstall everything again, then install VS2008 and just see if VS2013 works.
 
I never got VS-2013 to work, at least I know VS-2008+VS-2015 does (as it's what I use)

Edit: Arrrgggghhh!!! I've seen that error, and can't remember what I did to fix it. Pretty sure it means the precompile header can't be written.

Make sure you have a CvGameCoreSource\ipch sub-directory and that the user you're running as can access it (may be an idea to try running VS-2015 as admin just to see if it is an access permission issue)
 
Well I got it to work.

I uninstalled everything.
Installed VS2008
Successfully compiled DLL in VS2008
Installed VS2013
Opened the 2010 solution in VS2013, got the ""Visual Studio 2008 (v90) Not Installed" Error.
(I did not upgrade the 2010 solution to a 2013 solution)
Installed \Setup\vc_stdx86.exe from GRMSDKX_EN_DVD.iso
(from http://stackoverflow.com/questions/33173296/building-vc-2008-project-with-vs-2013)
Now the 2010 solution compiles successfully in VS2013.

I tried the vc_stdx86 trick yesterday with VS2015, but couldn't work out how to get past the 'Required file "" is missing' error. I guess VS2013 is good enough for now!

Thanks for the help again whoward69
 
I can't wait to try this out, I really hate VS2010 and VS2015 Community is so fun to use.
 
Back
Top Bottom