You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-dev@incubator.apache.org by Jan Stevens Ancajas <ja...@exist.com> on 2008/06/18 11:17:08 UTC
Microsoft Framework dlls
Hi,
I've noticed that referencing Microsoft framework dlls from gac instead
from "%WINDOWS%\Microsoft.NET\Framework\v2.0.50727" directory won't work :
=================================================================
C:\projects>vbc "/out:C:\Documents and
Settings\jan\Desktop\work\jan-vb\target\jan-vb.exe" /target:exe
"/recurse:C:\Documents and
Settings\jan\Desktop\work\jan-vb\target\build-sources\**"
/reference:C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03
f5f7f11d50a3a\System.Web.dll "/reference:C:\Documents and
Settings\jan\.m2\uac\gac_msil\NUnit.Framework\2.2.8.0__NUnit\NUnit.Framework.dll"
Microsoft (R) Visual Basic Compiler version 8.0.50727.1433
for Microsoft (R) .NET Framework version 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
vbc : Fatal error BC2000 : compiler initialization failed unexpectedly:
Project already has a reference to assembly System.Web. A second reference
to
'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll'
cannot be added.
=================================================================
But if I use "System.Web.dll" from
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" it compiles successfully.
Since vbc.exe and the dll are located on the same folder, my guess is it
always picks that dll first resulting to double reference.
So I can't really reference MS framework dll's except when it is located
in the dir where vbc.exe/csc.exe is also located ?
Thanks,
Jan