I have a simple project which uses a single form containing
a Visio 2003 drawing control. Here’s the project file of the lone project
in the solution: <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid =
"{BF47E71C-251E-4D53-997D-3264CFA0B8F4}" > <Build> <Settings ApplicationIcon = "App.ico" AssemblyKeyContainerName = "" AssemblyName = "VisioAntTest" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "WinExe" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "VisioAntTest" RunPostBuildEvent =
"OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow =
"false" ConfigurationOverrideFile = "" DefineConstants =
"DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop =
"false" RemoveIntegerChecks = "false" TreatWarningsAsErrors =
"false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow =
"false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop =
"false" RemoveIntegerChecks = "false" TreatWarningsAsErrors =
"false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath =
"..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.Drawing" AssemblyName =
"System.Drawing" HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll" /> <Reference Name = "System.Windows.Forms" AssemblyName =
"System.Windows.Forms" HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Windows.Forms.dll" /> <Reference Name = "System.XML" AssemblyName = "System.XML" HintPath =
"..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> <Reference Name = "Visio" Guid =
"{00021A98-0000-0000-C000-000000000046}" VersionMajor = "4" VersionMinor = "11" Lcid = "0" WrapperTool = "primary" /> <Reference Name = "VisOcx" Guid =
"{F1A8DFE4-BC61-48BA-AFDA-96DF10247AF0}" VersionMajor = "1" VersionMinor = "0" Lcid = "0" WrapperTool = "primary" /> <Reference Name = "AxVisOcx" Guid =
"{F1A8DFE4-BC61-48BA-AFDA-96DF10247AF0}" VersionMajor = "1" VersionMinor = "0" Lcid = "0" WrapperTool = "aximp" /> </References> </Build> <Files> <Include> <File RelPath = "App.ico" BuildAction = "Content" /> <File RelPath = "AssemblyInfo.cs" BuildAction = "Compile" /> <File RelPath = "Form1.cs" SubType = "Form" BuildAction = "Compile" /> <File RelPath = "Form1.resx" DependentUpon = "Form1.cs" BuildAction =
"EmbeddedResource" /> </Include> </Files> </CSHARP> </VisualStudioProject> When I run nAnt using a target containing a <solution>
tag as: <solution configuration="debug"
solutionfile="VisioAntTest.sln"/> I get the following output: debug: [solution] Starting solution build. BUILD FAILED INTERNAL ERROR System.ApplicationException: Couldn't find reference to type
library 'Visio' (TY PELIB\{00021A98-0000-0000-C000-000000000046}\4.11\0\win32). at NAnt.VSNet.Reference.HandleWrapperImport(XmlElement
elemReference) at NAnt.VSNet.Reference..ctor(Solution solution,
ProjectSettings ps, XmlEleme nt elemReference, SolutionTask solutionTask, String
outputDir) at NAnt.VSNet.Project.Load(Solution sln, String
projectPath) at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln,
SolutionTask slnTask, TempFileCollection tfc, String outputDir, String path) at NAnt.VSNet.Solution.LoadProjects() at NAnt.VSNet.Solution..ctor(String solutionFileName,
ArrayList additionalPro jects, ArrayList referenceProjects, TempFileCollection tfc,
SolutionTask solutio nTask, WebMapCollection webMappings, FileSet
excludesProjects, String outputDir) at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to
[EMAIL PROTECTED] Total time: 0.1 seconds. Any ideas what I’m missing? The Visio control is installed
into the GAC when you install Visio 2003, if that makes a difference. Thanks, Craig |