please help me to resolve this error:
PM> Install-Package twitter.bootstrap.mvc4.sample
Attempting to resolve dependency 'twitter.bootstrap.mvc4'.
Attempting to resolve dependency 'html5shiv'.
Install-Package : Unable to resolve dependency 'html5shiv'.
At line:1 char:16
+ Install-Package <<<< twitter.bootstrap.mvc4.sample
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
i want to install twitter.bootstrap.mvc4.samplen.nupkg offline.i add folder path to nuget manager in vs2012.
sorry for my bad english.
Try running Install-Package html5shiv first
Related
While installing any package from Visual Studio using the Package Manager Console, I get an error - how to resolve it?
PM> Install-Package Microsoft.AspNet.MVC
Install-Package : Unable to find package 'Microsoft.AspNet.MVC' at source ''.
At line:1 char:1
Install-Package Microsoft.AspNet.MVC
CategoryInfo : NotSpecified: (:) [Install-Package], Exception
FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
In output window, it shows these messages:
[Package source] Unable to load the service index for source https://packagesource.
An error occurred while sending the request.
The remote name could not be resolved: 'packagesource'
Please add the package source from the option.
Tool -> Option -> Nuget Package Manager
Add new source and add name as you want and in source for add https://api.nuget.org/v3/index.json. and save it.
I am trying to update my app's package to be compatible with .NET Framework 4.8
After I execute the Update-Package nuget command, I get an error mentioned in this link
Then after solving that issue, when I execute again the Update-Package, I'm now getting this error:
Executing nuget actions took 10.93 min
Update-Package : This collection is read-only.
At line:1 char:1
+ Update-Package -Reinstall -verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Update-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand
I don't know where to check this because it didn't say which library or files are affected by this error.
I tried to clean the packages, enabled verbose flag and everything that was suggested to the search but to no luck
Has somebody encountered the same and overcome this issue?
Really need help on this one.
I have been trying to install Crystal Decision version 13.0.3500.0 into my local code But I am getting error like
**Install-Package : Package 'CrystalReports.Engine 13.0.3500' is not found in the following
primary source(s):
'http://abcv.it.vbn.net/repository/nuget-drs-ms,C:\Program Files (x86)\Microsoft
SDKs\NuGetPackages\'. Please verify all your
online package sources are available (OR) package id, version are specified correctly.
At line:1 char:1
+ Install-Package CrystalReports.Engine -Version 13.0.3500
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId :
NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand**
any clue to solve this issue or error? Thanks in advance
I found the following Links in MSDN to help me start and stop the window services.
There is code snippet which tells it is possible to start and stop the service.
ServiceController sc = new ServiceController("Telnet");
if ((sc.Status.Equals(ServiceControllerStatus.Stopped))
|| (sc.Status.Equals(ServiceControllerStatus.StopPending)))
{
sc.Start();
}
else
{
sc.Stop();
}
sc.Refresh();
for this i need the System.ServiceProcess.dll the dll.
Namespace: System.ServiceProcess
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
I am trying to add this from NUget and got the error.
Type Script command :
Install-Package System.ServiceProcess.ServiceController -Pre
Error Message :
Install-Package : System.ServiceProcess.ServiceController 4.1.0-beta-23516 provides a compile-time reference assembly for System.ServiceProcess.ServiceController on UAP,Version=v10.0, but there is no run-time assembly compatible
with win10-arm.
At line:1 char:1
+ Install-Package System.ServiceProcess.ServiceController -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
This namespace System.ServiceProcess cannot be supported in uwp. We cannot find this .Net api in .NET for UWP apps.
Also you can add this reference manually by download the package from System.ServiceProcess.ServiceController. But you will still receive error when you run the code.
I am trying to install Npgsql and Npgsql.EntityFramework and getting this error:
Install-Package : The remote name could not be resolved: 'www.nuget.org'
At line:1 char:16
+ Install-Package <<<< Npgsql
+ CategoryInfo : NotSpecified: (:) [Install-Package], WebException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
What am I doing wrong? Please help
OK this is stupid.
Rebooting my laptop actually helped!
Must have been some wifi network error