Tuesday, February 22, 2011

ProjectLinker extension for Visual Studio

Recently we were developing an application in silverlight which will consume WCF for doing some business operations and data access. WCF was designed using MessageContracts and DataContracts concept. Each operation will translate to input and output DataContracts. This WCF is not an tranditional one in which when you add reference you will get all the data contracts. So we will have to share all these DataContracts to Silverlight app. There arised the problem, since the Desktop/Web class library project cannot shared in silverlight app. So we thought of creating a separate silverlight class library replicating all the classes. This will be a serious maintenance nightmare!!!!
That time, I came across the concept of ProjectLinker synchronization tool. This is specially designed to address such scenarios. Basically Multi-targeting framework.
Bingo!!! Problem solved. Using this we can share the same class files between different platforms nothing but between the Desktop/Web class library and Silverlight class library.

You can find more about how to use this tool in the below link;
http://msdn.microsoft.com/en-us/library/ff921108(v=pandp.20).aspx

Download Project Linker for VS2008 here;
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=387c7a59-b217-4318-ad1b-cbc2ea453f40&displaylang=en

Download Project Linker for VS2010 here;
http://visualstudiogallery.msdn.microsoft.com/5e730577-d11c-4f2e-8e2b-cbb87f76c044/

No comments:

Post a Comment