I am working with an Visual Studio project I took over from a colleague some years ago. Until now it was working well with Visual Studio 2015 / 2017. But now I had to migrate to Visual Studio 2022 on a fresh development machine.
The project is using T4 templates. Now I get errors when I try to run the custom tool (TextTemplatingFileGenerator)
An exception was thrown while trying to compile the transformation code. The following Exception was thrown:
System.IO.FileNotFoundException: Could not find file 'D:SourcesDEVSourceMicrosoft.VisualStudio.Shell.10.0'.
File name: 'D:SourcesDEVSourceMicrosoft.VisualStudio.Shell.10.0'
In my ttinclude file I have the following:
<#@ assembly name="Microsoft.VisualStudio.Shell.10.0"#>
<#@ assembly name="Microsoft.VisualStudio.Shell.Interop "#>
<#@ import namespace="Microsoft.VisualStudio.Shell.Interop"#>
I tried several different updates, but don’t get it working again. When I change the version number from 10 to 15 in assembly reference then it complains about missing Microsoft.VisualStudio.Shell.Interop
Can anyone help me how to migrate?
4