[Mono-bugs] [Bug 659051] New: ProjectReference not included in build: "Are you missing a using directive or an assembly reference?"
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Dec 13 02:15:05 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=659051
https://bugzilla.novell.com/show_bug.cgi?id=659051#c0
Summary: ProjectReference not included in build: "Are you
missing a using directive or an assembly reference?"
Classification: Mono
Product: Mono: Tools
Version: 2.6.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: xbuild
AssignedTo: jankit at novell.com
ReportedBy: cambell at princes.co.nz
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12)
Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
In a project where there is a ProjectReference to another assembly and the
output path is set to the same folder e.g.
<OutputPath>..\output\$(Configuration)\</OutputPath>
The compile cannot find the dependent assembly.
Reproducible: Always
Steps to Reproduce:
Using the xbuild-projectreference.zip
1. xbuild /property:Configuration=Debug "/target:Rebuild" xbuildtest.sln
Actual Results:
Target CoreCompile:
Tool /usr/bin/gmcs execution started with arguments: /noconfig
/debug:full /debug+ /optimize- /out:obj/Debug/TestApp.exe Program.cs
Properties/AssemblyInfo.cs /target:exe /define:DEBUG;TRACE
/reference:/usr/lib/mono/2.0/System.dll
/reference:/usr/lib/mono/2.0/System.Core.dll
/reference:/usr/lib/mono/2.0/System.Xml.Linq.dll
/reference:/usr/lib/mono/2.0/System.Data.DataSetExtensions.dll
/reference:/usr/lib/mono/2.0/System.Data.dll
/reference:/usr/lib/mono/2.0/System.Xml.dll /warn:4
Program.cs(1,7): error CS0246: The type or namespace name `ClientLibrary' could
not be found. Are you missing a using directive or an assembly reference?
Expected Results:
Target CoreCompile:
Tool /usr/bin/gmcs execution started with arguments: /noconfig
/debug:full /debug+ /optimize- /out:obj/Debug/TestApp.exe Program.cs
Properties/AssemblyInfo.cs /target:exe /define:DEBUG;TRACE
/reference:/usr/lib/mono/2.0/System.dll
/reference:/usr/lib/mono/2.0/System.Core.dll
/reference:/usr/lib/mono/2.0/System.Xml.Linq.dll
/reference:/usr/lib/mono/2.0/System.Data.DataSetExtensions.dll
/reference:/usr/lib/mono/2.0/System.Data.dll
/reference:/usr/lib/mono/2.0/System.Xml.dll
/reference:/media/mono/xbuildtest/output/Debug/ClientLibrary//ClientLibrary.dll
/reference:/usr/lib/mono/2.0/mscorlib.dll /warn:4
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list