Solved

Compiling to lower Framework version 1.1

Posted on 2006-06-28
4
476 Views
Last Modified: 2011-10-03
Hi,

I've got Visual Studio 2005 installed, which comes with Framework 2.0.
I've written a c# project specifically for Framework Version 1.1 but it automatically compiles it for version 2.0 and subsequently doesnt run on 1.1 stations... I've tried uninstalling Framework 2 and installing 1.1 instead, but the project then wont open.  I -could- do the project from scratch, but that's time consuming!
Is there a simple way I can 'set' the the project to compile to 1.1, rather than 2.0?

Thanks.

- M.
0
Comment
Question by:nikez2k4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 125 total points
ID: 16999944
It is impossible to compile fot 1.1 Framework using Visual Studio 2005. You need 2003 version for this.
You can keep both versions on the same computer if necessary.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17005537
Is there a reason that you don't want to put the 2.0 framework on those computers?

Bob
0
 
LVL 8

Accepted Solution

by:
Maher-Jendasi earned 125 total points
ID: 17008838
Hi, to answer your question:

1- You can install Visual Studio 6.0, Visual Studio .NET 2002 (.NET Framework 1.0), Visual Studio .NET 2003 (.NET 1.1) and Visual Studio 2005 (.NET 2.0), all on the same PC. This is could happen because of a feature in .NET Framework called "side-by-side execution". For more information about this feature:
   * http://www.asp.net/faq/SideBySide.aspx
   * http://msdn.microsoft.com/netframework/technologyinfo/versioncomparison/default.aspx
   * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/sidexsidenet.asp

2- Each VS.NET version is designed to compile code targeting the same version as the .NET Framework that installed with it,` for example VS.NET 2002 installs .NET 1.0, so the compiled code of VS.NET 2002, will generate assemblies that is compatiable with .NET 1.0. Again because of the side-by-side execution feature, application compiled with .NET 1.0, can be run on .NET 1.1 or 2.0 or both, and also application written for later version of .NET Framework can also be run under older .NET Framework(s) (Of course as long as you do not use classes, function, etc that specific to the newer .net framework), for example application compiled with .net 2, maybe run on .net 1.1, of course you can manage which .NET framework your application can be used with using confoguration files, as in this article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/sidexsidenet.asp
0
 
LVL 1

Author Comment

by:nikez2k4
ID: 17041838
Thx for your replies.

There are lots of reasons to not upgrade to 2.0 - The main onces are... firstly, we dont -need- to, as all the software we use requires 1.1, which is one of the reasons I developed the application with 1.1 in mind, secondly with over 800 workstations to manage, some of them remote, the roll out would take some time, where as at the moment I *know* 1.1 is on there, and working.   Thirdly - never in a hurry to roll out Microsoft updates with the masses.

Think I'll split the points between AlexFM And Maher-Jendasi, if no-one has any objections? :-)

Thanks again.

- M
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question