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 do i stop system stack overflow in visual basic?
- How to remove shortcut/alias to a .cpp and .h file from another project in Visual Studio 2019?
- VS2010 Macro/Environment issue causing a HResult: 0x80070057 (E_INVALIDARG) exception
- DevOps 2022 Server not connecting on VS 2012 and VS 2010
- How can i make a prefab instantiate another prefab?
- VS2010 Installer Project Custom Action to run an EXE is failing
- I commit from my Microsoft Visual Studio, however, I am now seeing that i now have two versions of two files
- Is there a way to make AfxMessageBox() take focus from another program?
- in visual studio 2017 was use a model i made but i get the error Read_POLS_Chunk(): Error reading a polygon not 1-3 vertices
- C++ vector subscript out of range : Monotone Interpolation
- c language, When decimal digit of %g in printf equal to 0.5, and length is more than 6, it is not upper ceil, why?
- IloEnv env ; don't work in the dbug and it can access to it
- Create a kml for a Google Earth tree view item through vb-net
- Error in RDLC REPORT in vs2010- An error occurred during local report processing, Object reference not set to an object instance
- This AVD's configuration is missing a kernel file! Visual Studio Code
Related Questions in SHAREPOINT
- Can you programmatically generate a link to open a Word document and navigate to a particular location within it (preferably a comment)?
- How to automatically update a column in Sharepoint when an email item is added
- Execution Stuck at Get-PnPPage if function executed on Button Click
- How do I replace CKEditor text inside a rte-webpart?
- Difficulty Accessing SharePoint Files in Docker Container for R Script Execution
- Access denied when using Get-PnPSubWeb
- Can sharepoint calendars have images and a legend with it?
- SharePoint search field
- .NET open xps file from Sharepoint location using XpsDocument class
- Sharepoint 2016 timer service cannot start after applying windows OS patch KB5035855
- PowerShell script to output what SharePoint Online sites have privacy set to public and private
- Limit decimals from import calculated value in power BI
- Connect Sharepoint with c# via PnPCore
- Share excel file on Sharepoint
- Trouble extracting xml property from ajax response
Related Questions in .NET-FRAMEWORK-VERSION
- Migration of UseOAuthAuthorizationServer from .Net Framework to .Net8
- Understanding Assembly Layers in .NET Framework vs .NET Core
- SHA 256 VBA for Excel without .netframework
- Why does the value of DateTimePicker change after minimizing the form?
- Error in project: Exception thrown: 'System.Net.WebException' in System.dll
- NuGet\Install-Package in only downloading package not creating package.config for projects inside the solution
- Unable to Publish Code Coverage Report into Sonar Cloud. Use of OpenCover.Console.exe and Vstest.console.exe
- How can i get over the error "could not load file or assembly System.ServiceModel" anytime i'm debugging an ASP.NET application?
- Error deploying .NET Framework 4.8 project on Windows Server 2019: "targetFramework" attribute issue
- How can I concurrently auto update file location of my excel worksheet
- Wrong version loaded of "System.Servicemodel" when using a service reference
- Illegal characters in path on http request
- Visual Studio 2022 debugging web application sits forever
- .NET Framework 4.5.2-based Console application compatibility problems with .NET 6-based Class Library project
- System.Security.AccessControl.PrivilegeNotHeldException
Related Questions in MULTI-TARGETING
- How to create a .NET Core library that is Multi-Targeting but targets different dll's per framework?
- Multi targetting net461 and netstandard - netstandard dependencies required even in net461 consumer
- How do I call my script before all the builds for only once in a multi-targeting project
- How to Multi target a library project with WPF controls
- Solution builds in Visual Studio but Jenkins throws an assets exception
- Is targeting a project for .NET Framework 4.6 (or net46) actually 4.6.0?
- Can not install the System.Net.Http Nuget package on a project that supports Multi-Target framework
- Best practice to include console app in NuGet
- Sitecore 6.6 publishing to multiple targets
- DFP multi tags ordering
- Implementing a Multi Target Regression Net with Caffe with Non-image data input
- Using v90 (VS2008) Platform Toolset in Visual Studio 2015
- Multi-targeting build with Visual Studio and .NET Framework
- Haxe: Import from neko, cpp and java sys trees
- Event Receiver for both SharePoint 2010 and SharePoint 2013
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 # Hahtags
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