473,516 Members | 3,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling with the framework64 with Visual Studio 2005 (Warning CS1607)

Hi,

I want to generate a dll for x64. In the project, I specify the
platform target x64 but VS2005 use the win32 framework. Here is the
warnings that I get :

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc. exe /noconfig
/nowarn:1701,1702 /platform:x64 /errorreport:prompt
/baseaddress:285212672 /define:TRACE;DEBUG
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Data.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Drawing.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Windows.Forms.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Xml.dll
/debug+ /debug:full /out:obj\x64\Debug\CFGDistributeur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly
'mscorlib.dll' targets a different processor

So I want to know how the specify in VS2005 the use the Framework64
(x64) and not use the Framework (win32).

Thanks,
Eric

Jan 5 '07 #1
5 17637
"Eric" <cl**********@gmail.comwrote in message
news:11**********************@s80g2000cwa.googlegr oups.com...
Hi,

I want to generate a dll for x64. In the project, I specify the
platform target x64 but VS2005 use the win32 framework. Here is the
warnings that I get :

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc. exe /noconfig
/nowarn:1701,1702 /platform:x64 /errorreport:prompt
/baseaddress:285212672 /define:TRACE;DEBUG
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Data.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Drawing.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Windows.Forms.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Xml.dll
/debug+ /debug:full /out:obj\x64\Debug\CFGDistributeur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly
'mscorlib.dll' targets a different processor

So I want to know how the specify in VS2005 the use the Framework64
(x64) and not use the Framework (win32).

Thanks,
Eric
Well there are two issues here, I hoped SP1 would have solved, but it's not:
1. VS is using csc from the 32bit framework.
2. VS references the assemblies from the 32 bit framework and some assemblies are built as
X86.
Now this is no big deal (unless these warnings get you nervous :))) , at run-time the
program will correctly load the 64 bit CLR and the correct 64bit FCL assemblies.

Willy.
Jan 5 '07 #2

Willy Denoyette [MVP] wrote:
"Eric" <cl**********@gmail.comwrote in message
news:11**********************@s80g2000cwa.googlegr oups.com...
Hi,

I want to generate a dll for x64. In the project, I specify the
platform target x64 but VS2005 use the win32 framework. Here is the
warnings that I get :

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc. exe /noconfig
/nowarn:1701,1702 /platform:x64 /errorreport:prompt
/baseaddress:285212672 /define:TRACE;DEBUG
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Data.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Drawing.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Windows.Forms.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Xml.dll
/debug+ /debug:full /out:obj\x64\Debug\CFGDistributeur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly
'mscorlib.dll' targets a different processor

So I want to know how the specify in VS2005 the use the Framework64
(x64) and not use the Framework (win32).

Thanks,
Eric

Well there are two issues here, I hoped SP1 would have solved, but it's not:
1. VS is using csc from the 32bit framework.
2. VS references the assemblies from the 32 bit framework and some assemblies are built as
X86.
Now this is no big deal (unless these warnings get you nervous :))) , at run-time the
program will correctly load the 64 bit CLR and the correct 64bit FCL assemblies.

Willy.
Is there possible to specify VS2005 to use csc from the 64bit
framework? How?

I have a C++ application (64-bits) that load C# applet (need to be
64-bits). My application wasn't able to load the applet. The solution
that I found, is the compile manually from the command line the applet
with the csc.exe and system dll from the 64-bits framework.

Regards,
Eric

Jan 5 '07 #3
"Eric" <cl**********@gmail.comwrote in message
news:11**********************@q40g2000cwq.googlegr oups.com...
>
Willy Denoyette [MVP] wrote:
>"Eric" <cl**********@gmail.comwrote in message
news:11**********************@s80g2000cwa.googleg roups.com...
Hi,

I want to generate a dll for x64. In the project, I specify the
platform target x64 but VS2005 use the win32 framework. Here is the
warnings that I get :

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc. exe /noconfig
/nowarn:1701,1702 /platform:x64 /errorreport:prompt
/baseaddress:285212672 /define:TRACE;DEBUG
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Data.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Drawing.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Windows.Forms.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Xml.dll
/debug+ /debug:full /out:obj\x64\Debug\CFGDistributeur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly
'mscorlib.dll' targets a different processor

So I want to know how the specify in VS2005 the use the Framework64
(x64) and not use the Framework (win32).

Thanks,
Eric

