473,721 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling VS2005 project for .NET framework 1.0 or 1.1

I need to compile a VS2005 project to run using the 1.1 framework (i.e.,
app.config containing <supportedRunti me version="v1.1.4 322" /> ).

(If I just compile and run with such a setting it functions, but I can't
tell which framework it's using.)

Is there any way to specifically compile for 1.1 with the standard Studio,
or do I have to seek recourse with plug-ins like the following?

http://www.gotdotnet.com/codegallery...a-9b8d00970371

Jun 20 '06 #1
13 5055
Hello Dave,

Have u looked at MSBee tool?

DB> I need to compile a VS2005 project to run using the 1.1 framework
DB> (i.e., app.config containing <supportedRunti me version="v1.1.4 322"
DB> /> ).
DB>
DB> (If I just compile and run with such a setting it functions, but I
DB> can't tell which framework it's using.)
DB>
DB> Is there any way to specifically compile for 1.1 with the standard
DB> Studio, or do I have to seek recourse with plug-ins like the
DB> following?
DB>
DB> http://www.gotdotnet.com/codegallery...id=9ac94da5-8e
DB> 5a-4a33-beda-9b8d00970371
DB>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jun 20 '06 #2
Right, that's the plugin I was referring to. I guess I could try that, I'm
just surprised that I would need third-party software to accomplish this.

"Michael Nemtsev" wrote:
Hello Dave,

Have u looked at MSBee tool?


Jun 20 '06 #3
Hello Dave,

I couldn't open your link.
The reason is that by default each version of VS is directly corresponds
to the specific .NET FW.
Thus there is no other way than using 3rd part tools for your task, it's
rather normal to use it

DB> Right, that's the plugin I was referring to. I guess I could try
DB> that, I'm just surprised that I would need third-party software to
DB> accomplish this.
DB>
DB> "Michael Nemtsev" wrote:
DB>
Hello Dave,

Have u looked at MSBee tool?

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jun 20 '06 #4
Hi Dave,

Yes, I have tried to use app.config with <supportedRunti me> element to
redirect the assembly compiled with VS2005 to use .Net CLR1.1:
<?xml version ="1.0"?>
<configuratio n>
<startup>
<supportedRunti me version="v1.1.4 322" />
</startup>
</configuration>

I got a "Strong name validation failed" BadImageFormatE xception dialog
while running this VS2005 exe. I also tried to adding <assemblyBindin g> and
<bindingRedirec t> elements to the app.config file to redirect the
referenced assembly binding version, but the BadImageFormatE xception dialog
keeps generating.

I have tried to contact our Dev team regarding this issue. Below is their
feedback:
"You cannot run V2.0 Framework apps on V1.1. There were non-forward
compatible changes. This is the intended behavior, v1.1 Framework will run
on v2.0 but not vice versa."

So it seems that CLR2.0 does not support redirecting the runtime to
Net1.0/1.1 with app.config file.

If you have .Net Framework1.1 installed and your C# source code file is
compatible with .Net1.1, you may use csc.exe in .Net Framework1.1 to
compile your project. This should be the simplest workaround.

Hope the information helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 22 '06 #5
Hello Jeffrey Tan[MSFT],

No, that's not completly true

..NET FW support backward compatibility but it couldn't be guarantee
Only several asseblies are unified in the scope of different .NET FWs

For unification use version policy like this

<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="System.Xm l"
publicKeyToken= "b77a5c561934e0 89" />
<bindingRedirec t oldVersion="0.0 .0.0-2.0.3600"
newVersion="1.1 .5000" />
</dependentAssemb ly>
</assemblyBinding >

You can set such behaviour for each assembly that you can make unify
J> Hi Dave,
J>
J> Yes, I have tried to use app.config with <supportedRunti me> element
J> to
J> redirect the assembly compiled with VS2005 to use .Net CLR1.1:
J> <?xml version ="1.0"?>
J> <configuratio n>
J> <startup>
J> <supportedRunti me version="v1.1.4 322" />
J> </startup>
J> </configuration>
J> I got a "Strong name validation failed" BadImageFormatE xception
J> dialog while running this VS2005 exe. I also tried to adding
J> <assemblyBindin g> and <bindingRedirec t> elements to the app.config
J> file to redirect the referenced assembly binding version, but the
J> BadImageFormatE xception dialog keeps generating.
J>
J> I have tried to contact our Dev team regarding this issue. Below is
J> their
J> feedback:
J> "You cannot run V2.0 Framework apps on V1.1. There were non-forward
J> compatible changes. This is the intended behavior, v1.1 Framework
J> will run
J> on v2.0 but not vice versa."
J> So it seems that CLR2.0 does not support redirecting the runtime to
J> .Net1.0/1.1 with app.config file.
J>
J> If you have .Net Framework1.1 installed and your C# source code file
J> is compatible with .Net1.1, you may use csc.exe in .Net Framework1.1
J> to compile your project. This should be the simplest workaround.
J>
J> Hope the information helps!
J>
J> Best regards,
J> Jeffrey Tan
J> Microsoft Online Community Support
J> =============== =============== =============== =====
J> When responding to posts, please "Reply to Group" via your newsreader
J> so
J> that others may learn and benefit from your issue.
J> =============== =============== =============== =====
J> This posting is provided "AS IS" with no warranties, and confers no
J> rights.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Jun 22 '06 #6
Hi Michael,

As I stated in my reply, I have tried <assemblyBindin g> and
<bindingRedirec t> elements in the config file to forward the referenced
assembly to .Net1.1 FCL assemblies. However, this is not the key point.

The keypoint is that there is no way to tell OS loader to use CLR1.1
runtime to run our VS2005 compiled assembly. In .Net1.1, we can use
app.config with <supportedRunti me> element to get this done. In .Net2.0,
this will generate BadImageFormatE xception at loading time.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 22 '06 #7
Hello Jeffrey Tan[MSFT],

I've missed the point initially. I rekon that OP trying to load .NET 1.*
assembly into .NET 2.0 fw, that's is possible
The reverses is definitly not

J> Hi Michael,
J>
J> As I stated in my reply, I have tried <assemblyBindin g> and
J> <bindingRedirec t> elements in the config file to forward the
J> referenced assembly to .Net1.1 FCL assemblies. However, this is not
J> the key point.
J>
J> The keypoint is that there is no way to tell OS loader to use CLR1.1
J> runtime to run our VS2005 compiled assembly. In .Net1.1, we can use
J> app.config with <supportedRunti me> element to get this done. In
J> .Net2.0, this will generate BadImageFormatE xception at loading time.
J>
J> Thanks.
J>
J> Best regards,
J> Jeffrey Tan
J> Microsoft Online Community Support
J> =============== =============== =============== =====
J> When responding to posts, please "Reply to Group" via your newsreader
J> so
J> that others may learn and benefit from your issue.
J> =============== =============== =============== =====
J> This posting is provided "AS IS" with no warranties, and confers no
J> rights.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jun 22 '06 #8
Hi dbooksta,

I am not sure if you are still monitoring this thread. Below is some more
information regarding MSBee:

From what I understand, MSBee is an add-on to the MSBuild system that
changes the framework targeted. So, you are actually building against the
v1.1 framework using the VS2003 version of the compilers using the VS2005
version of MSBuild (sort of). You can write your code in the IDE but must
use the cmd line to do the building, so it doesn't appear to be a seamless
integration. Maybe in future VS release, we may have the MSBee feature
build-in.

Hope this information helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 23 '06 #9
Sorry, my notifications must have been misdirected. This is still an open
issue for me, since MSBee is still very buggy and not the most convenient
thing for me since it has to be installed on every computer that wants to
touch the project.

I actually have a paid MS support event open in which this plays a role, and
the engineer seems to think we can force a VS2005 project to run under 1.1
without resorting to MSBee. As soon as he tells me how, I'll follow up!

Jun 29 '06 #10

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

Similar topics

0
1288
by: Evyatar | last post by:
I have a problem to build vs2005 project: I type this command: msbuild "o:\UserManager.sln" and get this error: MSBUILD : error MSB1009: Project file does not exist. MSBUILD : error MSB1009: Project file does not exist. o:\MyProject\MyProject.vdproj(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
1
1480
by: pyang | last post by:
Hi, I converted a java project to C# project. My goal is to genrate C# API doc from this converted project. I don't necessary need to build the C# project. However, in VS studio, in order to genrate the XML for documentation, it requires a successful build of the C# project. If the build fails, VS studio does not genrate the documentation XML file.
3
1190
by: dhnriverside | last post by:
Hi guys I have a problem. I'm having a lot of problems with the "very known bug" of Visual C# deleting bits of code when you fast-switch between designer and code. It keeps deleting my entire OnInit(), which for a wizard-like page, contains quite a lot of code! I've spoken to various MVP leads on this issue, and the best solution they can come up with is "dont use Designer", which isn't really very helpful, is it? After all, I did...
4
1386
by: Anbu | last post by:
Hi All, I'm creating an ASP.NET 2.0 web solution using VS 2005. The solution (.sln) contains 4 projects, one depends on another. I need to compile the project files using automated process, which will call the compilation process project by project. How can i compile a project alone from the solution?? In earlier version of VS, the project information was stored in a
0
1296
by: WayCool | last post by:
When I try the steps to start a new project in Visual Studio 2005 for PocketPC 2003 ('Smart Device') by filling in the 'New project' Dialog box and hitting OK, I get a little beep, the Dialog returns and I get a message 'Creating project 'xxx' .. project creation failed' in the Status Bar. I re-installed VS2005 - no difference. With so little feedback, I can't tell what to do to get this working. Can anybody help?
12
1359
by: jtertin | last post by:
Can you force VS 2005 to compile a program to be compatible with version 1.x of the .NET Framework? HOW!?
0
1559
by: jmawebco | last post by:
I have a project I'm working on in VS2005 using vb.net with a MSSql 2005 backend. Everytime I try to run the application I get the same error message; ********* ERROR ********* Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
2
1099
by: Peter Bradley | last post by:
We have upgraded an ASP.NET solution from VS2003 (.NET 1.1) to VS2005 (.NET 2.0). On rebuilding the solution, no dll appears in the bin folder of the Web site. Is this the usual case for VS2005 solutions? If so, how can a solution be deployed? If not, can anyone suggest what might have happened? Peter
0
1197
by: David S, Zuza | last post by:
I wanna use Intellisense in my VS2005 project and ideas? Thanks, Dave
0
9215
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9131
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9064
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
8007
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
6669
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
5981
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();...
0
4484
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.