473,769 Members | 7,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sharing source code between Vs2003 and Vs2005 IDE

Hi to all

I'm askyng you a suggestion about the best way to share the same source code
between VS2003 and VS2005.
The project I'm developing is a controls and components library, and the
Solution.sln includes a standard WindowsForms application for testing
pourposes.
What I need is an efficient and reliable way to edit and test the DLL
assembly in both environments, since the library will be distributed for
Framework 1.1 and 2.0.

I've tried to set-up two different solutions (one for VS2003 and the other
for VS2005) working on the same source files, but I got some errors. For
example, I think they cannot share the same .\Debug folder. Furthermore, I
believe that the .resx files and Windows.System. Forms are not mutually
compatibles.

Have you experimented/solved the same situation?

Thank you very much.

Carlo

-------------------------------------------
Carlo, MCP (Windows Based Applications)
ca************@ gmail.com

Jan 14 '06 #1
2 1716
Hello Carlo,

The and projects are not compatible, nor some of the generated code in
InitializeCompo nents. Here is what we do: we have VS 2003 and VS 2005
directories dedicated to development. We do not share the physical files
between the solutions, instead they are shared via the source-code control
system. So after we check in changes in one branch or the other, if the file
is shared, the other branch must be updated via get latest version. In the
source code control, most files are shared between the two projects.

All the files which cannot be shared are branched permanently in the source
code control system. However, the windows forms code generated in VS 2003
can be used in VS 2005. This means all your UI work must be done in the VS
2003 directory tree, which works if you have no VS 2005 specific controls.
VS 2003 seems more stable for UI work anyway.

Other work can be done in either version, as long as you use conditional
compilation (#if) to protect the VS 2003 branch from new code for the .net
framework 2.0.

If you have to permanently branch your UI classes, it is best to reduce them
to only contain a UI and move all logic into classes that can be shared
between the two versions.

That is my best advice.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio graphics editor

"Carlo (MCP only)" <ca************ @gmail.com> wrote in message
news:e9******** *****@TK2MSFTNG P14.phx.gbl...
Hi to all

I'm askyng you a suggestion about the best way to share the same source
code between VS2003 and VS2005.
The project I'm developing is a controls and components library, and the
Solution.sln includes a standard WindowsForms application for testing
pourposes.
What I need is an efficient and reliable way to edit and test the DLL
assembly in both environments, since the library will be distributed for
Framework 1.1 and 2.0.

I've tried to set-up two different solutions (one for VS2003 and the other
for VS2005) working on the same source files, but I got some errors. For
example, I think they cannot share the same .\Debug folder. Furthermore, I
believe that the .resx files and Windows.System. Forms are not mutually
compatibles.

Have you experimented/solved the same situation?

Thank you very much.

Carlo

-------------------------------------------
Carlo, MCP (Windows Based Applications)
ca************@ gmail.com

Jan 17 '06 #2
Hello Frank
I've carefully read your suggestions. It is very intelligent.
At the moment, we are developing in 1.1 IDE for a Fw 1.1 version of the
product, and we plan to migrate to a full Fw 2.0 version in the next months.
For this first version, we do not use any of the Fw 2.0 features, so the
code should remain mutually compatible, exept for the auto-generated
fragments.
Some days ago, we tested a IDE 2.0 migration, but when we opened back the
source code in IDE 1.1 we had a lot of problems with *.resx files. So, at
the moment we excluded a bi-directional editing.
However., I will check your solution in a very near future...
Thank you again Frank,
Carlo

-------------------------------------------
Carlo, MCP (Windows Based Applications)
ca************@ gmail.com
"Frank Hileman" <fr******@no.sp amming.prodiges oftware.com> ha scritto nel
messaggio news:ux******** ******@TK2MSFTN GP12.phx.gbl...
Hello Carlo,

The and projects are not compatible, nor some of the generated code in
InitializeCompo nents. Here is what we do: we have VS 2003 and VS 2005
directories dedicated to development. We do not share the physical files
between the solutions, instead they are shared via the source-code control
system. So after we check in changes in one branch or the other, if the
file is shared, the other branch must be updated via get latest version.
In the source code control, most files are shared between the two
projects.

All the files which cannot be shared are branched permanently in the
source code control system. However, the windows forms code generated in
VS 2003 can be used in VS 2005. This means all your UI work must be done
in the VS 2003 directory tree, which works if you have no VS 2005 specific
controls. VS 2003 seems more stable for UI work anyway.

