Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App.Config stop creating

While we build project it will automatically create App.Config file...

But in case when we are not using this .Config file, so is there any way to stop create App.Config file.

like image 416
Sagar Upadhyay Avatar asked Aug 06 '13 09:08

Sagar Upadhyay


People also ask

Can I delete app config?

If the app has a configuration profile, delete it. Go to Settings > General > Profiles or Profiles & Device Management,* then tap the app's configuration profile. Then tap Delete Profile.

Does app config get compiled into DLL?

If you don't want to expose values, make sure you have an app. config with deployment values (empty, 0, or something). The values WILL be compiled into the DLL as default values.

Why do we need app config?

Benefits of using AWS AppConfig For syntactic validation, you can use a JSON schema. AWS AppConfig validates your configuration by using the JSON schema to ensure that configuration changes adhere to the application requirements.

Where are app config files stored?

This file is located in the %runtime install path%\Config directory.


2 Answers

if you are not using it at all, just remove it from your project and it won't get created anymore.

like image 65
Davide Piras Avatar answered Sep 21 '22 14:09

Davide Piras


If the selected answer doesn't work for you, i.e. App.Config file still keeps getting created, then you likely have the Auto-generate binding redirects selected in your Project -> Properties.

enter image description here

In this case, you can uncheck and save this setting, and then remove the app.config file ans save the project.

This solves the problem.

like image 25
Shiva Avatar answered Sep 21 '22 14:09

Shiva