tagged [appsettings]
Optional appsettings.local.json in (new format) visual studio project
Optional appsettings.local.json in (new format) visual studio project My app uses appsettings.json for some settings. If appsettings.local.json is present, that should override appsettings.json for wh...
- Modified
- 19 Jul at 15:21
How to hardcode and read a string array in appSettings.json?
How to hardcode and read a string array in appSettings.json? I use VSCode and NetCore 1.1.1. I need to store several datapaths in my appsetting.json to let my console application know where to look fo...
- Modified
- 17 Mar at 14:4
Using connection string from appsettings.json to startup.cs
Using connection string from appsettings.json to startup.cs Currently in Startup, I have my sql server string looking like this: ``` public void ConfigureServices(IServiceCollection services) { var ...
- Modified
- 16 Aug at 11:5
How to add values through user secrets to an array of objects in C#
How to add values through user secrets to an array of objects in C# So I'm having issues trying to get Visual Studio to add user secrets to a property that is an array. I have a feeling this sort of t...
- Modified
- 14 Sep at 08:6
Reading dll.config (not app.config!) from a plugin module
Reading dll.config (not app.config!) from a plugin module I am writing a C# .NET 2.0 .dll that is a plug in to a [Larger application](https://en.wikipedia.org/wiki/AutoCAD). The visual studio project ...
- Modified
- 28 Sep at 17:1
Restoring Window Size/Position With Multiple Monitors
Restoring Window Size/Position With Multiple Monitors Many posts around about restoring a WinForm position and size. Examples: - [www.stackoverflow.com/questions/92540/save-and-restore-form-position-a...
- Modified
- 2 Jun at 14:15
How to get values from appsettings.json in a console application using .NET Core?
How to get values from appsettings.json in a console application using .NET Core? i'm creating a console application using .NET Core 3.1 and i would like to have an appsettings json to load all enviro...
- Modified
- 2 Dec at 20:50
Configuration.GetSection in Asp.Net Core 2.0 getting all settings
Configuration.GetSection in Asp.Net Core 2.0 getting all settings I am trying to learn the various ways to retrieve configuration info so I can determine the best path for setting up and using configu...
- Modified
- 26 Feb at 16:54
ServiceStack: Custom app settings not used in view
ServiceStack: Custom app settings not used in view I'm getting along quite nicely with ServiceStack, but ran into an issue which I can't currently work round. In my Global.asax.cs Configure() method, ...
- Modified
- 4 Oct at 08:40
AppSettings.json for Integration Test in ASP.NET Core
AppSettings.json for Integration Test in ASP.NET Core I am following this [guide](https://learn.microsoft.com/en-us/aspnet/core/testing/integration-testing). I have a `Startup` in the API project that...
- Modified
- 20 Jun at 09:12
Get ConnectionString from appsettings.json instead of being hardcoded in .NET Core 2.0 App
Get ConnectionString from appsettings.json instead of being hardcoded in .NET Core 2.0 App I have the following class in NET Core2.0 App. ``` // required when local database does not exist or was dele...
- Modified
- 21 Apr at 09:8
How to Refresh a token using IHttpClientFactory
How to Refresh a token using IHttpClientFactory I am using IHttpClientFactory for sending requests and receiving HTTP responses from two external APIs using Net Core 2.2. I am looking for a good strat...
- Modified
- 28 Dec at 12:47
POCO object array inside AppSettings.json in ASP.NET Core
POCO object array inside AppSettings.json in ASP.NET Core This seems like it should be really simple, I have been searching SO and a lot of other places for an answer to this, everything I have found ...
- Modified
- 3 Jan at 18:17
Unable to set my connectionstring in NLog
Unable to set my connectionstring in NLog The NLog.config file does not set the connection string. ```
- Modified
- 22 Sep at 23:1