I have one project that is giving me an error but only when I build it
outside of VS 2005 IDE:
C:\Code\GUI\Form1.vb(731) : error BC31094: Implementing class
'DSO.ServerClass' for interface 'DSO.Server' cannot be found.
This is the build commandline that is used by the IDE but it fails when
I run it from the directory where the vbproj file is located:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Vbc. exe /noconfig
/baseaddress:11000000
/imports:Microsoft.VisualBasic,System,System.Collec tions,System.Data,System.Diagnostics,System.Drawin g,System.Windows.Forms
/nowarn:42105,42106,42107 /optioncompare:Binary /optionexplicit+
/optionstrict+ /removeintchecks- /rootnamespace:GUI
/doc:obj\Release\GUI.xml
/define:"CONFIG=\"Release\",TRACE=-1,_MyType=\"WindowsFormsWithCustomSubMain\",PLATFO RM=\"AnyCPU\""
/reference:C:\CODE\BIN\Package.dll,C:\CODE\bin\Core .dll,C:\CODE\bin\CoreUI.dll,C:\CODE\bin\Data.dll,. .\..\PIA\Microsoft\DSO.dll,..\..\PIA\Microsoft\SQL DMO.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50 727\System.Data.dll,C:\WINDOWS\Microsoft.NET\Frame work\v2.0.50727\System.dll,C:\WINDOWS\Microsoft.NE T\Framework\v2.0.50727\System.Drawing.dll,C:\WINDO WS\Microsoft.NET\Framework\v2.0.50727\System.Windo ws.Forms.dll,C:\WINDOWS\Microsoft.NET\Framework\v2 .0.50727\System.Xml.dll
/main:GUI.Form1 /debug- /optimize+ /out:obj\Release\GUI.exe
/resource:obj\Release\GUI.Form1.resources /target:winexe /warnaserror-
/win32icon:"program_icon.ico" AssemblyInfo.vb cDay.vb Form1.vb
/warnaserror+:41999,42016,42017,42018,42019,42020,4 2021,42022,42032,42036
The DSO.dll does exist in the relative path location specified
(..\..\PIA\Microsoft\DSO.dll). All of the references exist in the
locations specified.
I have another project that use the same reference and it has no
problems building outside of the IDE.
When using MSBUILD, I have tried this:
msbuild gui.vbproj /t:Rebuild /p:Configuration=Release
and it creates the same vbc commandline as above so I assume my msbuild
syntax is correct.
Any ideas? Anyone?
Thanks.
Michael