-
Notifications
You must be signed in to change notification settings - Fork 425
T4 cannot find netstandard 2.1 #1669
Comments
+1 |
Any news here? I lifted a project to netstandard 2.1, but now I'm not able to run the t4 text template generator. |
I'm also having this issue with T4 templates. |
+1 |
+1 |
+1 |
1 similar comment
+1 |
the templating engine is not resolving, netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 the assembly for version 2.1 is not in the gac., currently .net core 3.x is the only runtime that can use the netstandard 2.1. the assembly can be found in the runtime folders for netcoreapp 3.x. |
+1 |
2 similar comments
+1 |
+1 |
Any news on that one? Still have the same issue ... |
+1 |
1 similar comment
+1 |
same issue. any news? happy new year. |
Same issue. Any updates. I have two machines running VS 16.8.4. I get this error when attempting to Add-Migration on one of them. |
+1 |
1 similar comment
+1 |
Any update here please from the team, it been over 2 years and there is still no fix for this issue and it's forcing people like myself to not be able to use .NET Standard 2.1 due to my dependency and usage of T4 templates. |
My understanding of T4 is that it runs on .NET Framework. As such, it won't work with .NET Standard 2.1 but should work for .NET Standard 2.0, assuming you run on .NET Framework 4.7.2 or higher, see footnote 2. |
When a T4 compile-time template references a netstandard 2.1 assembly, if the template's code tries to instantiate a class from that assembly it generates an error:
This occurs even if the project containing the T4 template targets netstandard 2.1.
Test case attached: just right-click TT.tt and select Run Custom Tool. The error message appears.
NetStandardT4.zip
Microsoft Visual Studio Community 2019, v 16.4.0; 64-bit PC; 64-bit Windows 10. I'm using the Devart Template Editor extension, v 1.0.11.0. I do not see this error when the dependency targets netstandard 2,0 instead.
The text was updated successfully, but these errors were encountered: