473,797 Members | 3,204 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\Micr osoft.NET\Frame work\v2.0.50727 \Csc.exe /noconfig
/nowarn:1701,170 2 /platform:x64 /errorreport:pro mpt
/baseaddress:285 212672 /define:TRACE;DE BUG
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Data.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Drawing.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Windows.Form s.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Xml.dll
/debug+ /debug:full /out:obj\x64\Deb ug\CFGDistribut eur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dl l' 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 17703
"Eric" <cl**********@g mail.comwrote in message
news:11******** **************@ s80g2000cwa.goo glegroups.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\Micr osoft.NET\Frame work\v2.0.50727 \Csc.exe /noconfig
/nowarn:1701,170 2 /platform:x64 /errorreport:pro mpt
/baseaddress:285 212672 /define:TRACE;DE BUG
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Data.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Drawing.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Windows.Form s.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Xml.dll
/debug+ /debug:full /out:obj\x64\Deb ug\CFGDistribut eur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dl l' 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**********@g mail.comwrote in message
news:11******** **************@ s80g2000cwa.goo glegroups.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\Micr osoft.NET\Frame work\v2.0.50727 \Csc.exe /noconfig
/nowarn:1701,170 2 /platform:x64 /errorreport:pro mpt
/baseaddress:285 212672 /define:TRACE;DE BUG
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Data.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Drawing.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Windows.Form s.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Xml.dll
/debug+ /debug:full /out:obj\x64\Deb ug\CFGDistribut eur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dl l' 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**********@g mail.comwrote in message
news:11******** **************@ q40g2000cwq.goo glegroups.com.. .
>
Willy Denoyette [MVP] wrote:
>"Eric" <cl**********@g mail.comwrote in message
news:11******* *************** @s80g2000cwa.go oglegroups.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\Micr osoft.NET\Frame work\v2.0.50727 \Csc.exe /noconfig
/nowarn:1701,170 2 /platform:x64 /errorreport:pro mpt
/baseaddress:285 212672 /define:TRACE;DE BUG
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Data.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Drawing.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Windows.Form s.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Xml.dll
/debug+ /debug:full /out:obj\x64\Deb ug\CFGDistribut eur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dl l' 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**********@g mail.comwrote in message
news:11******** **************@ q40g2000cwq.goo glegroups.com.. .

Willy Denoyette [MVP] wrote:
"Eric" <cl**********@g mail.comwrote in message
news:11******** **************@ s80g2000cwa.goo glegroups.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\Micr osoft.NET\Frame work\v2.0.50727 \Csc.exe /noconfig
/nowarn:1701,170 2 /platform:x64 /errorreport:pro mpt
/baseaddress:285 212672 /define:TRACE;DE BUG
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Data.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Drawing.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Windows.Form s.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Xml.dll
/debug+ /debug:full /out:obj\x64\Deb ug\CFGDistribut eur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dl l' 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**********@g mail.comwrote in message
news:11******** **************@ 11g2000cwr.goog legroups.com...
>
Willy Denoyette [MVP] wrote:
>"Eric" <cl**********@g mail.comwrote in message
news:11******* *************** @q40g2000cwq.go oglegroups.com. ..
>
Willy Denoyette [MVP] wrote:
"Eric" <cl**********@g mail.comwrote in message
news:11******* *************** @s80g2000cwa.go oglegroups.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\Micr osoft.NET\Frame work\v2.0.50727 \Csc.exe /noconfig
/nowarn:1701,170 2 /platform:x64 /errorreport:pro mpt
/baseaddress:285 212672 /define:TRACE;DE BUG
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Data.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Drawing.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Windows.Form s.dll
/reference:C:\WI NDOWS\Microsoft .NET\Framework\ v2.0.50727\Syst em.Xml.dll
/debug+ /debug:full /out:obj\x64\Deb ug\CFGDistribut eur.dll ...
warning CS1607: Assembly generation -- Referenced assembly
'System.Data.dl l' 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\Micr osoft.NET\Frame work64\v2.0.507 27.
Willy.
Jan 5 '07 #6

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

Similar topics

18
3675
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 the tools refresh. These refreshes are builds out of live development branch and thus are not...
6
5767
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 GetRecord()). Warning Message: Implicit conversion from 'System.ValueType' to...
1
3068
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 Studio\VC98\Include\UTILITY(84) : see reference to class template instantiation...
1
4326
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 files\microsoft visual studio 8\vc\include\excpt.h(33) : error C4430: missing type specifier - int...
7
8152
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 force Visual Studio 2005 to regenerate these files? Is there a setting somewhere that could have...
1
2213
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 njsokalski@hotmail.com http://www.nathansokalski.com/
1
2347
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. C:\Inetpub\wwwroot\CAT_aspnet\worldnews.aspx 0 0 CAT_aspnet
0
6689
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 follows: StdAfx.cpp WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) C:\Program...
1
3930
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 started: Project: openFile, Configuration: Debug Win32 ------
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10023
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.