I have an outlook addin developed with VS 2008 and for 3.5 framework.Now, I want to upgrade it to latest framework(4.6.1).But when I tried to create an office project in VS 2012 targeting 4.6.1 framework.It only showed me office 2010 template.So, is it not possible to develop a VSTO 2007 addin which targets 4.6.1 framework?I want to stick with VSTO 2007 because it is guaranteed to run on all office versions up to office 2016, as my current addin which targets .net 3.5 does.Whereas if I develop an office 2010 addin, it might crash on office 2007.So, please let me know a way to develop an office addin, which is supported by all office versions and targets .net framework 4.6.1.
1
There are 1 answers
Related Questions in .NET-3.5
- Getting exception for getting instance of Worksheetpart using OpenXML
- Changing .NET runtime at runtime
- Compiling DLL project that written in .NET Framework 3.5 on Visual Studio for Macos giving MSB3086 error
- Detect disabled or unpowered Devices using WIA
- C# how to acquire OAuth2 Token using WebClient
- Find and Load microsoft.net compact framework 3.5
- NET Framework 4.0 breaks Com Interop - vb6 calling c# dll failing when changing target framework from 3.5 to 4.0 or higher
- 0x80070490 Error when installing .Net 3.5 Framework and .net 2.0 within that
- Why is virtual memory usage is so different between .NET Framework and .NET Core
- Which method is more reliable in determining whether I can install .NET 3.5 Windows features?
- null file when posting with WebRequest
- How to change and return value from within a function
- Excel VBA Object Not Released as Expected When Using .NET 3.5 Hashtable
- Excel VBA - Getting Automation Error (430) Using StringBuilder Class from .NET 3.5
- How can I resolve conflicts between System.threading.Tasks and Net35.Threading.Tasks?
Related Questions in VSTO
- menu item in plugin for outlook using c# VSTO
- Inline pictures: Add margin
- Storing the state of a VSTO Outlook plugin in a draft message
- Issues with WebView2 in WPF Usercontrol Embeded in Word VSTO CustomTaskPane
- How can I get the full content of a Word Document?
- VSTO Ms-Word addin -i need to show publisher name in Ms-Word addin section. I aready digtaly sign with digicert
- File Not Found Exception for System.Text.Json (VSTO Addin). Upgrade of RestSharp?
- .Net Excel Interop Multiple Columns Delete with range very slow
- Document.AcceptAllRevisions() in Word Interop did not work
- Word Add-In, C# VSTO, Ribbon XML, what's the signature for the built-in "undo" command's handler?
- Is this programming pattern the solution to Excel COM interop memory leaks?
- why VSTO Outlook Add-in and Office JS add-in conversationId is not same?
- No Such Interface supported while copying worksheets from source Workbook to destination Workbook - Excel VSTO Addin
- Is it possible to add docker support to VSTO Add-in?
- Call VSTO Excel Plugin from Macro Button VBA
Related Questions in OFFICE-2007
- Unattended installation of MS Office 2007 through PowerShell without Volume License
- Access - Enabling macros causes Access to crash
- System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
- Convert PowerPoint Presentation to HTML with Office 2019 or Office 365
- How do I recover Outlook E-mails after uninstalling it?
- Why do I suddenly get an error when trying to send a google search using a MSXML2.XMLHTTP object?
- Word 2007 VBA pause macro for user to manually select cursor position or range with the mouse
- Not possible to pass UDT between modules on different projects
- Word says macros are disabled but settings show they are enabled
- Use OpenXML to create .DOCX containing an image that works with Word 2007
- How to add Office Interops from Office 2007 while using Office 2016
- C#: Get index of Table after specific paragraph
- Persisting individual slides
- Peculiar Access 2007 issue, reports not displaying some fields
- MAPILogonEx(...) returns NULL while calling from MAPILogOn(...)
Related Questions in OFFICE-2016
- Make Shortcuts functional for Excel Add-ins even when the task panel is not active
- Office 2016 installing different build numbers on different PC's from same install file
- How to add tab in ribbon in excel add in using asp.net c#
- How to Use Javascript in the Excel Web Add-In Application to Zoom the Current Excel WorkSheet
- Reply to mail item with a post item using VBA
- Difference between File identifier and File name in File information list of MS Access database engine updates
- Excel VBA failing to access CorelDraw Page property with Late Binding
- Issue in order of event handler execution between office 2016 and office 365 Version
- Office URI - doc opened in read only mode
- Removing entries in excel with the same prefix but different suffix
- How do I allow access to Office applications automation object from standard users in Windows 10?
- force Office 2016 add-in to use Edge instaed of IE
- How to highlight a certain time range in an Excel column of datetimes?
- Add a category for all selected emails using Outlook VBA
- VSTO - How to get the folder selected in the menu?
Related Questions in .NET-4.6.1
- dotnet build produce an error: "MSB3822: Non-string resources require the System.Resources.Extensions assembly at runtime
- Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies
- API hangs while building OData EdmModel, but only when deployed to Azure
- JSON library version mismatch
- SSO with IdentityServer and a legacy ASP.NET Framework 4.6.1 app
- Visual Studio for Mac to run .Net Framework 4.6.1 using Mono - Unable to select Mono version
- MSB3103 Invalid Resx file. Could not load file or assembly
- Why can I write local functions in .NET Framework 4.6.1.?
- Including a Month Calendar in a Windows Form always causes a System.ArgumentException. How to fix?
- How to escape triple quotes in C# string for the use GraphQL queries?
- How to make JSON output key with Pascal Case for a single action method?
- 404 Resource not found on all views
- Issue with building .NET Framework 4.6.1 project
- How to call Oracle stored procedure from C# which returns custom Object Type as OUT parameter
- Azure Open Telemetry - Activity is null few min after app start
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?
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)
You want to develop your addin against .NET Framework 4.6.1 but still target Office 2007 as Office is considered to be always 'downward compatible'. Although it theoretically is the case, in real practice you will run into issues (for instance Excel changed its application model from MDI to SDI over time, resulting in all sorts of visibility issues in addins targeting the older versions).
The same goes for the .NET Framework. Applications targeting a lower framework should work with later frameworks. The other way around can cause real issues.
So the best answer in my opinion is to use the lowest denominator in both Office PIA and .NET framework to support the older Office versions. In theory that means you should stay with Office 2007 PIA's and .NET 3.5 for the best compatibility for all Office versions from 2007 and up. In this case there is however still the risk of mismatches as I explained in the first paragraph.
In general you can however mix and match many versions if you only address the Interfaces available in the oldest Office versions, use late binding in special cases.
The 'official' answer from Microsoft has always been, related to VSTO projects, that only two Office versions are supported with each VSTO version, and that has (again) to do with what already was mentioned before. More information on this can be found here: https://msdn.microsoft.com/en-us/library/bb772080(v=vs.120).aspx