Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have been using VS2010 on two pcs (One is 32bit and other in 64bit), we like to use same project at a time but on two different pcs. So we look to have two different solutions (sln) sharing same resources. Can you experts have any idea for the same. We just like to use same resources (Classes, Forms etc).

Thanks in advance.

Jaidev Khatri

[OP's answer moved to here]
Thanks SAKryukov, Amir Mahfoozi, Rahul Dhoble,

May be I have not asked my question in a right manner but I really appreciate your replies, will sure use your resources.

To be more specific, Myself on x86 processor, I prepare Business Logics with classes and another one at 64bit machine use these classes in design. Sometimes these classes have some bugs and errors which I have to clear it instantly to eliminate the error.

This is what I was looking for, no matter to build in two processors.

Moreover, If I don't use team foundation server then is there any another too.

Thanks again for your replies.

Jaidev Khatri
Posted
Updated 19-Jan-12 4:20am
v2
Comments
Sergey Alexandrovich Kryukov 19-Jan-12 3:46am    
Classes and Forms are not resources how they are understood in programming. What do you mean?
--SA
JayKhatri 19-Jan-12 9:55am    
Hi SAKryukov,

I was just using general terminology. I think I misguided you experts with my confusing question.
Thanks
Jaidev

The way that this is usually handled is that you create a common library and you check it into a version control system (SVN, Mercurial, Git, whatever you wish to use). This library can be as simple as just a directory (or set of directories) containing all your common code or even a set of dlls containing compiled versions of your common code. Each one of those two options has positives and negatives, I won't get into that right now (for lack of time).

By keeping your libraries under version control, all developers can simply keep synchronized by updating their local copies of the repositories (a simple/fast operation using modern version control software).
 
Share this answer
 
For a revision control system and the choice, please see this CodeProject discussion: Revision control systems, which to choose from?[^].

See my advice in my answer in this discussion.

A lot more interesting and important detail in my past answers:
Needs some words of wisedom to set up and/or use a server[^],
Make an unclickable form[^],
How can i structured to arrange source code when i create a new solution[^].

—SA
 
Share this answer
 
Identical resources in 64-bit and 32-bit target instruction-set platforms? Yes, very unpleasant situation. Main problem here is: you can never mix different instruction-set architectures in the same process. It can even compile bit will crash during run-time.

First of all, I don' understand the situation when you need them at the same time.

So first, let me explain it on a more usual case. You task is to identify if you can work in compliance with it. Let's see. Why do we need different target platform. Normally, we can have just one project. Suppose it is developed for the target "Any CPU", with all assemblies of the application using this target. In this case, you simply deploy the product to the system with any of the architectures (currently .NET supports three of them: x86, I64 (Itanium) and x86-64). Even though they are incompatible, the "Any CPU" assemblies will run on any platform, and the run-time instruction set will be defined by the host system. This is because the assemblies are JIT-compiled. In this schema, the problem of resources will never appear. It will work this way if all your code is pure .NET, without unmanaged components.

I hope the above schema can work for you, because below it goes really advanced stuff. If you are still interested, keep reading.

There are situations where you have some unmanaged component which defines the instruction-set architecture of the whole application. This is the opposite situation: you can use only one instruction-set architecture. Again, the problem of different resource will not appear.

Finally, there are some more difficult situations when you need to change the structure of the projects depending on the target instruction-set architecture. For this purpose, you can create a sophisticated project or master project file using the features of MSBuild and common project format.

You can even automate switching the instruction-set architecture during build. You don't need two or more different solution, this is not supportable, please see: http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[^].

Instead, you need only one solution which dynamically changes the target instruction-set architecture. To achieve that, you will need to learn project development for MSBuild. Please start here:
http://msdn.microsoft.com/en-us/library/dd637714.aspx[^].

With this approach, you can have only one solution used for development and testing. The build will be automatic. You will need to have a master project written manually in the format used by MSBuild. It will take your development solution(s) or separate projects on input and will modify their properties (such as instruction-set architecture, optional modules, etc.) and will build two or more compilations of the solution and put them in different directories per target platform. It will take considerable learning and debugging of the development process. I've done this successfully in a reasonably short period of time and got a very stable one-click-builds-all process.

See also:
http://en.wikipedia.org/wiki/Instruction_set[^].

—SA
 
Share this answer
 
You can do this through Source version. try to learn more about
SVN

search this in google "Tortoise SVN"
 
Share this answer
 
Comments
Albert Holguin 19-Jan-12 15:51pm    
tortoise is just a client... he needs to learn about the capabilities of different version control systems and choose what's most appropriate for him, not search specific version control system/ client.
Probably you need a version control system. There are free ones and commercial ones :

This article reviews open source ones :
http://www.smashingmagazine.com/2008/09/18/the-top-7-open-source-version-control-systems/[^]

To get familiar with the terms which are used in VCSs :
http://abdullin.com/wiki/version-control-system-vcs.html[^]

And their comparison (see the User Interface section for VS supporters) :
http://en.wikipedia.org/wiki/Comparison_of_revision_control_software[^]



And we use this one :
http://en.wikipedia.org/wiki/Team_Foundation_Server[^]

And this free one :
http://en.wikipedia.org/wiki/Apache_Subversion[^]

Hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900