Why did you come up with?

I noticed in Visual C # 2010, whenever you change the version of the target structure away from the default client profile 4.0 (and even if you change it later), the ID creates. configuration file, which, in his opinion, should be sent along with the program. The .config file basically just says which version of the supported / target environment.

Now, as far as I could tell from a Google search, if this file is missing, a backup is an attempt to run the program against the version of the framework with which it was created.

Since this apparently matches the version of the .config file, does this mean that the .config file has no effect and can be omitted? Or am I missing something?

+7
c # visual-studio-2010
source share
1 answer

If the compiled version matches the version you want to run, then yes is not required to save this configuration file. But say that you are compiled for .Net 2.0 and want to make your assembly work in the .NET environment. You can use this option to affect your application. You can also use this to force an application to use different versions of the runtime if they cause known problems with your application. (I have not seen such problems yet, but I can only guess.)

+6
source share

All Articles