tobiasschulz / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

The predefined type 'System.Func' is defined in multiple assemblies in the global alias #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the MS VS 2010, I have the following warning:

Warning 1   The predefined type 'System.Func' is defined in multiple assemblies 
in the global alias; using definition from 
'C:\bot\csharp-sqlite\Community.CsharpSqlite\src\Delagates.cs'  Community.CsharpS
qlite.shell

Warning 2   Unreachable code 
detected    C:\bot\csharp-sqlite\Community.CsharpSqlite\src\pager_c.cs  2246    7   Commu
nity.CsharpSqlite.shell

Is this normal?

Original issue reported on code.google.com by anebotov on 6 Jul 2010 at 8:45

GoogleCodeExporter commented 9 years ago
If I set target framework 2.0 or 3.0, then have only "Unreachable code 
detected" warning.

Why "NOTREACHED" code "Debugger.Break();" (line 2246 of pager_c.cs)  is 
uncommented?
Maybe comment code "Debugger.Break();" and replace "goto end_playback;" on 
"break;"?

If I set target framework 3.5, then have warnings:
1) Unreachable code detected" warning
2) The predefined type 'System.Func' is defined in multiple assemblies in the 
global alias; using definition from 
'C:\bot\csharp-sqlite\Community.CsharpSqlite\src\Delagates.cs'  Community.CsharpS
qlite.shell

If I set target framework 4.0, then have warnings:
Warning 1   The predefined type 'System.Action' is defined in multiple assemblies 
in the global alias; using definition from 'c:\Program Files\Reference 
Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll'
Warning 2   The predefined type 'System.Func' is defined in multiple assemblies 
in the global alias; using definition from 'c:\Program Files\Reference 
Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll'
Warning 3   The predefined type 'System.Func' is defined in multiple assemblies 
in the global alias; using definition from 'c:\Program Files\Reference 
Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll'
Warning 4   Unreachable code 
detected    csharp-sqlite\Community.CsharpSqlite\src\pager_c.cs 2246    7

Original comment by anebotov on 6 Jul 2010 at 10:01

GoogleCodeExporter commented 9 years ago
Please confirm you are using the latest source files.  The problem you've 
described has already been corrected

Original comment by noah.hart@gmail.com on 6 Jul 2010 at 1:32

GoogleCodeExporter commented 9 years ago
I downloaded files from Repository.

Warning "Unreachable code detected" сorrected, 
but warnings remained:
1) The predefined type 'System.Action' is defined in multiple assemblies in the 
global alias
2) The predefined type 'System.Func' is defined in multiple assemblies in the 
global alias

I suspect Delagates.cs

Original comment by anebotov on 6 Jul 2010 at 3:12

GoogleCodeExporter commented 9 years ago
What version of .NET are you compiling for?  3.5 or 4.0?

If 3.5, you need to define NET_35, if 4.0 remove the symbol

Original comment by noah.hart@gmail.com on 6 Jul 2010 at 3:31

GoogleCodeExporter commented 9 years ago
Fixed with changeset:   76:d6968f1d2545
date:        Tue Jul 06 08:49:24 2010 -0700

Original comment by noah.hart@gmail.com on 6 Jul 2010 at 3:50

GoogleCodeExporter commented 9 years ago
ok, for 3.5 I define NET_35. and all ok (but wiki 
http://code.google.com/p/csharp-sqlite/wiki/HowToCompile does not contain this 
information!!!)

sorry, what is "if 4.0 remove the symbol"? what i must delete?

Original comment by anebotov on 7 Jul 2010 at 9:44

GoogleCodeExporter commented 9 years ago
HowToCompile updated.  

Ignore the comment about 4.0 

Original comment by noah.hart@gmail.com on 7 Jul 2010 at 1:30