Hi!
It seems it doesn't get embedded. But I'm not sure how I should add
the .config file inside the nant.build file.
[mkbundle] Reference found
file:///Users/gagnonje/Shufl/ShuflMac/build/Shufl.exe
[...]
[mkbundle] Reference found
file:///Users/gagnonje/Shufl/ShuflMac/lib/Shufl.Client.dll
[mkbundle] Reference found
file:///Users/gagnonje/Shufl/ShuflMac/lib/Shufl.Common.dll
[mkbundle] Reference found
file:///Users/gagnonje/Shufl/ShuflMac/lib/log4net.dll
[...]
[mkbundle] Embedding /Users/gagnonje/Shufl/ShuflMac/build/Shufl.exe
[...]
[mkbundle] Embedding /Users/gagnonje/Shufl/ShuflMac/lib/
Shufl.Client.dll
[mkbundle] Embedding /Users/gagnonje/Shufl/ShuflMac/lib/
Shufl.Common.dll
[mkbundle] Embedding /Users/gagnonje/Shufl/ShuflMac/lib/log4net.dll
Finally what I did
I looked at this variable:
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile
What I got for native was:
/Users/gagnonje/Shufl/ShuflMac/dist/Shufl.app/data-0x3020.config
So I added this line to AwakeFromNib
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile =
"Shufl.exe.config";
And now the path is:
/Users/gagnonje/Shufl/ShuflMac/dist/Shufl.app/Shufl.exe.config
So I manually move my file over there. It's just a weird place because
there shouldn't be anything in that directory except for the Contents
folder.
If I don't build with native, it just loads it from the Resources
folder (same directory as Shufl.exe)
Jérôme
[EMAIL PROTECTED]
On 08-08-01, at 02:50, Laurent Etiemble wrote:
Hello,
I have just looked into the <mkbundle/> task and realized that
assembly config files are treated differently.
When generating the native executable, the assembly config files are
embedded. This is what happened with the System.Drawing assembly
(Excerpt from the NAnt output) :
[mkbundle] Embedding /Library/Frameworks/Mono.
framework/Versions/1.9/lib/mono/gac/System.Drawing/
2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
[mkbundle] Embedding /Library/Frameworks/
Mono.framework/Versions/1.9/lib/mono/gac/System.Drawing/
2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.config
Can you check the output of your NAnt build file to check that your
config file appear in the list ? In this case, you don't need to
copy it elsewhere.
Regards, Laurent Etiemble.
2008/8/1 Jérôme Gagnon-Voyer <[EMAIL PROTECTED]>
When I compile my application with a normal "nant" command, and I
put my application config file (Application.exe.config) into the
Resources folder, it works well.
But if I use "nant native", I can't find a way to load my .config
file. It just doesn't load. What would be the name to use? In what
directory?
Thanks a lot.
Jérôme
[EMAIL PROTECTED]