Compiling applications using MS Office Interop assemblies - office-interop

I need to build a C#-application that uses the Excel interop assemblies on a dedicated build-computer. Is there any way to do that without installing MS Office on the build-box?

You could use the OpenXMLSDK and use that without having to use the Office binaries on your build box.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c6e744e5-36e9-45f5-8d8c-331df206e0d0&DisplayLang=en

Related

Visual Studio 2010 and Clickonce: old .NET and office prerequisites

I am currently preparing an application in Visual Basic, mostly targeted on systems with .NET 2 installed and office 2003.
Moreover, as the systems are corporate ones, they need administrstion rights, so I had in mind an app that does not need to install anything (or register).
The application uses an external ocx, an axwebbrowser ocx and an excel interop.
The first problem stands because a user cannot run the application as it crashes, seeming because cannot find on his system ahdocvw.dll. is there a way to install for example a redistr package that includes the axwebbrowser system xomponent? At least to append it on the clickonce setup.
Second, in case that the user does not have the required framework, I would like to add on the Clickonce prerequisite box, the option for .NET 2 and office 2003. Right now, VS 2010 has only available .NET 3.5+ and Office Pia 2007.... could you suggest to me on how to proceed?

Deploying applications built in Visual Studio 2010 on older windows platforms

I am trying to deploy an application built in Visual Studio 2010 on older Windows platforms. However, the application is complaining about library files such as MSVR100.dll and MSVCP100.dll. I know I can just install these files using vcredist_x86.exe but that is not possible on a large scale.
I am trying to find these files and package them together with my application but am having quite some trouble in trying to locate these files.
Does someone know where these files are installed?
Thanks.
You should use the merge modules provided by Microsoft to include the runtime libraries in your installer.
http://msdn.microsoft.com/en-us/library/ms235299.aspx

Can VS2010 create native executable file working under Windows 2000?

I plan to develop some native C++ project in VS2010. But it is possible my client will require to support Windows 2000. I know VS2008 creates native executable files compatible with Windows 2000. I would like to migrate to VS2010 but i don't know if it is possible to create native executable file compatible with Windows 2000 in VS2010.
CRT of VS2010 uses kernel32.EncodePointer() function which is missing in Windows 2000.
Read this question.
You can write applications for Windows 2000 SP4 using Visual Studio 2010, so long as you only target Version 2.0 of the .NET framework.
Anything higher than .NET 2.0 is not guaranteed to run on Windows 2000 SP4.
You can see the system requirements for each framework here: http://msdn.microsoft.com/en-us/library/8z6watww.aspx

Visual Studio - Static Library Compatibility (2008, 2010)

I have a product that I ship with static libraries for use by third party integrators. I have seen compatibility problems with other versions of VS so I was wondering if there is any info about library compatibility from 08 to 10 and vice versa?
This is with Standard Windows Libraries (no mfc) and not ATL.
you are using MFC as shared dll or using ATL?
The best information I can find says that there is no library compatibility between 2008 and 2010.

SxS installations and WiX

I'm trying to figure out how to deal with installation and deployment of our project which is a framework. Typically developers would install the framework and then have their .Net applications reference our dlls.
The framework has 2 levels:
A number of native C++ dlls
Some C++\CLI and C# assemblies (all are dlls) that reference the native dlls
I want to provide an installer that puts the .Net assemblies in the GAC and installs the native assemblies in the WinSxS folder. So far I haven't been able to find much info about installing SxS assemblies. I know it can be done using MSI, and I was wondering if anyone knows how to do it with WiX or with some other installer tool.
I believe this cannot be done using the Visual Studio setup projects.
I did a search in the wix mailing pile and "Tutorial: How to install files into WinSxS" came up. Hope it's helpful to you.

Resources