I'm trying to install TestStack.White via "Manage NuGet Packages" everytime I get this error.
Install failed. Rolling back...
Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
Any ideas how to overcome this error?
Try to turn off the firewall for a little bit.
Open the project/solution in Visual Studio, and open the console using the Tools > NuGet Package Manager > Package Manager Console command. Then try again
Related
I'm making a Windows form progect in Visual Studio.
When I trying to install any package through console I get error
Install-Package : Unable to find package 'PackageName' at source ''.
I tried both Visual Studio 2013 and Visual Studio 2019.
When I go to Nuget Browse I get error as well. I don't see any packages
According to your description, you can check your package scources under Tools > Options > NuGet Package Manager if you don’t have the correct package sources you can add this “https://api.nuget.org/v3/index.json” such as:
Maybe try to add -source "https://api.nuget.org/v3/index.json" behind?
I was trying to use add-migration command within package management console in Visual Studio for Mac, version 8.4.8 (VS Mac). However, Package Management(PM) Console does not come with VS Mac.
Cant find package manager console in visual studio for mac
I followed the above link, and installed Powershell and NuGet Package Management Extensions version 0.21 . The PM console shows up in my VS Mac. But when I opened it, it started giving me error which I pasted below.
I can run PowerShell in mac terminal. But it does not work within VS Mac
Disconnected from remote PowerShell host. Reason: Disposed: Reached end of stream.
Disconnected from remote PowerShell host. Reason: Disposed: Reached end of stream.
Unable to restart PowerShell host
Unable to restart PowerShell host
A task was canceled.
NuGet 5.3.0.3
Type 'get-help NuGet' for more information.
Unable to restart PowerShell host
PM>
Unable to restart PowerShell host
PM>
Unable to restart PowerShell host
PM>
Unable to restart PowerShell host
'/Users/myname/.nuget/packages/microsoft.entityframeworkcore.tools/3.1.2/tools/init.ps1'
Executing script file '/Users/myname/.nuget/packages/microsoft.entityframeworkcore.tools/3.1.2/tools/init.ps1'...
Write fault on path /[Unknown]
Disconnected from remote PowerShell host. Reason: Disposed: Reached end of stream.
Thanks for all the attentions.
Today, my VS Mac cannot open my previous project files and show this error
Expected 1 export(s) with contract name MonoDevelop.TextEditor.CocoaTextViewImports but found 0 after applying applicable constraints.
I think some of my debugging process for this problem caused this new issue. So I decided to reinstall my VS. I uninstalled VS Mac and all the resources and dependencies files follow this link
Just remove VS Mac from the application folder is not enough.
After installing the NuGet Package Management Extensions, my PM console shows up without any error, and the new issue also disappear.
while installing TFS2015 in WS2016, the error that 'Starting Team Foundation Server configuration wizard Package failed' came. How can i deal this situation?
if i ignore it and continue configuration wizard, finally, project collection failed to configure.enter image description here
log:
[1ECC:2290][2018-06-18T15:31:11]e000: Error 0x80073e84: Process returned error: 0x3e84
[1ECC:2290][2018-06-18T15:31:11]e000: Error 0x80073e84: Failed to execute EXE package.
[2260:1A8C][2018-06-18T15:31:11]e000: Error 0x80073e84: Failed to configure per-machine EXE package.
Just try below things to narrow down the issue:
Disable anti-virus or anti-spyware software.
Check windows update, install the latest patches.
Clear %TEMP% folder.
Run the installer as administrator.
Uninstall the MS Visual C++ 2010 x86 Redistributable (from add/remove
programs) and then reinstall TFS.
After a check in from Visual Studio 2013 I am getting the following 2 build errors:
C:\a\src\project.nuget\nuget.targets (58): The process cannot access the file 'C:\Users\buildguest\AppData\Roaming\NuGet\NuGet.Config' because it is being used by another process.
C:\a\src\project.nuget\nuget.targets (58): The command ""C:\a\src\project.nuget\nuget.exe" install "C:\a\src\project\WebWorkerRole\packages.config" -source "" -o "C:\a\src\project\packages"" exited with code 1.
Do you have enabled NuGet Package Restore in your solution? This adds nuget.exe and nuget.config into your solution and build can use it locally. To enable NuGet Package Restore right click on the Solution node in Solution Explorer and select Enable NuGet Package Restore (see NuGet documentation).
I have a need to create a custom Nuget package from my server that will be used my Octopus to perform some deployment.
I have copied the NuGet.exe executable to the server, and I attempt to do the following command there:
nuget.exe pack translations.nuspec -NonInteractive
This is only supposed to take some files on the local machine, and pack them into a nupkg file. This works as expected on my machine.
On the server I get the following message:
Package restore is disabled by default. To give consent, open the Visual Studio
Options dialog, click on Package Manager node and check 'Allow NuGet to download
missing packages during build.' You can also give consent by setting the
environment variable 'EnableNuGetPackageRestore' to 'true'.
I have tried setting 'EnableNuGetPackageRestore' to 'true', but to no avail.
Of course I can't check anything in Package Manager node in Visual Studio, since VS is not installed on my server.
Are there anyway to get the NuGet pack to work on my server without Visual Studio installed on it?
Try direct download the nuget installer to the server
http://docs.nuget.org/docs/start-here/installing-nuget
instead of copying the NuGet.exe executable file.