<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Khai Nguyen on Medium]]></title>
        <description><![CDATA[Stories by Khai Nguyen on Medium]]></description>
        <link>https://medium.com/@khainguyen?source=rss-fcd3e488033a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qimDgS-3TFb0DxlkYfj6VA.jpeg</url>
            <title>Stories by Khai Nguyen on Medium</title>
            <link>https://medium.com/@khainguyen?source=rss-fcd3e488033a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:46:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khainguyen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to upgrade a NuGet package from a deleted version]]></title>
            <link>https://medium.com/@khainguyen/how-to-upgrade-a-nuget-package-from-a-deleted-version-6f8e2716b590?source=rss-fcd3e488033a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f8e2716b590</guid>
            <category><![CDATA[nuget]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[visual-studio]]></category>
            <dc:creator><![CDATA[Khai Nguyen]]></dc:creator>
            <pubDate>Thu, 12 Apr 2018 15:56:01 GMT</pubDate>
            <atom:updated>2018-04-25T07:24:25.798Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Issue</h3><p>I have cloned a repository of a .NET component where some of the projects depend on an old version of a proprietary library. I can’t restore the package to build the solution. I can’t even upgrade the library to a newer version.</p><p>Trying to restore or upgrade the package and I’d get an “unable to find version” error (<strong>Figure 1</strong>). Evidently this old version of the package is no longer available from our internal feed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*LZdtZL90DWmde0HVg1BzjA.png" /><figcaption><strong>Figure 1</strong>. nuget <em>restore error:</em> Restoring or upgrading from the missing version package results in an error.</figcaption></figure><p>What I found interesting is that I couldn’t upgrade the package without first restoring the old version. Additionally, this issue seems to happen for packages.config-based projects only. It turns out that the restoration is necessary so that nuget.exe can build a <a href="https://docs.microsoft.com/en-us/nuget/consume-packages/dependency-resolution">dependency graph</a>.</p><h3>Solution: Edit packages.config</h3><p>Luckily, the solution is very straightforward. I only needed to change the value in the version attribute in package.config (<strong>Snippet 1</strong>) and I was able to continue with nuget restore and build the application.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/23090d31321f0a194ac757da61aa9b7a/href">https://medium.com/media/23090d31321f0a194ac757da61aa9b7a/href</a></iframe><h3>Deleting <em>vs.</em> “Delisting” a NuGet package</h3><p>I think we should never permanently delete a package from source. Doing so causes an package restoration and build issues. For this reason, <a href="https://docs.microsoft.com/en-us/nuget/policies/deleting-packages">nuget.org doesn’t allow deleting a package</a> from their end but instead permit unlisting packages only.</p><p>For a self-hosted NuGet feed, it’s a good practice to enable the “delisting” feature. To enable this feature, set true for enableDelisting setting in the Web.config file (<strong>Snippet 2</strong>). You can reference <a href="https://docs.microsoft.com/en-us/nuget/hosting-packages/nuget-server#removing-packages-from-the-feed">the doc</a> for more details.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ae3bfed6d6c6ab62b157170440e102c/href">https://medium.com/media/9ae3bfed6d6c6ab62b157170440e102c/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f8e2716b590" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>