Sharing code between projects
#1
Posted 20 March 2012 - 06:47 AM
#2
Posted 20 March 2012 - 10:49 AM
So some of your source code is identical, in both types of projects, so you only want to maintain one copy of it. Is that what you want?
You definitely can't share the compiled code, but I don't think there is any reason that you can't share the source code, if you can get it to compile in both types of projects. You might have to use a lot of ifdefs or whatever C# has for conditional compilation.
I think you would be better off having two solutions and cutting and pasting any similar code.
That way you can have two instances of visual studio and can debug both at the same time.
Edited by Magpie, 20 March 2012 - 11:07 AM.
#3
Posted 20 March 2012 - 04:08 PM
In "Add Existing Item..." dialog you can click the small drop-down arrow in the "Add" button and select "Add as Link".... I can't add the files to the projects directly as Visual Studio will make copies of them.
- unexpectedly likes this
#4
Posted 20 March 2012 - 06:20 PM
And use #if where you have using statements which are different between the platforms.In "Add Existing Item..." dialog you can click the small drop-down arrow in the "Add" button and select "Add as Link".
Regards,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#5
Posted 07 July 2012 - 12:20 AM
Honestly, I am new to this. But yes what I did was I did the same with what you suggested here CW2. Also, I have been resourcing some resources about it. I also found this tutorial http://stackoverflow...n-visual-studio and also my friend is a wordpress developer so I also asked him for help.In "Add Existing Item..." dialog you can click the small drop-down arrow in the "Add" button and select "Add as Link".
#6
Posted 07 July 2012 - 08:28 PM
#7
Posted 11 August 2012 - 09:21 AM
Project Linker is a little Visual Studio Extension which helps to link source files between projects.
Download: Project Linker
Documentation: Project Linker: Synchronization Tool
- unexpectedly likes this
#8
Posted 18 August 2012 - 12:56 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users