Alex Rivera | Logout

Moving a section of app.config to a separate file

Asked 2009-05-18T11:35:24.397
11

for an easiness of my application I would need to have "runtime" element of app.config in separate file.

Tried something like

<runtime file="runtime.conf" />

and also

<runtime configFile="runtime.conf" />

and in runtime.conf I have:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
            .......
    </assemblyBinding>
</runtime>

But it is ignored ...

Is there a way to find out what is wrong.

Of course when I copy runtime section directly into app.config it works.

I somewhere found that when using configFile="..." included file must lay in a subdirectory. Tried it but it also doesn't work...

Seems including is not working for runtime section.

Edit
Report

1 Answer

2

Hi is your runtime.conf is in your bin folder of the application

answered 2009-05-18T11:51:37.190

Your Answer