How do you uninstall NuGet from Visual Studio 2010?
I tried to open Visual Studio 2010 with 'Run as Administrator', but the Uninstall option is not available for uninstalling the NuGet extension from VS2010.
Usually to uninstall NuGet in VS2010 you need to run as an administrator, open Tools->Extension Manager. In Installed, select NuGet and click Uninstall.
If that fails you can run this command :
vsixinstaller.exe /uninstall:NuPackToolsVsix.Microsoft.67e54e40-0ae3-42c5-a949-fddf5739e7a5
(vsixinstaller can be found under [program files]\Microsoft Visual Studio 10.0\Common7\IDE )
Open Extension Manager inside Visual Studio, select "Installed" on the left, you'll find NuGet in the list and the option to remove it.
To uninstall NuGet, you must first run Visual Studio as Administrator, then you will see the Uninstall option available.
Restart VS, but this time run it as your normal account. When you install NuGet going forward, you should be able to update to future versions without running as Administrator.
I believe this issue occurs due to NuGet being installed with MVC 3. I hope in the future we no longer bundle NuGet with other software.
Related
I cloned my repo to git at work, but when I cloned it to my home computer, I wasn't able to reach nuget package manager, when i right click to the solution there is no option for nuget. Is there a way for me to get my git clone work like the original?
Just close the visual studio. Open the project folder and then open .csproj file using visual studio. Then you will see context specific menus.
Start Visual Studio or Visual Web Developer Express as an Administrator.
In the Tools menu of Visual Studio, select Extension Manager.
In the Extension Manager dialog box, click the Uninstall button for NuGet Package Manager. If NuGet-Based Package Manager doesn't appear, NuGet isn't installed.
Follow the links below to troubleshoot NuGet-Based Package Manager
https://learn.microsoft.com/en-us/nuget/consume-packages/package-restore-troubleshooting
https://learn.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio
I cannot run my new .netcore mvc application. The dependencies always show warning icon.
And I got this error message when run my new asp.net mvc application
after a few hours of searching, I got a few answers. but the answer still cannot be applied to run my application.
I have tried using dotnet restore, nuget restore, dotnet build, etc. but still no one solved this problem.
when I run dotnet restore this message appears
when I run nuget restore this message appears
Previously I used Microsoft Visual Studio 2017. I uninstalled it and replaced it with Microsoft Visual Studio 2019. Was there something conflict when I installed Microsoft Visual Studio 2019?
I just want to run my application. but I don't know what's wrong with my application?
Hopefully some of you can help me. Thank you in advance
In order to fix this error, open visual studio, then select Tools > NuGet Package Manager > Package Manager Console. Once the Package Manager Console window is open, simply type the below command press enter button.
dotnet restore
dotnet restore {Directory of Solution}{Name of the solution}
Hit Enter
It will work, restore all the nuget packages/dependencies
Since updating to the most recent version of Unity 5.4.0f3, whenever I doubleclick on a script, it launches both Visual Studio and Monodevelop, but I get an error saying that the this version of VS (Community 2015) is unable to open my project. Monodevelop displays it's own, somewhat less clear error message. Please see the screen shots below.
I can still manually open my script using Visual Studio's file menu, but the intellisense code completion no longer works. Anyone know how to fix this? I have Visual Studio's Tools for Unity installed.
I was having similar issues when doing a clean download of an existing Unity project onto a fresh install of Visual Studio Community 2019.
In the end the issue for me was that, although the correct version of VS Tools for Unity was installed, it was 'Disabled' by default in VS's Manage Extensions dialog (Extensions -> Manage Extensions). Just had to click 'Enable', restart Visual Studio, and all worked as expected again.
Turns out it was an issue with my existing install of Visual Studio Tools for Unity (VSTU).
I found a thread where users had experienced similar problems due to an unsupported version of VSTU running on Unity5.2 and beyond. Unity 5.2+ requires VSTU 2.1 or later for VS to work correctly with Unity, more information for anyone interested is available in the documentation here.
I had VSTU 2.3 installed, but removing and reinstalling VSTU resolved the issue, so there must have been a problem with my install. If anyone else has this or a similar issue you can download the latest installer for VSTU here. Thanks to all who chimed in your responses helped me look in the right place!
Please try following steps:
Delete old *.csproj and *.sln files on project's root folder
Check "Edit > Preferences > External Tools" and make sure you've selected "Visual Studio"
Re-open solution by "Assets > Open C# Project" menu
For me it was enough to right click the solution in Solution Explorer and run "Resolve errors".
I will complete what is said above. I experienced this issue today and it took me a while. In my case it was relative to a new install of the Unity Editor.
For some unknown reason the unity tool used on VS (intellisense) was uninstalled. I had to reinstall this : open Visual Studio Installer, select your project and reach the Gaming section where reside the tool for Unity.
The extension "Visual Studio 2019 Tools for Unity" seems no longer available for download via the extension manager. Luckily I recalled that I saw some game development features in the Visual Studio installer, so I picked that one:
It works for VS 2019 (16.11.11) and VS 2022 (17.2.0 Preview 1).
When I add new WebForm to my project, I get the following error:
Could not load file or assembly
'Microsoft.VisualStudio.JSLS,Version=14.0.0.0 , Culture=neutral ,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.the system
can not find the file specified.
I tried to create new website project and I tried to reinstall VS 2015 but this did not help.
This is a known bug with Visual Studio 2015. The officially-endorsed solution from Microsoft has been posted on MSDN:
If the “Tools for Universal Windows Apps Development” are still installed:
Go to Programs and Features, select Visual Studio 2105, click Change.
In Visual Studio setup, click Modify.
Deselect the feature “Tools for Universal Windows App Development”
Select “Tools for Universal Windows App Development” again, and click Update.
If you have already uninstalled the “Tools for Universal Windows Apps Development”:
Reinstall “Tools for Universal Windows App Development”
Or take the following steps to reinstall the JavaScript project system and language service:
a. Download the installer for your edition of Visual Studio, e.g.,
vs_community.exe.
b. Open a CMD window, and run the following command:
vs_community.exe /modify /installselectableitems JavaScript_Hidden
/passive
A temporary solution:
Shut down Visual Studio and reinstall the following package from the DVD or ISO:
x:\packages\JavaScript_LanguageService\JavaScript_LanguageService.msi
A better solution, endorsed by Microsoft, has been posted.
Remove the update received for visual studio TypeScript on 11/08/2015. it seems to be buggy. After removing TypeScript update, my VS is working fine ;-)
and if you try to reinstall x:\packages\JavaScript_LanguageService\JavaScript_LanguageService.msi from the installation package, soon or later you will face one more problem that "Something went wrong.. may be because of a extension.."
Easiest way is to remove TypeScript update for now. TypeScript future update may fix the problem.
OR
Run command prompt as administrator.
CD C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
devenv /updateconfiguration
devenv /clearcache
I installed Visual studio 2015 and I'm trying to create a test application for Windows Phone 8.1. When I create a new project, I get this message:
Any suggestions on how to solve this problem?
Here is the solution:
Open Visual Studio and go to Tools > Extensions and Updates
Uninstall "NuGet Package Manager for Visual Studio 2015"
Restart Visual Studio 2015
Open Visual Studio and to Tools > Extensions and Updates again
Install "NuGet Package Manager for Visual Studio 2015"
Restart Visual Studio 2015
I got a similar error message when trying to create an MVC Web App on VS2015. Found this solution and it worked for me.
Go to Tools>Extensions and Updates
Search the NuGet Package Manager for Visual Studio 2015
Install NuGet Package Manager
Restart VS2015
Hope it helps.
On VS2017 go to "Tools-> Extension and Updates" then find and Check "Xamarin for Visual Studio", it was disable, i enabled it, and restarted. Worked for me.
Refer:
https://developercommunity.visualstudio.com/content/problem/83460/cannot-create-a-new-xamarin-project-using-vs2017.html
Go to tools>Extensions and updates
Search for Visual studio tools for Apache cordova and enable it.
Restart visual studio and it will work
This worked for me:
1) go to installation path for VS2015 from command prompt and type:
devenv.exe /InstallVSTemplates
2)
- Go to Tools>Extensions and Updates
- Search the NuGet Package Manager for Visual Studio 2015
- Install NuGet Package Manager
- Restart Visual Studio 2015
Another way on VS2017 (and probably VS2019), open the Visual Studio Installer (from the Start menu), and when it loads up, press modify. From there, click on the tab at the top to select individual packages and in the list select NuGet Package Manager. Then press modify at the bottom-right to apply the change.