Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET integration #131

Closed
gbro3n opened this issue Dec 19, 2022 · 6 comments
Closed

.NET integration #131

gbro3n opened this issue Dec 19, 2022 · 6 comments

Comments

@gbro3n
Copy link

gbro3n commented Dec 19, 2022

Feature description

An integration with .NET's configuration tooling would be great to see.

Why would it be useful?

There's a lot of .NET projects out there that could benefit from this.

@vmatsiiako
Copy link
Contributor

Infisical mostly likely supports .NET in its current form. We just don't have the docs for it yet. We need to test it out, and I will get back to you.

@jon4hz
Copy link
Contributor

jon4hz commented Dec 28, 2022

That's definitely possible and .NETs ConfigurationBuilder makes it fairly easy.

public IConfigurationRoot ConfigureConfiguration()
{
    var builder = new ConfigurationBuilder()
        .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
        .AddEnvironmentVariables();
    return builder.Build();
}

@vmatsiiako
Copy link
Contributor

Oh interesting! This makes sense - I haven't found the time to test it out and write the docs yet (not very familiar with .NET) :(

@jon4hz If you're interested in helping with this, that would be so amazing 🙏 No pressure though!

@jon4hz
Copy link
Contributor

jon4hz commented Dec 28, 2022

Well I'm no expert on .NET either, I just recently started learning c#. :)
But yeah sure, what would you need for the docs? The snipped I posted should be more or less everything that's needed to parse the environment variables.

@vmatsiiako
Copy link
Contributor

Kinda like this. First step is going to be the same, and then you just need to run the start command and see if environment variables are inserted :)

The frameworks are here.

@vmatsiiako
Copy link
Contributor

@gbro3n @gerwim here are the instructions for how to use Infisical with .NET: https://infisical.com/docs/integrations/frameworks/dotnet

Let us know if you have any questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants