I suggest you ...

Allow loading NuGet assemblies from t4 files

T4 is great but very limited in terms of the assemblies it can reference. You can only use assemblies in the GAC, or assemblies you have the absolute path for. However these days dependency management is done via NuGet and such dependencies don't go into the GAC. In addition, their path changes as versions are bumped. It would be very beneficial to support NuGet packages in t4 files, possibly by extending the "assembly" directive or even creating a new directive. For example:

<#@ nuget name="Newtonsoft.Json" version="9.0.1" #>

57 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Ohad shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

3 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base