473,698 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change VS2005 C# project to use mscorlib 1.1

I have moved a project from VS2003 to VS2005 and now all references point to
..NET2.0 libs. How can I change this back to 1.1, but still use VS2005?

I need this for compatibility reasons.

thanks
doc

Nov 11 '06 #1
12 3556
Hi,

docschnipp wrote:
I have moved a project from VS2003 to VS2005 and now all references point to
.NET2.0 libs. How can I change this back to 1.1, but still use VS2005?

I need this for compatibility reasons.

thanks
doc
The only way I know to use Visual Studio 2005 and still compile 1.1 code
is to use MsBee
http://www.gotdotnet.com/codegallery...a-9b8d00970371

However, I never tried it myself. Since you can install both Studios on
a same PC, I think it's easier to stick to the adapted development
environment for the .NET version you're using.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Nov 11 '06 #2
Hi Doc,

Yes, Laurent is correct. I have consulted the CLR team before for this
question, they confirmed that there is no native way to target prior
frameworks in VS2005. The only solution to tell VS2005 to use .Net1.1
Framework is using MSBee.

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. You may
refer to my previous support thread below for more information(tak e care of
the line-break):
http://groups.google.com/group/micro...es.csharp/brow
se_frm/thread/5b2c5dfd6bf24aa 2/380ffd947bd7253 1?lnk=st&q=VS20 05+MsBee+%22Jef
frey+Tan%22&rnu m=1&hl=zh-CN#380ffd947bd7 2531

If you wanted to use .Net1.1 for your project, you'd better always use
VS.net2003 to open your project without converting it to VS2005. This will
leave the project working with .Net1.1.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 13 '06 #3
Hi Jeffrey, Laurent,

""Jeffrey Tan[MSFT]"" wrote:
Hi Doc,

Yes, Laurent is correct. I have consulted the CLR team before for this
question, they confirmed that there is no native way to target prior
frameworks in VS2005. The only solution to tell VS2005 to use .Net1.1
Framework is using MSBee.

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.
Using cmd is okay for me, I'd like to use a kind of build server anyway.
I would really miss the VS2005 IDE with all its nice features.
If you wanted to use .Net1.1 for your project, you'd better always use
VS.net2003 to open your project without converting it to VS2005. This will
leave the project working with .Net1.1.
I can set it up and just refer to the same cs files, that should do?

best
doc

Nov 13 '06 #4
Hi Doc,

Thanks for your feedback.
>I can set it up and just refer to the same cs files, that should do?
Sorry, I am not sure I understand you completely. Yes, for your project
that is already converted to VS2005. You may use VS.net2003 to creat a new
sample project and then add all the cs files back to the new project.

However, actually these steps are no need, since while VS2005 converting
your VS.net2003 project, it will create a "Backup" folder to store your old
VS.net2003 solution. So you may use this backup project for using in
VS.net2003.

If I have misunderstood your concern, please feel free to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 13 '06 #5


""Jeffrey Tan[MSFT]"" wrote:
However, actually these steps are no need, since while VS2005 converting
your VS.net2003 project, it will create a "Backup" folder to store your old
VS.net2003 solution. So you may use this backup project for using in
VS.net2003.
Oh, I wasn't aware of that. I thought there is just a conversion log.
I'll try that,

thanks for your posts,

doc

Nov 13 '06 #6
Ok, if you need further help, please feel free to feedback, I will work
with you. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 14 '06 #7
Hi Doc,

How about this issue now? Does the backup project in VS.net2003 work well
for you? If you still have any concern or need any help, please feel free
to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 16 '06 #8
Hi Jeffery,

""Jeffrey Tan[MSFT]"" wrote:
How about this issue now? Does the backup project in VS.net2003 work well
for you? If you still have any concern or need any help, please feel free
to tell me, thanks.
Yes, it worked so far. I tried to use the "new" form1.cs in my old 1.1
project but here I came over another annoying thing: When editing the form in
vs2005, some things are added to the generated code that aren't 1.1
compatible.

I understand that .NET 2.0 is a big improvement but I really wish the
decision would have been to keep more compatibility, but I also understand
that it might have introduced unbearable side effects to Visual Studio as a
product.