Well there are two issues here, I hoped SP1 would have solved, but it's not:
1. VS is using csc from the 32bit framework.
2. VS references the assemblies from the 32 bit framework and some assemblies are built
as
X86.
Now this is no big deal (unless these warnings get you nervous :))) , at run-time the
program will correctly load the 64 bit CLR and the correct 64bit FCL assemblies.

Willy.

Is there possible to specify VS2005 to use csc from the 64bit
framework? How?
No that I know.
I have a C++ application (64-bits) that load C# applet (need to be
64-bits). My application wasn't able to load the applet. The solution
that I found, is the compile manually from the command line the applet
with the csc.exe and system dll from the 64-bits framework.
This shouldn't be a problem, if you did compile from VS with the "platform" set to "x64",
you can safely ignore the warnings, the resultant DLL should have the correct PE and CLR
header.
What error message did you get when loading the applet?

Willy.

Jan 5 '07 #4

Willy Denoyette [MVP] wrote:
"Eric" <cl**********@gmail.comwrote in message
news:11**********************@q40g2000cwq.googlegr oups.com...

Willy Denoyette [MVP] wrote:
"Eric" <cl**********@gmail.comwrote in message
news:11**********************@s80g2000cwa.googlegr oups.com...
Hi,

I want to generate a dll for x64. In the project, I specify the
platform target x64 but VS2005 use the win32 framework. Here is the
warnings that I get :

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc. exe /noconfig
/nowarn:1701,1702 /platform:x64 /errorreport:prompt
/baseaddress:285212672 /define:TRACE;DEBUG
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Data.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Drawing.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Windows.Forms.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Xml.dll
/debug+ /debug:full /out:obj\x64\Debug\CFGDistributeur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly
'mscorlib.dll' targets a different processor

So I want to know how the specify in VS2005 the use the Framework64
(x64) and not use the Framework (win32).

Thanks,
Eric


Well there are two issues here, I hoped SP1 would have solved, but it's not:
1. VS is using csc from the 32bit framework.
2. VS references the assemblies from the 32 bit framework and some assemblies are built
as
X86.
Now this is no big deal (unless these warnings get you nervous :))) , at run-time the
program will correctly load the 64 bit CLR and the correct 64bit FCL assemblies.

Willy.
Is there possible to specify VS2005 to use csc from the 64bit
framework? How?
No that I know.
I have a C++ application (64-bits) that load C# applet (need to be
64-bits). My application wasn't able to load the applet. The solution
that I found, is the compile manually from the command line the applet
with the csc.exe and system dll from the 64-bits framework.

This shouldn't be a problem, if you did compile from VS with the "platform" set to "x64",
you can safely ignore the warnings, the resultant DLL should have the correct PE and CLR
header.
What error message did you get when loading the applet?

Willy.
I did what you said. I didn't receive any error message. In run-time,
the applet just didn't load.

The first thing that I do, was use the application RegAsm.exe from the
framework64. After that, the applet didn't load again. So I recompile
with the csc.exe and system.dll, system.data.dll ... from the
framework64 (manually from the command line) and this time the applet
load.

Regards,
Eric

Eric

Jan 5 '07 #5
"Eric" <cl**********@gmail.comwrote in message
news:11**********************@11g2000cwr.googlegro ups.com...
>
Willy Denoyette [MVP] wrote:
>"Eric" <cl**********@gmail.comwrote in message
news:11**********************@q40g2000cwq.googleg roups.com...
>
Willy Denoyette [MVP] wrote:
"Eric" <cl**********@gmail.comwrote in message
news:11**********************@s80g2000cwa.googleg roups.com...
Hi,

I want to generate a dll for x64. In the project, I specify the
platform target x64 but VS2005 use the win32 framework. Here is the
warnings that I get :

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc. exe /noconfig
/nowarn:1701,1702 /platform:x64 /errorreport:prompt
/baseaddress:285212672 /define:TRACE;DEBUG
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Data.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Drawing.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Windows.Forms.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\System.Xml.dll
/debug+ /debug:full /out:obj\x64\Debug\CFGDistributeur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dll' targets a different processor
warning CS1607: Assembly generation -- Referenced assembly
'mscorlib.dll' targets a different processor

So I want to know how the specify in VS2005 the use the Framework64
(x64) and not use the Framework (win32).

Thanks,
Eric
Well there are two issues here, I hoped SP1 would have solved, but it's not:
1. VS is using csc from the 32bit framework.
2. VS references the assemblies from the 32 bit framework and some assemblies are
built
as
X86.
Now this is no big deal (unless these warnings get you nervous :))) , at run-time the
program will correctly load the 64 bit CLR and the correct 64bit FCL assemblies.

