tagged [settings]

Properties.Settings.Default.Save(); -> Where is that file

Properties.Settings.Default.Save(); -> Where is that file I have app that uses Settings. To save settings I use: To read tham I use: In my folder with application I have only exe file. No config files...

26 Apr at 10:54

C#: Can an Enum Value be saved as a Setting?

C#: Can an Enum Value be saved as a Setting? Can an `enum` value be saved as a setting, using the `Properties.Settings.Default["MySetting"]` syntax of C#? I tried to create a setting in my project's p...

25 Aug at 22:5

how to change .NET user settings location

how to change .NET user settings location By default settings are stored at: `C:\Documents and Settings\\Local Settings\Application Data\` How can I change this path to application directory. I also d...

25 Mar at 19:41

How to remove dotted line from text editor in visual studio?

How to remove dotted line from text editor in visual studio? Unfortunately I hit some shortcut from Visual Studio text editor.After that there will be a dotted line in my text editor along with every ...

How to configure "Shorten command line" method for whole project in IntelliJ

How to configure "Shorten command line" method for whole project in IntelliJ When I run tests I get the error "Command line is too long". It works if I set the "Shorten command line" method in the Run...

27 Nov at 04:3

Where is c# 7.2 in visual studio project settings?

Where is c# 7.2 in visual studio project settings? Ive seen people using and discussing c# 7.2 features but I cant seem to find it. Ive got latest updates and only up to version `7.1` is listed. why a...

Why are my application settings not getting persisted?

Why are my application settings not getting persisted? So I have some settings that are of the scope, but for some reason, they are not being saved to the .exe.config file. I do the following: Yet I l...

22 May at 09:24

How do I access the Properties namespace from within a console app?

How do I access the Properties namespace from within a console app? I am trying to store/retrieve a value that is stored in the Application Settings. From within my console application I can not seem ...

Save Settings in a .NET Winforms Application

Save Settings in a .NET Winforms Application > [What is the best way to store user settings for a .NET application?](https://stackoverflow.com/questions/26369/what-is-the-best-way-to-store-user-setti...

23 May at 12:10

common Settings.settings file for entire solution

common Settings.settings file for entire solution Is there a way to have common Properties file for all the projects of the solution? I have a console application and bunch of other class librarry fil...

26 Apr at 15:56

How to use settings in Visual C#

How to use settings in Visual C# I have been a VB.net developer for a long time and changed recently to C#. When I was using VB.net, to call user settings, I just need to create a new setting using th...

16 Mar at 14:30

How to save byte[] in c# application settings

How to save byte[] in c# application settings I am trying to save a byte array (byte[]) in c# application settings that is returned by [Object List View](http://objectlistview.sourceforge.net/cs/index...

Custom enum as application setting type in C#?

Custom enum as application setting type in C#? If have an enum in C#: For my application I use the application settings, where I can select of which Type a setting should be. I thought when I select ,...

13 Aug at 08:32

Have different initial_data fixtures for different stages (testing v. production)

Have different initial_data fixtures for different stages (testing v. production) I have an `initial_data` fixture that I want to load everytime for production. I already have different settings file ...

Reloading configuration without restarting application using ConfigurationManager.RefreshSection

Reloading configuration without restarting application using ConfigurationManager.RefreshSection Has anyone got this working in a web application? No matter what I do it seems that my appSettings sect...

7 Oct at 16:26

Difference between 'SpecialFolder.LocalApplicationData' and 'SpecialFolder.ApplicationData'?

Difference between 'SpecialFolder.LocalApplicationData' and 'SpecialFolder.ApplicationData'? On my system, `%AppData%` leads to `ApplicationData` which is `C:\Users\\AppData\Roaming` But there is also...

Azure Functions how to add application settings to bindings

Azure Functions how to add application settings to bindings I'm trying to add some custom binding using my app settings for my Azure Function. I need to receive only string a string from my settings. ...

Different application settings depending on configuration mode

Different application settings depending on configuration mode Is anyone aware of a way that I can set application (or user) level settings in a .Net application that are conditional on the applicatio...

22 Jun at 04:39

How can I sync my Resharper settings between computers?

How can I sync my Resharper settings between computers? I have a work PC and a laptop at home that I dev on using Resharper. Unfortunately, every time I add a live template or change my formatting set...

22 Jul at 23:34

Best practices for storing UI settings?

Best practices for storing UI settings? we're currently planning a larger WPF LoB application and i wonder what others think being the best practice for storing lots of UI settings e.g. - - - - i don'...

29 Oct at 13:49

Get Connection String in Azure Function v3

Get Connection String in Azure Function v3 I am very confused. I want to get a connection string in an Azure v3 function (.Net Core 3.1). My local settings looks like ``` { "IsEncrypted": false, "...

Where are .NET User Settings stored IF User = SYSTEM?

Where are .NET User Settings stored IF User = SYSTEM? I've been working with an updated to update one of my apps and using `Properties.Settings.Default.Upgrade()` and discovered that after my updater ...

16 Jun at 21:44

IntelliJ: Never use wildcard imports

IntelliJ: Never use wildcard imports Is there a way to tell IntelliJ never to use wildcard imports? Under 'Settings > Code Style > Imports', I can see that you can specify the 'class count' prior to I...

27 Oct at 13:49

How do I get the location of the user.config file in programmatically?

How do I get the location of the user.config file in programmatically? I'd like to display the location of the user.config file in my windows forms application so a user can easily find it. I understa...

23 May at 10:30

Custom path of the user.config

Custom path of the user.config I manage my application-settings using the setting-designer in VS2008. > "The exact path of the user.config files looks something like this:" Is there to a way to custo...

15 Feb at 10:31