The Dynamics 365 templates for Visual Studio are not designed for use with Visual Studio 2017. However, you can install the templates on VS2017 at your own risk.
To do so, open the Dynamics 365 SDK and browse to the Templates folder. You will see the CRMSDKTemplates.vsix file:
Double click to open it. You will get an option to select which version of Visual Studio to install:
You will get the error message “The following extensions are not compatible with Visual Studio 2017”. Select Yes to continue:
The message will be displayed:
Create a new project. You will see the new templates: