question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate app.config for .NET Framework projects that indicated a minimum framework

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
davkeancommented, Jun 11, 2018

Yeah.

1reaction
nguerreracommented, Aug 1, 2018

Careful with OutputType != Exe, there is also WinExe. We have another property to use for this, looking for its name.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found