How I can use the value of this variable in my tests when are executed in the pipeline?
I am trying to get the values with the next configuration but with no success
Anyone with an example? or something to try?
var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: true)
.AddUserSecrets<ExportReportsRunnerTest>()
.AddEnvironmentVariables();
Configuration.GetSection("DevOpsSqlConnectionString").Value
Configuration.GetValue<string>("DevOpsSqlConnectionString")
Thanks in advance to everybody!