Removing a NuGet package that isn't in my project?












0















I keep getting this warning in my VS2015 solution:



Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled.


The thing is, there are no NuGet packages in my solution. I had one, but I removed it, but I still get this.



Any ideas?










share|improve this question























  • How was the packaged removed? If you manually edited the packages.config file, then there will be things left in your csproj. You should re-install the package, then uninstall with either the Package Manager UI or Package Manager Console.

    – zivkan
    Nov 16 '18 at 0:56
















0















I keep getting this warning in my VS2015 solution:



Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled.


The thing is, there are no NuGet packages in my solution. I had one, but I removed it, but I still get this.



Any ideas?










share|improve this question























  • How was the packaged removed? If you manually edited the packages.config file, then there will be things left in your csproj. You should re-install the package, then uninstall with either the Package Manager UI or Package Manager Console.

    – zivkan
    Nov 16 '18 at 0:56














0












0








0








I keep getting this warning in my VS2015 solution:



Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled.


The thing is, there are no NuGet packages in my solution. I had one, but I removed it, but I still get this.



Any ideas?










share|improve this question














I keep getting this warning in my VS2015 solution:



Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled.


The thing is, there are no NuGet packages in my solution. I had one, but I removed it, but I still get this.



Any ideas?







visual-studio nuget






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 20:51









Maury MarkowitzMaury Markowitz

3,84972865




3,84972865













  • How was the packaged removed? If you manually edited the packages.config file, then there will be things left in your csproj. You should re-install the package, then uninstall with either the Package Manager UI or Package Manager Console.

    – zivkan
    Nov 16 '18 at 0:56



















  • How was the packaged removed? If you manually edited the packages.config file, then there will be things left in your csproj. You should re-install the package, then uninstall with either the Package Manager UI or Package Manager Console.

    – zivkan
    Nov 16 '18 at 0:56

















How was the packaged removed? If you manually edited the packages.config file, then there will be things left in your csproj. You should re-install the package, then uninstall with either the Package Manager UI or Package Manager Console.

– zivkan
Nov 16 '18 at 0:56





How was the packaged removed? If you manually edited the packages.config file, then there will be things left in your csproj. You should re-install the package, then uninstall with either the Package Manager UI or Package Manager Console.

– zivkan
Nov 16 '18 at 0:56












1 Answer
1






active

oldest

votes


















1















Removing a NuGet package that isn't in my project?




It seems that you have not properly removed that NuGet package.



To resolve this issue, please try to reinstall this package, then uninstall it.



Detailed:



Open the the Package Manager Console by Tools->NuGet Packager Manager->Package Manager Console, and type following command line to reinstall nuget package:



Update-Package -reinstall


After the re-installation is complete, type following command line to uninstall the package in the Package Manager Console:



Uninstall-Package <PackageID>


With this way, the nuget package will be moved from your project. If you have installed that package for multiple project in the solution, please use the uninstall command line for different default project in the Package Manager Console window:



enter image description here



Hope this helps.






share|improve this answer
























  • Started off well... "Package 'Newtonsoft.Json.11.0.2' already exists in project 'DLoader'", but then the next step "Uninstall-Package : Package 'Newtonsoft.Json.11.0.2' to be uninstalled could not be found in project 'DCFLoader'" Is that the right ID?

    – Maury Markowitz
    Nov 16 '18 at 17:26






  • 1





    Have you add the packages folder into the source code? If yes, please remove it out.

    – Leo Liu-MSFT
    Nov 17 '18 at 8:10











  • Yay, that did it!

    – Maury Markowitz
    Nov 18 '18 at 13:41











  • Well it's come back. Now I periodically see it "renewing nuget packages" and we're back to the start again.

    – Maury Markowitz
    Nov 20 '18 at 16:00











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53327722%2fremoving-a-nuget-package-that-isnt-in-my-project%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1















Removing a NuGet package that isn't in my project?




It seems that you have not properly removed that NuGet package.



To resolve this issue, please try to reinstall this package, then uninstall it.



Detailed:



Open the the Package Manager Console by Tools->NuGet Packager Manager->Package Manager Console, and type following command line to reinstall nuget package:



Update-Package -reinstall


After the re-installation is complete, type following command line to uninstall the package in the Package Manager Console:



Uninstall-Package <PackageID>


With this way, the nuget package will be moved from your project. If you have installed that package for multiple project in the solution, please use the uninstall command line for different default project in the Package Manager Console window:



enter image description here



Hope this helps.






share|improve this answer
























  • Started off well... "Package 'Newtonsoft.Json.11.0.2' already exists in project 'DLoader'", but then the next step "Uninstall-Package : Package 'Newtonsoft.Json.11.0.2' to be uninstalled could not be found in project 'DCFLoader'" Is that the right ID?

    – Maury Markowitz
    Nov 16 '18 at 17:26






  • 1





    Have you add the packages folder into the source code? If yes, please remove it out.

    – Leo Liu-MSFT
    Nov 17 '18 at 8:10











  • Yay, that did it!

    – Maury Markowitz
    Nov 18 '18 at 13:41











  • Well it's come back. Now I periodically see it "renewing nuget packages" and we're back to the start again.

    – Maury Markowitz
    Nov 20 '18 at 16:00
















1















Removing a NuGet package that isn't in my project?




It seems that you have not properly removed that NuGet package.



To resolve this issue, please try to reinstall this package, then uninstall it.



Detailed:



Open the the Package Manager Console by Tools->NuGet Packager Manager->Package Manager Console, and type following command line to reinstall nuget package:



