Codesmith’s .NET 4 Support

Reading .NET 4 assemblies from codesmith Template

Although CodeSmith future version  will support .NET 4 out of box, current version does not support it directly. If your template needs to read from a .NET 4 assembly, embed start-up element in your CodeSmith config files (Configuration files are located on the Installation folder).

<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

If you want to use .NET 4 features in your templates, you can change from CompilerVersion=”v3.5″ to CompilerVersion=”v4.0″

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s