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

How to replace token in development environment #48

Open
stetou opened this issue Jul 18, 2024 · 1 comment
Open

How to replace token in development environment #48

stetou opened this issue Jul 18, 2024 · 1 comment

Comments

@stetou
Copy link

stetou commented Jul 18, 2024

We do have TESTS that runs on a database project. The connectionString is in the app.config file
I plan to use your extension to create a token and replace it during deployment with a pipeline.
But how do we replace the token in how local development environment, means while executing the TEST in Visual Studio ?

@qetza
Copy link
Owner

qetza commented Aug 15, 2024

Hi @stetou,

  1. you could have 2 files, one for local development with your connection string and one for deployment with your token but this means make sure the they are synchronized when you add/remove a parameter.
  2. if your app.config is an xml file you could use xdt transforms during your deployment to inject the tokens in the app.config and then do a token replace

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

2 participants