[mono-vb] VB Compiler Embed Resource file

Rolf Kvinge Rolf.Kvinge at microsoft.com
Tue Jun 13 13:04:39 UTC 2017


Hi,

vbnc is old now, and is not being maintained anymore.

I recommend using either vbc on Windows, or vbc from NET Core instead.

Best regards,
Rolf

From: Mono-vb <mono-vb-bounces at lists.dot.net> on behalf of snoop dog <snoop1963 at live.com.au>
Date: Monday, 5 June 2017 at 01:26
To: "mono-vb at lists.dot.net" <mono-vb at lists.dot.net>
Subject: [mono-vb] VB Compiler Embed Resource file


I am trying to compile a vb program with an embedded Glade XML file as a resource using the mono vb compiler, version 0.0.0.5943, using this command:



vbnc  -resource:TestForm1.glade TestForm1.vb



The program compiles and runs without any error however the TestForm1.glade file is not being embedded in the compiled exe



When I do same with the c# compiler mcs  -resource:TestForm1.glade TestForm1.cs the glade file is embedded in the compiled output exe



Is this a bug in the vb compiler i.e it fails to embed resource files?



I check to see whether the file is being embedded simply by opening the exe in Notepad++, with the c# compiler the xml is always there but has never worked with mono vb compiler.



If this is a bug is there any other way to embed a resource file in the exe?



Paul
























-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-vb/attachments/20170613/221c0c1b/attachment.html>


More information about the Mono-vb mailing list