Skip to content

Using CSD to write the configuration file programmatically #15

Description

@danielleiszen

Has anyone ever tried to save the configuration using the object model generated by this tool?

First problem: calling ConfigurationManager.GetSection as initialization, does not fill the CurrentConfiguration property, hence Save() cannot be called at all. Editing the generated file solves that problem - until next regeneration. However the base.BaseAdd() method does not seem to modify the collection. The interesting thing is base.Clear() clears the collection (in memory) but Save() does not have any effect. No exceptions, no messages, no nothing.

This whole configuration thing is simply a mess I know. And I really appreciate the effort writing a tool for this. And it works for reading, so I am wondering if anyone have tried it to use for writing?

Because I could not find any clues about how it supposed to work.

All the help is appreciated, Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions