Generate app.config for .NET Framework projects that indicated a minimum framework
See original GitHub issueWhen targeting .NET Framework, we should generate an app.config
file as part of build if the project doesn’t specify one. Otherwise, an app targeting 4.x will run on older 4.x machines, and fail at runtime with strange missing method exceptions.
(It’s probably okay to do this only for sdk-style projects, as traditional templates include an app.config)
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
How to: Configure an app to support .NET Framework 4 or ...
To configure your app to run on the .NET Framework 4 or later versions · Add or locate the configuration file for the...
Read more >Create a .NET app that works on any .NET version if only ...
Inside the App.Config you can specify the version of the runtime you can support.
Read more ><supportedRuntime> element - NET Framework
Specifies which common language runtime version and, optionally, .NET Framework version the application supports. <configuration>
Read more >Tutorial: Use dynamic configuration in a .NET Framework app
In this tutorial, you learn how to dynamically update the configuration data for .NET Framework apps using Azure App Configuration.
Read more >App.Config: Basics and Best Practices
In today's post, we introduce you to the app.config file by covering basic usage, what happens when compiling, and we give you a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah.
Careful with OutputType != Exe, there is also WinExe. We have another property to use for this, looking for its name.