Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get C# VSTO to build in .NET framework 4.5

Tags:

c#

.net-4.5

vsto

All my projects in my solution are set to build with .net framework 4.5.

I'm trying to create a C# VSTO project however cannot assign the .net 4.5 target framework. This is required so I can reference other projects in my VSTO project.

The error states that the project cannot be used against the targeted framework (.net 4.5).

Alternatively, do I have to implement the excel add-in without using a VSTO project?

like image 410
David Avatar asked Jul 26 '12 21:07

David


People also ask

What does %d do in C?

In C programming language, %d and %i are format specifiers as where %d specifies the type of variable as decimal and %i specifies the type as integer. In usage terms, there is no difference in printf() function output while printing a number using %d or %i but using scanf the difference occurs.

What does getc mean in C?

The getc function in C reads the next character from any input stream and returns an integer value. It is a standard function in C and can be used by including the <stdio. h> header file.


1 Answers

There is an updated VSTO 4 redistributable here:

http://www.microsoft.com/en-us/download/details.aspx?id=35594

Notice that in this release the version has been bumped from 10.0.31119.0 to 10.0.40302.0 and it also supports Office 2013.

This release also works for both the x86 and 64 office installs, eliminating the need to choose the correct installer which is nice.

Update It seems the previous download page has been removed. You can try to get the installer from the direct link:

http://download.microsoft.com/download/9/4/9/949B0B7C-6385-4664-8EA8-3F6038172322/vstor_redist.exe

Update 2 Microsoft has released VSTO 10.0.40303.0, a fix for 10.0.40302.0, on 12/21/2012 and it is available from http://www.microsoft.com/en-us/download/details.aspx?id=35594 again.

like image 188
Dan Avatar answered Sep 19 '22 16:09

Dan