Now I know the pitfalls, I can deal with it. It is okay by me now.

Thanks for your help, I'll come up with a new thread if there is still
something left.
doc
Nov 16 '06 #9
Hi Doc,

Thanks for your feedback!

Oh, I am not sure I understand you completely. I assume you are using
VS.net2003 for the backup 1.1 project. Then why will the VS2005 affect this
1.1 project?

Yes, I see your concern over VS2005. The .Net2.0 has tried to keep the
maximize backward compatibility with .Net1.1, if you are curious, please
refer to the link below for more information:
"Testing compatibility for Whidbey/Everett"
http://blogs.msdn.com/danielfe/archi.../03/51921.aspx

However, there are still some breaking changes in .Net2.0:
"Breaking Changes in .NET Framework 2.0"
http://msdn.microsoft.com/netframewo...nges/default.a
spx

VS2005 is a different development environment from VS.net2003; it uses
different project/solution model and file organization model. It leverages
the partial class introduced in .Net2.0 to separate the designer code
totally from the form level business logic code. This file separation has
the advantage of improving development performance, however, it introduced
the imcompatibility with VS.net2003. So, on my daily life, I normally still
use VS.net2003 to open/code/build .Net1.1 projects/solutions and use VS2005
for .Net2.0 new projects. It will works well without affecting each other.
Additionally, the best solution is using "Microsoft Visual Studio Version
Selector" to open the "*.sln" file, the sln file will be openned with
correct VS version it previous uses.

Hope this makes sense to you and thanks for your understanding. If you have
any further concern, please feel free to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 16 '06 #10

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

Similar topics

0
2664
by: Don Stevic | last post by:
I am running VS2005 and using VSTO for Word. I keep getting this error saying that there is no source code available for this location when I try and run this application. I am going to try and reinstall Office 2003 and see if that fixes this, but it is talking about the mscorlib.dll and that isn’t Office.
11
1857
by: Larry Bird | last post by:
I'm attempting to build my first VC++ .net project and I'm unable to get a clean compile. Please view code below: // This is the main project file for VC++ application project // generated using an Application Wizard. #include "stdafx.h" #using <mscorlib.dll>
9
5107
by: MrSpock | last post by:
1. Create a new Windows Application project. 2. Open the project properties and check "Make single instance application". 3. Build. 4. Go to the release folder and run the application. 5. Try to open a second instance of the application. This will cause an unhandled exception and the "Send Error Report" box shows up. Does this happen to anyone else, or is it just me? Debug info: "Unhandled exception at 0x00e149fd in...
3
2289
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the code and debugging output later in this post. I've seen a number of threads with similar problems that I'll address below. The one that's the largest concern is this one, which talks about the same problem trying to use the debugger with SQL...
15
4220
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers mapped to the local devleopment folder. Project compiles to a subfolder .\bin. To deploy, the asmx page and bin subfolder are copied to the production server. So now I upgrade to VS2005. OK, so except for the name, everything is changed. No more...
4
1506
by: WXS | last post by:
In a case you have Project/Assembly A references Project/Assembly B which References Project/Assembly C. Let's say Project A needs be and references it directly. Unknown to A, B needs project C's assembly but it uses C's assembly dynamically (Load Assembly). Even with copy Local set on all references Project A when built will get project B's output but not project C's. This is from what I hear due to an "enhancement" in VS2005, that...
6
2463
by: Ronald S. Cook | last post by:
I have been asked to write a ..NET Windows app using the 1.1 framework. I have both 1.1 and 2.0 on my PC. When I create a new project in Visual Studio 2005, it shows initial namespaces under references (System, System.Data) all of which are version 2.0. How can I tell my project to use only the 1.1 framework? Thanks, Ron
6
9139
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
2
1661
by: Steve Marshall | last post by:
When I installed VS2005 on my own computer I nominated VB as the default language. I have also worked on VS2005 on another computer where C# was the default language. But sometimes I want to use C#. How do I change the IDE to work with C#? I can see a few options in the Tools/Options menu, but the result is not the same as it looked on the other computer I worked on. Surely I don't have to uninstall/reinstall!?
0
8668
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
9152
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
8855
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
7708
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
6515
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
5857
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
4612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2320
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1995
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.