Re: Packing a C# project.
"Neil Munro" <[email protected]> Thu, 12 Jun 2008 00:03:25 +0100
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
Ok as far as I can tell it's working now, took me a while with "//"
appearing where sometimes a prefixed forward slash was added sometimes it
was not, depending on what functions were called, but it's all tidy now. So
next problem.
help.txt this should be in $PREFIX/share, which occurs at install time, ok I
get it, but how do I implement this for autopackage?
This is what I have so far:
string sFileName = "";
if ( File.Exists( "../share/help.txt" ) )
{
sFileName = "../share/help.txt";
}
else
{
sFileName = Path.Combine( BinReloc.DataDir, "help.txt"
);
}
FileStream HelpFile = new FileStream( sFileName,
FileMode.Open, FileAccess.Read );
This is correct as we discussed for data files, do i need to change anything
or is this actually ok?
2008/6/11 Isak Savo <[email protected]>:
> On Wed, Jun 11, 2008 at 10:04 PM, Isak Savo <[email protected]> wrote:
> > On Wed, Jun 11, 2008 at 9:27 PM, Neil Munro <[email protected]> wrote:
> >> What version of Mono provides the GetSpecialFolder function/attribute?
>
> I don't know when Mono introduced it, but it's been in .NET since 1.0
> (i.e. forever since 1.0 is the first .net version)
>
> If all else fails, use GetEnvironmentVariable("HOME")
> http://msdn.microsoft.com/en-us/library/77zkk0b6(VS.80).aspx<http://msdn.microsoft.com/en-us/library/77zkk0b6%28VS.80%29.aspx>
>
> -Isak
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
> For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
>
>