[Mono-bugs] [Bug 671700] New: XBuild places resources in wrong namespace if the file is linked instead of included
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Feb 14 08:07:19 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=671700
https://bugzilla.novell.com/show_bug.cgi?id=671700#c0
Summary: XBuild places resources in wrong namespace if the file
is linked instead of included
Classification: Mono
Product: Mono: Tools
Version: 2.8.x
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: xbuild
AssignedTo: jankit at novell.com
ReportedBy: cygon at nuclex.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3)
Gecko/20100405 Namoroka/3.6.3
When .csprojs contain files marked as "Embedded Resource", xbuild will put the
resources in the wrong namespace if said file is also a link.
For example, take this project item:
<EmbeddedResource Include="..\Castle\DynamicProxy\DynProxy.snk">
<Link>Castle\DynamicProxy\DynProxy.snk</Link>
</EmbeddedResource>
The target namespace should be <root
namespace>.Castle.DynamicProxy.DynProxy.snk
XBuild instead puts the resource in <root namespace>.DynProxy.snk.
If the file is included in the project (instead of linked) the resource's
namespace is correct.
Reproducible: Always
Steps to Reproduce:
1. Create a new C# project in Visual Studio (I used VC# 2010 Express)
2. Create one or more random directories (eg. "TestDir") in the project
3. Add a random file that is _not_inside_the_project_directory_ to the
project as a link
(in Visual Studio: right-click, add existing item, browse to file,
click on the arrow besides 'Add' and choose 'Add As Link')
4. Configure the linked file as 'Embedded Resource' in the properties dialog
Actual Results:
When the project is compiled by xbuild, the compiled assembly contains a
resource like this:
TestProject.RandomFile.dat
Expected Results:
The same result as when I compile the project via MSBuild, where the compiled
assembly contains a resource like this:
TestProject.TestDir.RandomFile.dat
--
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