[{"data":1,"prerenderedAt":93},["ShallowReactive",2],{"/2025/12/26-nuget-package-reference-nu6105-publish-error":3},{"id":4,"title":5,"body":6,"date":84,"description":49,"extension":85,"meta":86,"navigation":87,"path":88,"robots":89,"seo":90,"stem":91,"__hash__":92},"posts/2025/12/26 NuGet-Package-Reference-NU6105-publish-error.md","26 NuGet Package Reference NU6105 Publish Error",{"type":7,"value":8,"toc":81},"minimark",[9,18,25,28,31,33,36,50,52,55,68,70,73],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"nuget-package-reference-nu6105-publish-error","NuGet Package Reference NU6105 Publish Error",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 11/11/2020.",[26,27],"br",{},[22,29,30],{},"Some of my .NET Core applications are already using PackageReference which is a very nice idea. However, through a combination of packages, Visual Studio did not allow me to publish my project although it built fine.",[26,32],{},[22,34,35],{},"During publish, it threw error on NU6105 warning. Along with that most of it comes with the following message:",[37,38,39],"code-block",{},[40,41,46],"pre",{"className":42,"code":44,"language":45},[43],"language-text","Detected package downgrade\n","text",[47,48,44],"code",{"__ignoreMap":49},"",[26,51],{},[22,53,54],{},"Some developers solve it by finding which package caused the issue and manually added them through NuGet, but I find them troublesome until I found the following article:",[22,56,57],{},[58,59,62],"span",{"className":60},[61],"text-blue-600",[63,64,65],"a",{"href":65,"rel":66},"https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1605",[67],"nofollow",[26,69],{},[22,71,72],{},"In my case, all I need to do to solve it is to install the following NuGet package:",[37,74,75],{},[40,76,79],{"className":77,"code":78,"language":45},[43],"Microsoft.NETCore.Targets\n",[47,80,78],{"__ignoreMap":49},{"title":49,"searchDepth":82,"depth":82,"links":83},2,[],"2025-12-26T00:00:00.000Z","md",{},true,"/2025/12/26-nuget-package-reference-nu6105-publish-error",null,{"title":5,"description":49},"2025/12/26 NuGet-Package-Reference-NU6105-publish-error","r3FLDPmaV4yiaV66KEw06uBsKYd4uQQJcJKhUup7Bh0",1785167452050]