{"id":4521,"date":"2015-07-14T08:48:27","date_gmt":"2015-07-14T08:48:27","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/dotnet\/?page_id=4521"},"modified":"2019-06-19T16:29:20","modified_gmt":"2019-06-19T23:29:20","slug":"targetingdotnet","status":"publish","type":"page","link":"https:\/\/devblogs.microsoft.com\/dotnet\/p\/targetingdotnet\/","title":{"rendered":"Targeting .NET Framework Versions"},"content":{"rendered":"<div style=\"font-family: Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; font-size: 30px; vertical-align: middle;\"><a href=\"https:\/\/blogs.msdn.microsoft.com\/dotnet\"><img style=\"vertical-align: middle;\" \/><\/a>Targeting .NET Framework Versions<\/div>\n<p>Every .NET app targets a particular .NET version. This is either the target version of the app project, which is automatically recorded with the app, or a version that is manually updated later. When an app is launched, the .NET runtime checks to see if this version is installed on a given machine before running an app. If that version is not installed, you will see an error message similar to the one shown in the image below.<\/p>\n<p><img decoding=\"async\" style=\"border: 0px currentcolor; margin-right: auto; margin-left: auto; float: none;\" title=\"clip_image001\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2015\/07\/0488.shim_dialog.png\" alt=\"clip_image001\" width=\"415\" height=\"196\" border=\"0\" \/><\/p>\n<p>It is important that the correct version of the .NET Framework is installed prior to running an app, or else an app will not run correctly.<\/p>\n<p>You should validate that the correct version is installed. You can look at the <a href=\"http:\/\/msdn.microsoft.com\/vstudio\/gg189183\">Installing a .NET Framework Version Required by an Application<\/a> page to fine the .NET Framework version you need. You can also look at the <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=229561\">.NET SDKs and Targeting Packs<\/a> page to find the runtime version you need.<\/p>\n<p>You may also want to troubleshoot why you are seeing this error. The .NET team has provided the following resources to help you:<\/p>\n<ul>\n<li><a href=\"http:\/\/msdn.microsoft.com\/library\/jj157063(v=vs.110).aspx\">.NET Framework Initialization Errors: Managing the User Experience<\/a><\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/library\/jj152929(v=vs.110).aspx\">How to: Debug CLR Activation Issues<\/a><\/li>\n<li><a href=\"https:\/\/blogs.msdn.microsoft.com\/dotnet\/2013\/06\/27\/get-the-latest-net-bits\/\">.Get the latest .NET bits<\/a><\/li>\n<li><a href=\"https:\/\/blogs.msdn.microsoft.com\/dotnet\/p\/dotnet45xp\/\">.NET Framework 4.5 and Windows XP<\/a><\/li>\n<li><a href=\"https:\/\/blogs.msdn.microsoft.com\/dotnet\/p\/dotnet4xp\/\">Installing the .NET Framework 4 on Windows XP<\/a><\/li>\n<li><a href=\"https:\/\/blogs.msdn.microsoft.com\/dotnet\">.NET Team Blog<\/a><\/li>\n<\/ul>\n<p>You can <a href=\"mailto:dotnethelp@microsoft.com?subject=Having trouble targeting .NET\">contact Microsoft<\/a> for help if you cannot correctly target the .NET Framework.<\/p>\n<p>This information has been provided by the <a href=\"https:\/\/blogs.msdn.microsoft.com\/dotnet\">.NET team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Targeting .NET Framework Versions Every .NET app targets a particular .NET version. This is either the target version of the app project, which is automatically recorded with the app, or a version that is manually updated later. When an app is launched, the .NET runtime checks to see if this version is installed on a [&hellip;]<\/p>\n","protected":false},"author":344,"featured_media":58792,"parent":4241,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4521","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/pages\/4521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/344"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=4521"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/pages\/4521\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/pages\/4241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=4521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}