Willy.

Is there possible to specify VS2005 to use csc from the 64bit
framework? How?
No that I know.
I have a C++ application (64-bits) that load C# applet (need to be
64-bits). My application wasn't able to load the applet. The solution
that I found, is the compile manually from the command line the applet
with the csc.exe and system dll from the 64-bits framework.

This shouldn't be a problem, if you did compile from VS with the "platform" set to "x64",
you can safely ignore the warnings, the resultant DLL should have the correct PE and CLR
header.
What error message did you get when loading the applet?

Willy.

I did what you said. I didn't receive any error message. In run-time,
the applet just didn't load.

The first thing that I do, was use the application RegAsm.exe from the
framework64. After that, the applet didn't load again. So I recompile
with the csc.exe and system.dll, system.data.dll ... from the
framework64 (manually from the command line) and this time the applet
load.

Regards,
Eric

Eric

Wait a minute now I get it, this applet is a COM object (at least for the native client),
you need to "regasm" this dll using the 64 bit version of regasm, this is the cullprit, not
the compiler. You can do this in VS by specifying a post build event that initiates
regasm.exe from ?:\Windows\Microsoft.NET\Framework64\v2.0.50727.
Willy.
Jan 5 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
3642
by: Brandon Bray [MSFT] | last post by:
Shortly, the Visual C++ Tools Refresh will be available on the MSDN Visual C++ devcenter. You will need to have installed the Visual Studio 2005 Beta first. <http://msdn.microsoft.com/visualc> I have been talking about this a lot over the last two months. All of the features that are missing in the compiler for Beta 1 are now available in...
6
5749
by: Tom McL. | last post by:
I'm trying to move a program that was designed using Visual Studio 2003 and (Visual Basic) into Visual Studio 2005. When it runs I get the following warning in the Error List Window and I'm not sure how to correct it. The program runs fine except for the warning. The warning puts a green squiggle line under MyRecord in the (Private Sub...
1
3053
by: Riaan | last post by:
I am compiling my app (including CODEBASE database headers) but as soon as i compile it gives me the following errors : c:\Program Files\Microsoft Visual Studio\VC98\Include\UTILITY(81) : warning C4346: '_It::iterator_category' : dependent name is not a type prefix with 'typename' to indicate a type c:\Program Files\Microsoft Visual...
1
4303
by: Michel | last post by:
In VC++ from Visual Studio 2005 the following occurs: If I try to compile anyting, even a newly created empty MFC application with 1 empty dialog, I get the following 2 errors: Compiling... stdafx.cpp c:\program files\microsoft visual studio 8\vc\include\excpt.h(33) : error C2144: syntax error : 'int' should be preceded by ';' c:\program...
7
8123
by: Nathan Sokalski | last post by:
I am an ASP.NET developer, and Visual Studio 2005 seems to have stopped declaring the controls that I add in the *.designer.vb files, therefore forcing me to manually add them before I can use them in code that I write in the *.aspx.vb and *.ascx.vb files. Why is it no longer automatically declaring the controls? Is there a way to manually...
1
2182
by: Nathan Sokalski | last post by:
Visual Studio 2005 recently stopped generating the *.designer.vb files for my *.aspx and *.ascx files. I am using Service Pack 1, and do not believe I did anything differently than normal prior to this happening. Is there anything that could have caused this? Does anyone know of a way to fix it? Thanks. -- Nathan Sokalski...
1
2320
by: Nathan Sokalski | last post by:
Visual Studio 2005 unexpectedly stopped generating the *.designer.vb files for *.aspx and *.ascx files. After a few days of frustration trying to fix this, I noticed that it had the following Warning in the Error List tab at the bottom of the screen: Generation of designer file failed: The relative virtual path '?/' is not allowed here....
0
6650
by: marathoner | last post by:
I am currently migrating my Visual C++ 6.0 applications to Visual Studio 2005. I am getting compiler errors involving the VS2005's platform SDK. When I removed directory references to that SDK, and started using the Microsoft Platform SDK for XP SP2, the errors disappeared, but I am now getting numerous warnings (macro redefinitions) as...
1
3907
by: jon2211 | last post by:
I tried to compile some code with #include <shellapi.h. I am linking shell32.lib. I am not trying to use ShellExecute() but right now just getting the code to compile with the header file an issue. I am using Visual Basic 2005 (express). I got shellapi.h from the platform sdk. Thanks for any help. here is my error log 1>------ Build...
0
7574
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7547
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5106
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1620
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.