the VS2015 "SQL Server Database Project" template does not support SQLCLR functions with C#6.0 (.Net4.6) to be compiled. The error message is
"CSC: Error: CS1617: Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default".
I have searched and found a lot for web projects like, e.g. Error Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
Here you shall change the compiler in the web.config
, like
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
But me, I do not have an app, nor a web.config
in my database project. So what can I do to set the compiler for this project?
Thanks a lot.