Red Gate forums :: View topic - Many CS1685 warnings while asp.net compilation
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK 10
SQL Comparison SDK 10 forum

Many CS1685 warnings while asp.net compilation

Search in SQL Comparison SDK 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
malsergey



Joined: 24 Jul 2012
Posts: 2

PostPosted: Mon Aug 06, 2012 10:50 am    Post subject: Many CS1685 warnings while asp.net compilation Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6645

PostPosted: Tue Aug 07, 2012 5:18 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
neildmoss



Joined: 05 Nov 2012
Posts: 1

PostPosted: Mon Nov 05, 2012 6:56 pm    Post subject: Late to the party, but this worked for me.... Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic 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