Warning RE C# 2.0 and C# 3.5 compilers are no longer supported

Mar 3, 2011 at 2:43 PM

Oleg (and all) -

Please help.

I received this warning in Visual Studio 2010...

Warning 1 The C# 2.0 and C# 3.5 compilers are no longer supported. Templates will always be compiled with the version 4 compiler instead of 'v3.5' as specified.

 C:\Code\Tester\Clearwater\Clearwater.BusinessLayer\BusinessUtilities\Generated\_T4NameUtility03File.tt

,,,so it looks like this is the offending line...

<#@ template language="C#v3.5" hostspecific="True" debug="True" #> 

...so I have changed it to this...

<#@ template language="C#v4" hostspecific="True" debug="True" #> 

...and it seems to be the right change to make...

...BUT...

...is that, in fact, the right change to make?

Please advise.

Thank you.

- Mark Kamoski

Mar 3, 2011 at 2:46 PM

Oleg -

Please help.

This is an update to my post above...

...with this... 

<#@ template language="C#v4" hostspecific="True" debug="True" #> 

...I am now getting this error...

Warning 1 An invalid language 'C#v4' was specified in the 'template' directive. The language must be either "C#" or "VB". The default value of "C#" will be used.

C:\Code\Team\Clear\Clear.BusinessLayer\BusinessUtilities\Generated\_T4NameUtility03File.tt 1 4

...so I changed to this...

<#@ template language="C#" hostspecific="True" debug="True" #> 

...and MAYBE that will work?

Is that the prescribed way to go?

What do you think?

Please advise.

Thank you.

- Mark Kamoski

Mar 3, 2011 at 3:01 PM

All -

I should have mentioned that this issue has cropped up coincidentally after my move from Windows XP Pro to Windows 7 Pro 32bit.

I just thought that I should mention this fact.

Any help is appreciated.

Thank you.

- Mark Kamoski