0

Recently had to downgrade a project from .NET 3.5 to .NET 2.0 because it turns out that the target boxes will not have .NET 3.5 on them.

When I did so (in VS2008), it created an app.config file in each project with this snippet of XML:

<startup><supportedRuntime version="v2.0.50727"/></startup>
  • Is this necessary?
  • Do I need to ship this app.config (or the resulting XML file) with my app?
David
  • 72,686
  • 18
  • 132
  • 173
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
  • The snippet of XML is missing from your post... – Eric J. Sep 10 '09 at 21:50
  • @Eric - it's right there, in the post. – AngryHacker Sep 10 '09 at 22:08
  • The code snippet is there NOW because I edited the post to make it visible. It was "hidden" originally because it was not marked as code. Since the snippet is in brackets, and not marked as code, the page processor read it as an html tag. – David Sep 10 '09 at 22:12

1 Answers1

2

It's a good thing to have in there. Your app may run fine without it, so it may not be absolutely necessary, but it gives the runtime more explicit instructions on the target version of the Framework needed. And it doesn't hurt to have in there if it's not needed.

I would keep it.

David
  • 72,686
  • 18
  • 132
  • 173