Hi everyone,
I'm trying to use nant to automate a VB.NET project. Let me first give some background on the project. It was developed on my local machine where I have office 2003 installed. I need to run it from a server where office is not installed.
When I try to run nant I get the following error: "Couldn't find Primary Interop Assembly 'Microsoft.office.core'." which I assume is due to not having office installed on the server. I tried copying the office file to the server directory but it still gave me the error.
Does anyone know how I might get this build to work?
Thanks for your help!!
-Gabe
Here is my build file:
Here is the reference/import data from my visual basic project file.
I'm trying to use nant to automate a VB.NET project. Let me first give some background on the project. It was developed on my local machine where I have office 2003 installed. I need to run it from a server where office is not installed.
When I try to run nant I get the following error: "Couldn't find Primary Interop Assembly 'Microsoft.office.core'." which I assume is due to not having office installed on the server. I tried copying the office file to the server directory but it still gave me the error.
Does anyone know how I might get this build to work?
Thanks for your help!!
-Gabe
Here is my build file:
Code:
<?xml version="1.0"?>
<project name="SLXLibrary" default="build">
<target name="build" description="Compile source code">
<solution configuration="release" solutionfile="SLXLibrary.sln" />
</target>
</project>
Here is the reference/import data from my visual basic project file.
Code:
<References>
<Reference
Name = "System"
AssemblyName = "System"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
/>
<Reference
Name = "System.XML"
AssemblyName = "System.Xml"
/>
<Reference
Name = "System.Web"
AssemblyName = "System.Web"
HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll"
/>
<Reference
Name = "Microsoft.Office.Core"
Guid = "{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}"
VersionMajor = "2"
VersionMinor = "3"
Lcid = "0"
WrapperTool = "primary"
Private = "True"
/>
<Reference
Name = "VBIDE"
Guid = "{0002E157-0000-0000-C000-000000000046}"
VersionMajor = "5"
VersionMinor = "3"
Lcid = "0"
WrapperTool = "primary"
/>
<Reference
Name = "Excel"
Guid = "{00020813-0000-0000-C000-000000000046}"
VersionMajor = "1"
VersionMinor = "5"
Lcid = "0"
WrapperTool = "primary"
Private = "True"
/>
</References>
<Imports>
<Import Namespace = "Microsoft.VisualBasic" />
<Import Namespace = "System" />
<Import Namespace = "System.Collections" />
<Import Namespace = "System.Data" />
<Import Namespace = "System.Diagnostics" />
</Imports>