Share via


How can I found Application configuration files at Visual Studio 2019

Question

Tuesday, June 25, 2019 10:05 PM

Hi,

I already checked .Net desktop development but I still can't found Application configuration files.

All replies (3)

Wednesday, June 26, 2019 2:46 AM | 1 vote

Hi friend,

Welcome to MSDN forum.

What language and what project type do you use? 

Please create a Wpf App project(C# or VB.net). And right-click the project name in Solution Explorer=>Add=>New Item to show the Item Page, and choose General category then you can find it:

Also, there has several tips we can check:

1. If you've checked .Net desktop development, you should have the ability to create .net desktop project (Windows Forms App and Wpf App...) Create an empty project of this type and check if you can builds them successfully. (To make sure this workload is installed successfully)

2. Make sure your project type is based on .net(C#, Visual Basic,F#). The Application Configuration File Item template comes from .net related workload, which means it supports those .net-based projects. So if you create a python project or C++ project, the Application configuration file won't display.

3. According to the name of .Net Desktop Development we should know this workload is for desktop app. So it we create a Asp.net web app, the app.config item is not supported. Instead, for the asp.net web app, it has Web Configuration File to control its settings.

To sum up:

C#, VB, F# desktop applications: Application Configuration file

C#, VB, F# asp.net applications: Web Configuration file

Hope all above helps and please feel free to let us know if it's helpful or not :)

Any feedback would be expected!

Best Regards

Lance

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Wednesday, June 26, 2019 3:21 PM

Thank you very much brother. I am ever grateful to you. Thanks again


Thursday, June 27, 2019 5:01 AM

Hi friend,

Any update for this issue? Is this issue solved or not?

I've installed the .net desktop development in a brand new VS2019, then I can add App.config file in Desktop Applications like Winform and WPF. If you still can't add this file to your desktop app, please try to repair your VS. Also, please update it to latest 16.1.4 version and check if it solves the issue.

Hope all above helps. And if my answer is helpful to solve your issue, could you please mark it as Accepted Answer, then it will appear in our forum as a solved issue. More members with similar issue could benefit from it.

Have a nice day!

Sincerely

Lance

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].