Update-Package -reinstall


After the re-installation is complete, type following command line to uninstall the package in the Package Manager Console:



Uninstall-Package <PackageID>


With this way, the nuget package will be moved from your project. If you have installed that package for multiple project in the solution, please use the uninstall command line for different default project in the Package Manager Console window:



enter image description here



Hope this helps.






share|improve this answer
























  • Started off well... "Package 'Newtonsoft.Json.11.0.2' already exists in project 'DLoader'", but then the next step "Uninstall-Package : Package 'Newtonsoft.Json.11.0.2' to be uninstalled could not be found in project 'DCFLoader'" Is that the right ID?

    – Maury Markowitz
    Nov 16 '18 at 17:26






  • 1





    Have you add the packages folder into the source code? If yes, please remove it out.

    – Leo Liu-MSFT
    Nov 17 '18 at 8:10











  • Yay, that did it!

    – Maury Markowitz
    Nov 18 '18 at 13:41











  • Well it's come back. Now I periodically see it "renewing nuget packages" and we're back to the start again.

    – Maury Markowitz
    Nov 20 '18 at 16:00














1












1








1








Removing a NuGet package that isn't in my project?




It seems that you have not properly removed that NuGet package.



To resolve this issue, please try to reinstall this package, then uninstall it.



Detailed:



Open the the Package Manager Console by Tools->NuGet Packager Manager->Package Manager Console, and type following command line to reinstall nuget package:



Update-Package -reinstall


After the re-installation is complete, type following command line to uninstall the package in the Package Manager Console:



Uninstall-Package <PackageID>


With this way, the nuget package will be moved from your project. If you have installed that package for multiple project in the solution, please use the uninstall command line for different default project in the Package Manager Console window:



enter image description here



Hope this helps.






share|improve this answer














Removing a NuGet package that isn't in my project?




It seems that you have not properly removed that NuGet package.



To resolve this issue, please try to reinstall this package, then uninstall it.



Detailed:



Open the the Package Manager Console by Tools->NuGet Packager Manager->Package Manager Console, and type following command line to reinstall nuget package:



Update-Package -reinstall


After the re-installation is complete, type following command line to uninstall the package in the Package Manager Console:



Uninstall-Package <PackageID>


With this way, the nuget package will be moved from your project. If you have installed that package for multiple project in the solution, please use the uninstall command line for different default project in the Package Manager Console window:



enter image description here



Hope this helps.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 16 '18 at 3:34









Leo Liu-MSFTLeo Liu-MSFT

20.7k22634




20.7k22634













  • Started off well... "Package 'Newtonsoft.Json.11.0.2' already exists in project 'DLoader'", but then the next step "Uninstall-Package : Package 'Newtonsoft.Json.11.0.2' to be uninstalled could not be found in project 'DCFLoader'" Is that the right ID?

    – Maury Markowitz
    Nov 16 '18 at 17:26






  • 1





    Have you add the packages folder into the source code? If yes, please remove it out.

    – Leo Liu-MSFT
    Nov 17 '18 at 8:10











  • Yay, that did it!

    – Maury Markowitz
    Nov 18 '18 at 13:41











  • Well it's come back. Now I periodically see it "renewing nuget packages" and we're back to the start again.

    – Maury Markowitz
    Nov 20 '18 at 16:00



















  • Started off well... "Package 'Newtonsoft.Json.11.0.2' already exists in project 'DLoader'", but then the next step "Uninstall-Package : Package 'Newtonsoft.Json.11.0.2' to be uninstalled could not be found in project 'DCFLoader'" Is that the right ID?

    – Maury Markowitz
    Nov 16 '18 at 17:26






  • 1





    Have you add the packages folder into the source code? If yes, please remove it out.

    – Leo Liu-MSFT
    Nov 17 '18 at 8:10











  • Yay, that did it!

    – Maury Markowitz
    Nov 18 '18 at 13:41











  • Well it's come back. Now I periodically see it "renewing nuget packages" and we're back to the start again.

    – Maury Markowitz
    Nov 20 '18 at 16:00

















Started off well... "Package 'Newtonsoft.Json.11.0.2' already exists in project 'DLoader'", but then the next step "Uninstall-Package : Package 'Newtonsoft.Json.11.0.2' to be uninstalled could not be found in project 'DCFLoader'" Is that the right ID?

– Maury Markowitz
Nov 16 '18 at 17:26





Started off well... "Package 'Newtonsoft.Json.11.0.2' already exists in project 'DLoader'", but then the next step "Uninstall-Package : Package 'Newtonsoft.Json.11.0.2' to be uninstalled could not be found in project 'DCFLoader'" Is that the right ID?

– Maury Markowitz
Nov 16 '18 at 17:26




1




1





Have you add the packages folder into the source code? If yes, please remove it out.

– Leo Liu-MSFT
Nov 17 '18 at 8:10





Have you add the packages folder into the source code? If yes, please remove it out.

– Leo Liu-MSFT
Nov 17 '18 at 8:10













Yay, that did it!

– Maury Markowitz
Nov 18 '18 at 13:41





Yay, that did it!

– Maury Markowitz
Nov 18 '18 at 13:41













Well it's come back. Now I periodically see it "renewing nuget packages" and we're back to the start again.

– Maury Markowitz
Nov 20 '18 at 16:00





Well it's come back. Now I periodically see it "renewing nuget packages" and we're back to the start again.

– Maury Markowitz
Nov 20 '18 at 16:00




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53327722%2fremoving-a-nuget-package-that-isnt-in-my-project%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine