Answer the question
In order to leave comments, you need to log in
Why is there no app.config config file in visual studio project?
Good day!
I am learning c# using VS 2019 Community. Now I'm trying to master connecting to localDB and MS SQL, querying data, writing data. Recently I watched a video tutorial on you tube, where a friend (using VS 2017 Community) talked in great detail about connecting using Entity, but that's bad luck, when creating it, he used a configuration file - app.config, which is not in my project ... He has it assembled automatically. I can add it via Solution Explorer, but it will be completely empty even if I set Entity after adding it.
What am I doing wrong...?
Answer the question
In order to leave comments, you need to log in
The modern framework (.net core) no longer uses app.config, but should use configuration.json
instead
Just in case you need a quick solution - create a file, add to it:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net4.5</TargetFramework>
<UseWPF>true</UseWPF>
<AppConfig>App.config</AppConfig>
<ApplicationManifest>App.manifest</ApplicationManifest>
<Nullable>enable</Nullable>
</PropertyGroup>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question