473,287 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

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 3534
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(take care of
the line-break):
http://groups.google.com/group/micro...es.csharp/brow
se_frm/thread/5b2c5dfd6bf24aa2/380ffd947bd72531?lnk=st&q=VS2005+MsBee+%22Jef
frey+Tan%22&rnum=1&hl=zh-CN#380ffd947bd72531

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


""Jeffrey Tan[MSFT]"" wrote:
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?
I was migrating without realising that it will break my "form1.cs" for .NET
1.1

I was getting used to VS2005 and I don't want to install both 2003 and 2005
on my current machine (not so much harddrive space), I also got so used to
the debugging and much better intellisense of 2005. I also have C++ projects
and use #pragma region to structure my code, so switching all the time makes
me annoyed :)

The main work in C# is the engine itself which is compilable in both
environments, I am keeping this source current in both project and use
VS2003/Monodevelop to compile the 1.1 version, but 2005 to debug and work
with it.

Thanks for your help,

doc

Nov 16 '06 #11
"Jeffrey Tan[MSFT]" wrote:
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.

Just out of interest, which version of VS do you use for projects that you
want to run both under .NET 1.1 and .NET 2.0?

Many thanks!

--
Christopher Ireland

"To see what is in front of one's nose needs a constant struggle."
George Orwell
Nov 16 '06 #12
Hi Doc,

Thanks for your clarify!

Yep, all the background appears clear to me now. VS2005 has some production
improvement which will make our development much easier, however, it will
also introduce some unconformable because its changes. Personally, I like
the VS005 debugger support very much.:-) It is very convinient to set
symbol server path and check the symbol loading probing paths in VS2005.

Anyway, if you need further help or discussion, please feel free to post,
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 17 '06 #13

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

Similar topics

0
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...
11
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...
9
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...
3
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...
15
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...
4
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...
6
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...
6
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++...
2
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.