Hi Claudio,
At the moment you should use
System.IO.Path.GetDirectoryName(this.GetType().Location).
I have not created a ticket for this yet.  It is on out list of things to
address in the next release, 4.2.1.

Smiles,
Jay

On 5/21/07, makka <Claudio Maccari/> <[EMAIL PROTECTED]> wrote:
>
>
> I need to read information from an .INI file using this API
> [DllImport("kernel32")]
> private static extern int GetPrivateProfileString(string
> section,string key,string def, StringBuilder retVal,int size,string
> filePath);
>
> the .INI file is located in thebin folder.
> To get the right bin folder path I use
> Environment.CurrentDirectory
> or
> Assembly.GetExecutingAssembly().Location
>
> IF I run the tests insideVS2005 (with TestDriven.NET) they works fine
> but if I use mbUnit GUI I get a wrong folder.
>
> Can someone help me?
> Many thk.
> Claudio
>
>
> >
>


-- 
Jay Flowers
----------------------------------------------------------------------
http://jayflowers.com
---------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to