| Author |
Message |
malsergey
Joined: 24 Jul 2012 Posts: 2
|
Posted: Mon Aug 06, 2012 10:50 am Post subject: Many CS1685 warnings while asp.net compilation |
|
|
We have a lot (1800) of warnings in compile process of our web application.
For dlls which used by web application it was solved by adding different alias for RedGate libraries. But this workaround is not useful for aspnet_compiler.
Also it is not possible to suppress this warning.
Could you help with it?
Warnings:
| Quote: |
(0): warning CS1685: The predefined type 'System.Func' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll'
(0): warning CS1685: The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ec8d7bb0\fdb93028\assembly\dl3\1811f998\c5d5991c_b86fcd01\LinqBridge.DLL' |
|
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Tue Aug 07, 2012 5:18 pm Post subject: |
|
|
Hello,
Sorry to say there is no workaround for this issue - We had implemented something to extend Linq and then later Microsoft went and added the same class to .NET Framework.
However, you should be able to safely ignore the warning - it should not prevent the code from compiling unless "treat warnings as errors" is on. Not sure if that applies to aspnet_compiler but it may do. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
neildmoss
Joined: 05 Nov 2012 Posts: 1
|
Posted: Mon Nov 05, 2012 6:56 pm Post subject: Late to the party, but this worked for me.... |
|
|
I had this error in a Redgate-less ASP.NET project, and the workaround was to add the [compilation defaultLanguage="c#"] tag to the web.config file.
It's worth a try.
Regards,
Neil. |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group