Search code examples
t4t4-toolbox

Use VolatileAssembly directive without installing the T4 Toolbox


I'd like to use VolatileAssembly from the T4 Toolbox but do not want to require all developers to install the T4 Toolbox.

Is it possible include the DLL with with project in source control and reference it by path?


Solution

  • In Visual Studio 2010 you are able to do:

    <#@ assembly name="$(ProjectDir)\external\SomeAssembly.dll"#>
    

    Which I believe is what you are asking for.

    EDIT: I understand VolatileAssembly is used to reference assemblies without locking them. This is one of the fixes for VS2010 SP1 so if your devs run VS2010 SP1 you shouldn't need VolatileAssembly anymore.