Brian,
Did your code change from when it used to work ? I've just created a small vb winforms project and I notice that the code it generates has no namespace declaration. Instead it stores the root namespace in the vbproj file and passes it to the compiler using the /rootnamespace flag.
We should probably add a rootnamespace attribute to the vbc task.
The current code looks inside form1.vb for a namespace decl to prefix the resources with.
In the meantime you can specify the prefix manually like this :


<vbc output="WindowsApplication1.exe" target = "exe">
...
  <resources prefix="WindowsApplication1">
        <includes name = "Form1.resx" />
  </resources>
</vbc>


Ian


I just tried nant-20030314 and had the same problem...the build worked but the resources were missing the assembly prefix.
-Brian


________________________________

From: Ian MacLean [mailto:[EMAIL PROTECTED]
Sent: Thu 3/20/2003 9:18 AM
To: Brian Moore (NCD)
Cc: [EMAIL PROTECTED]
Subject: Re: [Nant-users] vbc + resgen bug in 0.8.01?



Brian,
can you try a nightly build ?( http://nant.sourceforge.net/builds/) I
made a fix in this area recently.

Ian

I'm trying to use the "vbc" task to compile a WinForm app.  The build works fine, but the app crashes as 
soon as it tries to access any of its resources.  When I inspect the assembly with ILDASM, I see that the resources 
it bound to are missing the assembly name prefix that VB.NET needs, meaning that the "vbc" task took the 
Form1.resx file in my resources fileset and used "resgen" to create Form1.resources, when it should have 
created myWinFormApp.Form1.resources.
This worked in 0.79...did something break since then?

Thanks,

Brian Moore


-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC. Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users








-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC. Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to