{"id":159,"date":"2013-04-30T00:00:00","date_gmt":"2013-04-30T07:00:00","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/nuget\/a-quick-note-about-minclientversion-feature"},"modified":"2013-04-30T00:00:00","modified_gmt":"2013-04-30T07:00:00","slug":"a-quick-note-about-minclientversion-feature","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/a-quick-note-about-minclientversion-feature\/","title":{"rendered":"A quick note about the new MinClientVersion attribute"},"content":{"rendered":"<p>In the NuGet 2.5 release, we added the <a href=\"http:\/\/docs.nuget.org\/docs\/release-notes\/nuget-2.5##Add_a_%27Minimum_NuGet_Version%27_property_to_packages\">MinClientVersion<\/a> property to the package manifest schema to allow for a package to demand the minimum version of the NuGet client that can install it.<\/p>\n<p>Because this feature was added in version 2.5, older versions of NuGet won&#8217;t be able to recognize it. Therefore, older clients will <em>always<\/em> refuse to install packages with the MinClientVersion property set, even if you set it to a value smaller than the version of the client.<\/p>\n<p>For example, if you set MinClientVersion to 1.8, and the user tries to install your package with NuGet 2.2, the installation will fail even though 1.8 &lt; 2.2. The user will see the following error message:<\/p>\n<p><strong>The schema version of &#8216;MyPackage&#8217; is incompatible with version 2.2.1.0 of NuGet. Please upgrade NuGet to the latest version from <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=213942\">http:\/\/go.microsoft.com\/fwlink\/?LinkId=213942<\/a>.<\/strong><\/p>\n<p>In sum, this feature will grow in its utility over future NuGet iterations, starting with version 2.6<\/p>\n<p>-Luan<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the NuGet 2.5 release, we added the MinClientVersion property to the package manifest schema to allow for a package to demand the minimum version of the NuGet client that can install it. Because this feature was added in version 2.5, older versions of NuGet won&#8217;t be able to recognize it. Therefore, older clients will [&hellip;]<\/p>\n","protected":false},"author":4268,"featured_media":58792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7933,7874],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-feature-announcement","category-nuget"],"acf":[],"blog_post_summary":"<p>In the NuGet 2.5 release, we added the MinClientVersion property to the package manifest schema to allow for a package to demand the minimum version of the NuGet client that can install it. Because this feature was added in version 2.5, older versions of NuGet won&#8217;t be able to recognize it. Therefore, older clients will [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/4268"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"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=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}