How can I share visual studio 2005 code between a class library and compact framework projects?
When adding an existing item to a project you can select the down arrow on the “Add” button and choose “Add Link” – this won’t create a copy of the file and will allow both projects to share the same source. Sara Ford discusses his on her blog: http://blogs.msdn.com/saraford/archive/2005/08/16/452401.aspx Alternatively you could compile the shared code into it’s own assembly and refer to that assembly in both projects. Or if you are really savvy you could create a net module and have a single multi-file assembly – shared and platform specific code.
Related Questions
- How can I use VSTS to build projects developed in Visual Studio .NET 2003 on version 1.1 of the .NET framework?
- How do I share a file between projects without having Visual Studio make a copy of the file in each project?
- Does the library work with applications that depend on the .NET Compact Framework?