Question

I write a small application, that I don't need store anything in config files. So the file App.config in my source is exactly what ever Visual Studio has created.
So I want to delete this file from source code (before compiling). But I noticed that it also contains the .NET version information. I wonder if I delete App.config file, then copy my application to other pc, is it have any strange behavior?

Was it helpful?

Solution

I wonder if I delete App.config file, then copy my application to other pc, is it have any strange behavior?

Nope, it should be fine. There are various (somewhat tortuous) rules about exactly what version of the CLR etc gets used in what situations, but for the most part you're fine to just rely on the default behaviour.

You really don't need an app.config file unless you need to give specific settings.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top