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?
Event Receiver for both SharePoint 2010 and SharePoint 2013
288 Views Asked by Mahmoud Fayez At
2
There are 2 best solutions below
2
Ondrej Tucny
On
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.
Related Questions in VISUAL-STUDIO-2010
- How would I be able to use a file in visual studio project on any computer?
- Which is the most advantageous strategy for creating a tweaked Visual Studio Project Template?
- ASP.NET textbox textchange with same text input
- windows phone emulator of visual studio 2010
- Reference to an object magically disaprears? STRANGE
- Implementing a custom header bar for chromiumembedded
- Aldebaran Nao robot simulator without a real robot
- windows form application to work with Oracle without installing Oracle client
- Referenced DLL is not found when running application from VS
- Records won't update in datagridview
- Writing to text file with StreamWriter. File used by another process
- Double templated function overload fails
- Make input to Web Service field optional not required
- How to update label from callback function in code behind?
- display .NET code error instead of HTTP 500
Related Questions in SHAREPOINT
- Upload a document to a SharePoint document library (can be via Rest Api/other) using C# & also retrieve the unique id of the document
- Sharepoint alers email deletion from alerts
- SharePoint/CSS3 Gradients/IE9
- Sharepoint 2007 / Jquery - Replace all text on body or render HTML
- share point excel service
- MS Access Run-time error 3999
- Maintain Sharepoint Server Url with subfolders in document list
- How can I integrate a SharePoint document folder in a separate ASP.NET web site?
- why I don't get list subfolders despite using RecursiveAll option
- Modal Extender Ajax Control Toolkit (ASP 2.0) will not pop-up on server side trigger
- Configure SharePoint 2010 UPS with PowerShell
- How can I get Internet explorer to display this image correctly
- Developing Syntax app SharePoint Online PrismJS
- SharePoint 2013 Custom list field iterator not saving values for MultiLine or person columns
- SharePoint Links with Ampersands
Related Questions in .NET-FRAMEWORK-VERSION
- Visual Studio Assembly force-installs Target Framework
- vb .net application stopped working event name clr20r3
- How can I retarget the framework for a .NET Core application in Visual Studio 2015?
- .NET Framework version causing different behavior between two different machines?
- C# get Property method not found
- 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform' Error
- Can't use Direct Query mode in tabular project In Analysis service
- I have Visual Studio for my Business Intelligence tools, how do I add C# to it?
- How does nuget detect framework version?
- Krypton Contextmenu does not open under .Net FW 4.0
- How to know which .net framework is required for my program?
- Disable the page start only for a particular page
- How to force fire OnModelCreating every DataContext initialized up
- .NET Framework 4.6.2 Release DWORD different from Version REG_SZ
- Advantages of .NET 3.5 vs 2.0, for customers
Related Questions in MULTI-TARGETING
- Event Receiver for both SharePoint 2010 and SharePoint 2013
- What happened to the prism project linker in Visual Studio 2010?
- Current best way to turn an existing web app into a desktop app without reprogramming it?
- VS2010 Native Multi-Targeting
- #IF Silverlight for interfaces
- Implementing a Multi Target Regression Net with Caffe with Non-image data input
- Multi-targeting build with Visual Studio and .NET Framework
- Multi-target rapid prototyping using Microsoft technologies?
- I've built a Windows service as "Any CPU". Why does it run in 32-bit mode on my 64 bit machine?
- Best practice to include console app in NuGet
- Can not install the System.Net.Http Nuget package on a project that supports Multi-Target framework
- In what ways does native multi-targeting affect the output of a build
- Sitecore 6.6 publishing to multiple targets
- Multi targetting net461 and netstandard - netstandard dependencies required even in net461 consumer
- Can C++ Native Multi-Targeting in VS2012 be used to target VS2005?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Use conditional compilation in visual studio to switch between dlls of target framework.
Refer below links for help:
http://www.collaboris.com/blogs/collaboris-blog/mark-jones/2013/01/06/multiple-versions-sharepoint-visual-studio#.UrKQkvQW3O4
Conditional Compilation and Framework Targets
Conditionally changing target framework version
visual studio 2010 compiler conditions based on target framework