简体   繁体   中英

Event Receiver for both SharePoint 2010 and SharePoint 2013

I want to make an event reciever DLL for both SP2010 and SP2013. currently I have two separate projects one for each as each one is targeting different framework due to the fact that each of them is built using different .NET framework. can I use one project/solution to produce these two different DLLs?

Because of the fact that a) you have to have the target SharePoint version installed on your dev and build machines, and b) it's impossible to install two SharePoint versions on the same machine, then no, you cannot build two DLLs targeting SharePoint 2010 and 2013 at once. Keep going with two separate solutions, just share the source code and if necessary, use conditional compilation to reflect changes between SP2010's and 2013's APIs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM