You have quite a few interesting questions here. I’m not sure if we have previously addressed any of these, so it may be a good idea to create a new forum post to ask them (in order to keep this thread on the topic of Visual Studio 2015 support in UE4).
I attempted to setup UE4.9 (Release branch) for VS2015 today and got this error:
d:\unreal\UnrealEngine>GenerateProjectFiles.bat -2015
Setting up Unreal Engine 4 project files…
GenerateProjectFiles ERROR: We couldn’t find a valid installation of Visual Studio. This program requires either Visual Studio 2013 or Visual Studio 2012. Ple
ase check that you have Visual Studio installed, then verify that the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\InstallDir (or HKEY_LO
CAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\12.0\InstallDir on 32-bit machines) registry value is set. Visual Studio configures this value when it is installed
, and this program expects it to be set to the ‘\Common7\IDE’ sub-folder under a valid Visual Studio installation directory.
Could you please create a post in the Bug Reports section of the AnswerHub for this issue? We can then make sure it gets assigned to someone to help you out.
Just a heads up either Microsoft or the University is pushing to move from 2013 to 2015. This means for a lot of students or indie developers they will not have access to VS2013 through the Github student pack as of a few days ago. I suspect you will get a lot more questions regarding how to run with 2015 in the next little bit.
Just to briefly check, when installing Visual Studio Community 2013 we only need to check “Microsoft Foundation Classes”, right? Everthing else appears to be not necessary for non-Windows-Store, non-Windows-Phone purposes.
I tried this, ended up with Unreal 4.11.0 - but I get this error when I try to start up a code based project.
Should I just give up and install vs2013 for the next month or so?
Running G:/Documents/GitHub/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“G:/Documents/Unreal Projects/vc2015_t_2/vc2015_t_2.uproject” -game -engine -progress
Discovering modules, targets and source code for game…
UnrealBuildTool Exception: ERROR: Visual C++ must be installed to build this target.
FWIW, after a few attempts, and getting used to Github and VS2013, cloning, compiling etc. of Nvidia VXGI UE4, Oculus Story UE4, things are pretty smooth… The biggest delay is downloading GBs of files. I can’t see why one would want to use VS2015 at this point.
Hello, everyone. I wanted to update everyone that I have compiled a list of additional commits that you will need to cherry-pick in order to be able to build version 4.9.1 from source code using Visual Studio 2015.
First, I would like to apologize for how long it took me to get this information to you. Since this is still in beta and somewhat experimental, I have not been able to dedicate much time to putting this list together. I was able to put aside some time yesterday and today to work on it, and even though the process is not exactly simple, I was able to successfully build the Engine using VS 2015, and run it afterwards.
In order to be able to build 4.9.1 using Visual Studio 2015, you will need to cherry-pick the following commits. It is best to do this in the order that the commits are listed below since some of the commits need to be applied in a specific order.
Using those commits, I was able to build 4.9.1 using Visual Studio 2015. That does not mean the resulting Engine will be fully operational. I did not see any obvious major problems, but I also did not perform any real testing with it. One thing that I did notice is that creating a new code project with this Engine will create a Visual Studio 2013 solution for the project. I am hoping to be able to get some more information tomorrow with regards to how to get your game project to also use VS 2015 (if you try to build the project with VS 2013, it will try to rebuild the Engine with VS 2013 as well since the binaries are different, and the build will likely fail).
Yes, we made the switch internally on Tuesday (though I am still the only person in this department with VS 2015, so I expect I will be getting busy soon). What specific issues are you seeing with VS and Windows 10? The link you provided goes to a post from last year that does not seem to be related to either VS 2015 or Windows 10 (unless I am blind, which is entirely possible).
Clean VS2015, and master branch commit: cef6a4e1 gives me error when cleaning Solution/Engine/UE4
1>------ Clean started: Project: UE4, Configuration: Development_Editor x64 ------
1> Cleaning UE4Editor Binaries…
1>EXEC : GenerateProjectFiles error : A valid version of Visual Studio does not appear to be installed.
1> Press any key to continue . . .
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(32,5): error MSB3073: The command “…..\Build\BatchFiles\Clean.bat UE4Editor Win64 Development -waitmutex -2015” exited with code -1.
2>------ Clean started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
2> Cleaning ShaderCompileWorker Binaries…
2>EXEC : GenerateProjectFiles error : A valid version of Visual Studio does not appear to be installed.
2> Press any key to continue . . .
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(32,5): error MSB3073: The command “…..\Build\BatchFiles\Clean.bat ShaderCompileWorker Win64 Development -waitmutex -2015” exited with code -1.
3>------ Clean started: Project: UnrealBuildTool, Configuration: Development Any CPU ------
4>------ Clean started: Project: DotNETUtilities, Configuration: Development Any CPU ------
5>------ Clean started: Project: EnvVarsToXML, Configuration: Development Any CPU ------
========== Clean: 3 succeeded, 2 failed, 0 skipped ==========
Hello, I am not able to open one of my projects because it says I don’t have visual studio installed. I am using VS2015 and my environmental var is VS140COMNTOOLS. Any ideas how to get this to work?
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file “MinimumRecommendedRules.ruleset”. [C:\Program Files\Epic Games\4.9_2015\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
Should I be concerned?
edit
The above warning occurs when executing “GenerateProjectFiles.bat -2015”.
I get the same warning followed by dozens of errors when trying to Build the project from within VS 2015.