Many CS1685 warnings while asp.net compilation

Automate and integrate using the SQL comparison API

Moderators: Chris Auckland, David Atkinson, Michelle Taylor, chengvoon.tong

Many CS1685 warnings while asp.net compilation

Postby malsergey » Mon Aug 06, 2012 10:50 am

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:
(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'
malsergey
 
Posts: 2
Joined: Tue Jul 24, 2012 7:36 pm

Postby Brian Donahue » Tue Aug 07, 2012 5:18 pm

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
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Late to the party, but this worked for me....

Postby neildmoss » Mon Nov 05, 2012 6:56 pm

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.
neildmoss
 
Posts: 1
Joined: Mon Nov 05, 2012 6:52 pm


Return to SQL Comparison SDK 10

Who is online

Users browsing this forum: No registered users and 0 guests