Re: xxxx.dll.config file for what? (Setting for DLL)



Hello mtczx232@xxxxxxxxx,

I have Class library that serve as COM. I put some setting to the
My.Setting, the compile create file with name: xxxx.dll.config

Now I read that config not work with DLL, I try that, and it's seem
that true, this is not working. this is true? and why the compiler
create this file on bin\debug folder?

try this

ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetExe­cutingAssembly().Location)


---
WBR, Michael Nemtsev [C# MVP]. My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo


.



Relevant Pages

  • Re: General question
    ... You don't change a thing -- just compile your web service project/solution. ... Then ship the dlls in the bin directory, and the asmx files, and any config ... > ship the compiled dll and not my source code. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: shared assemby
    ... k> how do i compile by referring two versions of the same dll. ... team blog: http://devkids.blogspot.com/ ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: .NET to x86
    ... M> Does anybody of you know a way to compile any .NET assembly to x86 ... M> I'd like to get a DLL which has absolutely NO DEPENDENCY to the .NET ... team blog: http://devkids.blogspot.com/ ...
    (microsoft.public.dotnet.framework)
  • Re: .NET 1.1 x .NET 2.0
    ... You can use MSBee to compile your 2.0 project in 1.1 afterwards. ... team blog: http://devkids.blogspot.com/ ...
    (microsoft.public.dotnet.framework)
  • Compilation
    ... I wrote a c# application (dll) and i use it in my project, ... How can i config my c# application that after i first compile it it will not ...
    (microsoft.public.dotnet.languages.csharp)