


If you can’t see the zoom menu, use the options menu to enable zooming. If you can’t see it, you need to enable from the options menu as you will view in the next section. This solved my problem and also removes the need for the separate unofficial NuGet package. Below you can see the Zoom option that allows you to zoom in and out. $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) Once this is installed, you can use MSBuild to transform templates by importing the relevant targets into the MSBuild project:
Microsoft visual studio 2017 templates install#
Turns out that the T4 SDK is now included as part of Visual Studio 2017 (and not part of the separate Modeling SDK as it has been in the past), BUT you have to install it via the Visual Studio extension development toolset in the VS2017 installer (Text Template Transformation feature). How can I do T4 transforms from MSBuild that will work for VS 2017? Will there be a new package from NuGet to use at some point or is this not going to be supported anymore? There is no updated package yet for v15 that I can see.
Microsoft visual studio 2017 templates how to#
My guess is that the error comes from trying to use these targets from a VS 2017 build due to mismatched environments, but I don't know how to trace the exact issue. This is raised by the file .targets(396,5) which is in this package. The system cannot find the file specified.įile name: 'Microsoft.CodeAnalysis, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. In Visual Studio 2017 RTM however, this breaks the build with the following messages:Īn Exception was thrown while running the transformation code. In Visual Studio 2015, I'm using the NuGet package .14.0.0 which allows me to transform T4 templates directly from MSBuild, whenever a project is built.
