Re: Packing a C# project.

"Jan Niklas Hasse" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
On Wed, Jun 4, 2008 at 6:15 PM, Neil Munro <[email protected]> wrote:
> Now my problem is integrating this code into my project, I do not know where
> I should place the files/code and simply adding the files results in a 'two
> entry points' error in the C# compiler. I have the binreloc C# project file
> I believe. I just don't know how to integrate it.

I don't know anything about C#, but I put files in my project folder like this:

share/<pojectname>/
-> data files
src/
-> src files
bin/
-> binary file
share/icons
-> icon

When I'm loading a file I do it like this:

load_picture(PREFIX + "share/<projectname>/asd.png") # python

Should look like this in C# (see
http://trac.autopackage.org/browser/binreloc/trunk/mono/Readme.txt ):

Image myImage = new Bitmap(Path.Combine (BinReloc.DataDir, "myImage.png"));

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.