walbourn / directx-vs-templates

Direct3D Visual Studio Templates
https://walbourn.github.io/direct3d-game-visual-studio-templates-redux/
MIT License
402 stars 53 forks source link

Still Doesn't Load #42

Closed ghost closed 3 years ago

ghost commented 3 years ago

Using the absolute latest version of Visual Studio 2019, these templates still throw an error when you try to create a project with them. I checked the known issue, it says that it was fixed, but I still get this: image Has been happening for a while, just assumed it would be fixed, but I've updated VS 2019 at least four or five times since I've had this problem, and my entire system has been rebuilt at least once as well.

ghost commented 3 years ago

Another idea, the main reason why I want these templates is just so that I can get the correct settings out of the project properties dialogs and then I merge them into .props files. It would be particularly handy if you'd just put the custom settings into .props files so I can apply them to my own project files that often have additional settings like preprocessor definitions for additional libraries, includes for the WinSocks libraries, and so forth. I actually don't use the templates themselves, I just extract the settings from the properties.

walbourn commented 3 years ago

You need to install the "Universal Platform Apps" workload. That provides the missing Windows SDK wizard selector as noted in the README.md.

Note I also have CMakeLists.txt for the Win32 projects for reference.

ghost commented 3 years ago

The installer claimed that it was installing this workload as a pre-requisite for the VSIX, so there may be an additional prerequisite that is not detected for some reason. Thank you, will try adding the workload manually.

walbourn commented 3 years ago

Thanks, I'll see if they moved something in the recent updates...

ghost commented 3 years ago

Confirmed , installing the entire 10.6GB UWP workload solved it ;)

ghost commented 3 years ago

Common.props `<?xml version="1.0" encoding="utf-8"?>

$(ProjectDir);%(AdditionalIncludeDirectories) Level4 Fast true stdcpp17 Use pch.h d3d11.lib;dxgi.lib;dxguid.lib;%(AdditionalDependencies) true Windows ` Release.props ` false true WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) true true true ` Debug.props ` WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) `
ghost commented 3 years ago

Note I turned permissive- on and set language to 17, which is not the template default, otherwise, these are the properties extracted from the Win32 DR template. Using props pages substantially simplifies my solution configurations, would be awesome if you used them as well for the templates.