app-config Questions
3
Solved
I have a couple of appSettings in my app.config file, with default values:
<appSettings>
<add key="Foo" value="one"/>
<add key="Bar" value="two"/>
</appSettings>
which...
Circumjacent asked 20/5, 2015 at 23:20
4
Assume that I have a Powershell script called Foo.ps1
I would like to introduce an XML configuration file called Foo.ps1.config
where I can specify my environment settings something like:
<Fu...
Herbarium asked 4/12, 2012 at 7:41
2
Solved
I have a appsettings.json that look like this
{
"AppName": "my-app-service",
"MyModel": {
"MyList": [{
"CountryCode": "jp"
},{
&quo...
Schwenk asked 29/7, 2020 at 22:53
9
Solved
I'm doing some work in Visual Studio 2012 Express Edition. I have added an App.config XML file as follows:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
</configuration>...
Discovery asked 21/9, 2012 at 3:50
1
Solved
I know this might sound stupid but I was just wondering what's the difference if I just type 'myapp' instead of 'myapp.apps.myappConfig' in my Installed Apps list. Is it something related to models...
Adorno asked 9/7, 2020 at 13:14
3
Solved
I have a .Net Core 3.0 project and wanted to take advantage of the new option to publish the project as a single .exe file.
I use the command
dotnet publish -r win-x64 -c Release /p:PublishSingleF...
Tuneless asked 17/10, 2019 at 11:1
6
Solved
I am new to VS 3.5 and I am writing a console app that needs to pull some key values from the app.config file.
I have:
Imports System.Configuration
and I am trying to reference ConfigurationMa...
Buckish asked 13/12, 2010 at 16:32
2
Solved
I am using log4net and I was to save the log file in the AppData file for win XP/Vista etc.
This is my app.config file so far, and I have specified the name softphone.log. Hoewver, I am not sure h...
Drillmaster asked 8/6, 2009 at 9:51
3
Solved
Working in Visual Studio 2017; I have added a class library in my project. Now I want to add an app.config file.
When I try to add by "Add new Item" but config file is missing from item list.
How...
Celloidin asked 4/5, 2018 at 17:51
9
Solved
Is it possible to relocate the whole App.Config file to a custom path?
It seems a bit odd that the config file resides in the same folder as the exe, with Windows' new approcah of saving all progr...
Lysol asked 3/12, 2009 at 8:59
2
Solved
I have injected IConfiguration using following code:
public class InjectorConfig
{
/// <summary>
/// configuration for DI
/// </summary>
/// <param name="services">...
Tokay asked 22/4, 2019 at 6:49
3
Solved
I'm trying to reference some common config settings between a Windows Service and an ASP.NET MVC website. I am doing this by using the file attribute on appSettings in either the App.config or Web....
Landman asked 2/7, 2013 at 23:18
3
Let us say i am creating an app called ConsoleApp2.
Because of some third party libraries i am using, my default app.config file is generating code like
<runtime>
<assemblyBinding xmlns...
Acutance asked 12/12, 2019 at 20:24
4
Solved
I have a C# unit test project with application settings in the app.config file. I am testing a class that exists in a different project. That class depends on both, ConfigurationManager.AppSettings...
Adamek asked 19/6, 2014 at 13:21
9
When i run a simple test on connection to DB check i receive an error in NUnit:
[Test]
public void TestConn()
{
string connectionString = ConfigurationManager.ConnectionStrings["FertigungRead"]....
Eliason asked 9/3, 2010 at 13:13
2
Solved
I just upgraded my Windows Forms project from .NET 3.0 to .NET 3.5 and the upgrade added the following to my app.config file:
<system.web>
<membership defaultProvider="ClientAuthenticati...
Pizor asked 5/8, 2009 at 3:59
3
Solved
I have an extension to VS that should use Gmail api to send mails to certain users in my company.
During development I step into a common issue with System.Net.Http.Primitives version that is some...
Auden asked 6/7, 2015 at 12:37
1
I'm writing a simple .Net Core 3.0 console application and publishing as a single executable.
I figured out how to exclude the appsettings.json file, but when I run the application it uses the or...
Dulcine asked 28/9, 2019 at 16:54
3
Solved
I know this may looks like a previously asked question but I'm facing a different problem here.
I have a utility class that has only static methods. I don't and I won't take an instance from it.
...
Vernettaverneuil asked 4/7, 2012 at 7:32
7
Solved
Here is what my solution is looking like at the moment:
In the Tutomentor.Branding project, I'd like to save branding information in the App.config file, like names, colors, etc.
In the Tutomen...
Concoct asked 27/1, 2011 at 13:41
2
Solved
I have the following dependency
Project A (owned by me) uses
project_b.dll
Newtonsoft.Json.dll (version 8)
Project B uses
project_c.dll
Newtonsoft.Json.dll (version 9)
Project C uses
Ne...
Apuleius asked 14/8, 2019 at 15:45
9
I have a console application written in C# under .net 4.0 It has a bunch of variables which I want to move into App.Config (so it will be all in one place). Added this part of code to App.Config (b...
Portwin asked 10/2, 2014 at 17:5
5
The VS solutions I often work with consist of a single executable project (console app, web app) and many class library projects that are all referenced by the executable.
When working with NuGet ...
Rather asked 22/1, 2018 at 8:36
6
Solved
I am developing a simple class library project, which will give me a dll.
I wanted a particular value to be read from a config file. So I have added an App.config file to my project.
<?xml ve...
Representational asked 26/3, 2012 at 12:17
2
Solved
I know I can enable .NET tracing by adding <system.diagnostics> element to App config (powershell.exe.config) in PowerShell installation folder. This is covered in System.Net tracing in Power...
Fiann asked 20/5, 2019 at 12:1
© 2022 - 2024 — McMap. All rights reserved.