<p>I am currently working on a project that is moving from .NET 2.0 to 3.5 across the board.</p>

<p>I am well aware that 3.5 is basically a set of added functionality (libraries, if you will) on top of what 2.0 offers.</p>

<p>Are there any gotchas that I might hit by simply re-targeting the compiler to 3.5?</p>

[{'answer_id': 57462, 'author': 'juan', 'author_id': 1782, 'author_profile': 'https://Stackoverflow.com/users/1782', 'pm_score': 1, 'selected': False, 'text': '<p>Nope</p>\n\n<p>3.5 is completely compatible with 2.0, not the other way around of course</p>\n'}, {'answer_id': 57465, 'author': 'James B', 'author_id': 2951, 'author_profile': 'https://Stackoverflow.com/users/2951', 'pm_score': 1, 'selected': False, 'text': "<p>I recently migrated a small project from 2.0 to 3.5 and didn't encounter any specific problems, as the framework versions <strong><em>are backwards compatible</em></strong>.  That said, there are a good number of optimisations and improvements that can be made by taking advantage of available features in the later framework versions.  You may get some deprecated feature warnings, but nothing that will stop your project compiling.</p>\n"}, {'answer_id': 57470, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>Other than that some users of the application will have to download the new framework run-time, none that I know of.</p>\n'}, {'answer_id': 57480, 'author': 'Tyler', 'author_id': 5642, 'author_profile': 'https://Stackoverflow.com/users/5642', 'pm_score': 4, 'selected': True, 'text': '<p>This isn\'t a gotcha, it\'s more of a heads up. .NET v3.0 and v3.5 are not new CLRs but simply an added set up assemblies, compilers, resources etc...</p>\n\n<p><strong>Both .NET v3.0 AND v3.5 use the v2.0 CLR.</strong> Because of this you won\'t be able to say set an IIS App Pool to use a v3.5 CLR...cause it doesn\'t exist.</p>\n\n<p>Discussed in a little more detail here:\n<a href="http://www.hanselman.com/blog/HowToSetAnIISApplicationOrAppPoolToUseASPNET35RatherThan20.aspx" rel="noreferrer">http://www.hanselman.com/blog/HowToSetAnIISApplicationOrAppPoolToUseASPNET35RatherThan20.aspx</a></p>\n'}, {'answer_id': 57495, 'author': 'Wheelie', 'author_id': 1131, 'author_profile': 'https://Stackoverflow.com/users/1131', 'pm_score': 2, 'selected': False, 'text': "<p>The only issue I've seen is with name conflicts. You'll need to dis-ambiguate any class or method names in your code that share names with ones added to the .net framework between .net 2.0 and 3.5</p>\n"}]
['https://Stackoverflow.com/questions/57458', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1583/']