Other work can be done in either version, as long as you use conditional
compilation (#if) to protect the VS 2003 branch from new code for the
.net framework 2.0.

If you have to permanently branch your UI classes, it is best to reduce
them to only contain a UI and move all logic into classes that can be
shared between the two versions.

That is my best advice.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio graphics editor

"Carlo (MCP only)" <ca************ @gmail.com> wrote in message
news:e9******** *****@TK2MSFTNG P14.phx.gbl...
Hi to all

I'm askyng you a suggestion about the best way to share the same source
code between VS2003 and VS2005.
The project I'm developing is a controls and components library, and the
Solution.sln includes a standard WindowsForms application for testing
pourposes.
What I need is an efficient and reliable way to edit and test the DLL
assembly in both environments, since the library will be distributed for
Framework 1.1 and 2.0.

I've tried to set-up two different solutions (one for VS2003 and the
other for VS2005) working on the same source files, but I got some
errors. For example, I think they cannot share the same .\Debug folder.
Furthermore, I believe that the .resx files and Windows.System. Forms are
not mutually compatibles.

Have you experimented/solved the same situation?

Thank you very much.

Carlo

-------------------------------------------
Carlo, MCP (Windows Based Applications)
ca************@ gmail.com



Jan 24 '06 #3

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

Similar topics

4
15942
by: Ray | last post by:
I have an application that is suddenly having some very strange problems. If I step through the following code; With AppSetting conRules.ConnectionString = "Data Source=" & .Svr & ";Initial Catalog=" & ..DB & ";user ID=" & .User & ";password=" & .PWord & ";Persist Security Info=True;Packet Size=4096;" conRules.Open() End With I get the above error message however after clearing the message I can't step through the code but if i press...
4
5158
by: Jody Gelowitz | last post by:
Is this possible? I have compiled an assembly in VS2005 and am trying to add a reference to that assembly from my VS2003 project. The error that I am getting is: A reference to '{path to vs2005 dll}' could not be added. This is not a valid assembly or COM component. ONly assemblies with extension 'dll' and COM components can be referenced. Please make sure that hte file is accessible, and that it is a valid assembly or COM component. ...
2
2778
by: -DG- | last post by:
No reply on my previous query, so I'll post this again. I've done a bit more research in the interim. I'm trying to find an easy way to port code from the older VS2003 format to the format used in VS2005. VS2005 uses partial classes to split off the compiler-generated sections of forms. It keeps the editable files uncluttered. I generated very simple projects with VS2003 and with VS2005 to compare the output. Following are...
3
1799
by: Darrin | last post by:
Hello, I see that VS2005 and the new framework 2.0 is out to the public now. Wondering about some things. When you install the new framework 2.0 can a person still use visual studio 2003 or do you need to use Visual Studio 2005? If you can use the new framework 2.0 with VS2003 are there any benifits?
40
2804
by: GTi | last post by:
Is there any source code documentation tools available for Visual Studio 2005 ? I have created a LIB that must be documented. Must I do it by hand or is it some kind of tools to pre document my source code?
2
5714
by: Tammam | last post by:
Hello All, I had a solution composed of managed/unmanaged C++ , C# projects. It builds with no problem in VS2003 but after converting the solution to VS2005 i get many linking errors such as LNK2020 LNK2028. Below is a little bit of the error report. Error 34 error LNK2020: unresolved token (0A000029) "public: __thiscall std::_Container_base::_Container_base(void)" (??0_Container_base@std@@$$FQAE@XZ) UnmanagedResiprocateController.obj
4
1278
by: Wilfried Mestdagh | last post by:
Hi, I have a project written in C# with VS2005 that I want to share with other developpers. But VS seems to create a lot of files and folders. I'm not sure wich one I can safely left out. As second question is that this project will also be used by VS2003 users. How can I make a VS2005 project compatible with VS2003 ? --
0
1305
by: microdevsolutions | last post by:
Hello Our environment is - pure .NET (ASP.NET, C#.NET, VB.NET) - MCMS (templates, user controls, etc) - Sharepoint (web parts, smart parts, etc) I am wanting to gradually move our development environments and applications from VS2003/.NET1.1 to VS2005/.NET 2.0. So that we can utilise the testing tools I would like to firstly move the development
2
2015
by: frankkirchner | last post by:
I'm new to both VS2005 and C# Web Forms (Though I have tons of experience with VB.Net and VS2003). Creating a Data Source visually in VS2005 is easy as pie - I love it, but how do you or would you ever use this control to create a dataview or dataset or datatable that you could programmatically navigate and read field contents in a C# codebehind? I actually want to set the value of a 'label' to be the first value of the first field of...
0
9589
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
9423
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
10214
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
10048
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...
0
9865
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
8872
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...
0
6674
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
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.