Questions tagged [appsettings]

appsettings.json (Application Settings) is a settings file. When configured, it can be used by .NET as a configuration source for settings you need at runtime & is automatically used by IIS to load all relevant web server settings. You can have multiple appsettings.json files for various environments in the format of appsettings.Environment.json e.g. appsettings.Production.json. Also used commonly to store logging settings like level & verbosity.

1058 questions
-1
votes
1 answer

Adding Privacy Policy page into app settings on iOS

I want to add my Privacy Policy, Terms of Use etc. pages into the app's settings page, which is located in OS's Settings app. (ex: News app's settings have a policy page in its own settings on iOS 12 Beta) I have 2 questions about this approach. 1.…
Arda Oğul Üçpınar
  • 881
  • 1
  • 14
  • 38
-1
votes
1 answer

Eventhough two strings are same , C# .net core is not identifying as same

I found this issue in asp.net core. I have two strings alpha numeric, all upper cases, and no spaces either in the middle or ends. I am getting one string from appsettings.json and other assigning locally. When I compare those two strings, the…
-1
votes
1 answer

In App settings tableview from Settings bundle

I want to create a TableView which is automatically generated from the Settings.bundle. There used to be a framework InAppSettings but this isn't working with iOS 7 and up. Is there any other code/tutorial for this?
Gilles Lesire
  • 1,237
  • 17
  • 33
-2
votes
2 answers

C# Visual Studio, how to access value from appsetting.json?

I want to access values from appsetting.json file, my problem is also that I have in my project multiple appsetting files, not allowed to rename it, how can I solve that problem? Maybe solve with relative path? want to access from tst ->…
-2
votes
1 answer

Passing IOptions to method in StartUp Configuration

I have set up my project to use the IOptions pattern for reading data from the appSettings file. I have a class that has the following simple constructor to it: public PlayClass(IOptions settings) { _settings = settings; } In my…
N0xus
  • 2,674
  • 12
  • 65
  • 126
-2
votes
1 answer

Get value of key with dynamic where clause in Appsettings

I want to get the value of key with dynamic where clause in appSettings portion in web.config project (ASP.NET and C#) like this: key="test" value="Select * from table where id=Textbox1.Text" How can I achieve this?
helal
  • 1
  • 6
-3
votes
1 answer

How to use appsettings.json in Worker Service in .Net 3.1

When I try to run my windows service, the service is not starting up and I am getting the following error. .NET Core Version: 3.1.11 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileLoadException:…
Ullan
  • 905
  • 4
  • 15
  • 28
-3
votes
1 answer

How do I synchronize app preferences in Swift?

Previously, in an Objective-C application I needed to synchronize my iOS app preferences at startup in the app delegate. This allowed proper preferences at startup. I used the following code (note the link to the original posting): #…
kauai
  • 489
  • 1
  • 6
  • 9
1 2 3
70
71