When I create a new project based on the ‘basic C++ code’ template, and then open visual studio and build, I get some warnings.
1>------ Rebuild All started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Rebuild All started: Project: TestCppProject, Configuration: Development_Editor x64 ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\ProjectFiles\TestCppProject.vcxproj]
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\ProjectFiles\TestCppProject.vcxproj]
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\ProjectFiles\UE4.vcxproj]
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\ProjectFiles\UE4.vcxproj]
2>Cleaning TestCppProjectEditor Binaries...
2>Performing full C++ include scan (hot reloading a new target)
2>Compiling game modules for hot reload
2>EXEC : error : Unable to delete C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Binaries\Win64\UE4Editor-TestCppProject.dll (Access to the path 'C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Binaries\Win64\UE4Editor-TestCppProject.dll' is denied.)
2>Creating makefile for hot reloading TestCppProjectEditor (no existing makefile)
2>Compiling game modules for hot reload
2>Performing full C++ include scan (no include cache file)
2>Parsing headers for TestCppProjectEditor
2> Running UnrealHeaderTool "C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\TestCppProject.uproject" "C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\Build\Win64\TestCppProjectEditor\Development\TestCppProjectEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
2>Reflection code generated for TestCppProjectEditor in 13.1568036 seconds
2>Performing 9 actions (2 in parallel)
2>[2/9] Resource ModuleVersionResource.rc.inl
2>[3/9] Resource PCLaunch.rc
2>SharedPCH.Engine.cpp
2>TestCppProject.cpp
2>TestCppProjectGameModeBase.cpp
2>TestCppProject.init.gen.cpp
2>TestCppProjectGameModeBase.gen.cpp
2>[8/9] Link UE4Editor-TestCppProject-8043.dll
2>[9/9] Link UE4Editor-TestCppProject-8043.lib
2> Creating library C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestCppProject-8043.lib and object C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestCppProject-8043.exp
2> Creating library C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestCppProject-8043.suppressed.lib and object C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestCppProject-8043.suppressed.exp
2>Deploying TestCppProjectEditor Win64 Development...
2>Total build time: 26.37 seconds (Local executor: 4.94 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command ""E:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Rebuild.bat" TestCppProjectEditor Win64 Development "C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\TestCppProject.uproject" -waitmutex" exited with code -1.
2>Done building project "TestCppProject.vcxproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
In paticular, the lines that say
>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\uqasnosw\Documents\Unreal Projects\TestCppProject\Intermediate\ProjectFiles\UE4.vcxproj]
are what I’m referring to. Is it possible to suppress or remove these warnings somehow?