我只是在安装一个不在本地缓存中的新包。我直接从NuGet站点接收了这个命令。
在PMC中执行命令失败,出现以下错误:
The source at All [(Aggregate source)] is unreachable. Falling back to NuGet Local Cache at C:\Users\Jammer\AppData\Local\NuGet\Cache
Install-Package : Unable to find package 'Xam.Plugins.Settings'.
At line:1 char:16
+ Install-Packag
目前,我正在项目中使用.net标准和.net框架。在.net标准中,我创建了一个函数
public static void WriteEntryLog(string source, string message, EventLogEntryType entryType)
当我试图在.net框架安装程序类上使用它时,它会出现一个错误。
Error CS0012 The type 'EventLogEntryType' is defined in an assembly that is not referenced.
You must add a reference to
试图遵循来自的测试pcl的说明
For a basic .Net 4.5 test setup for, for example, a ViewModel, you can:
create a .Net 4.5 library project
use Nuget to add references to NUnit and to Moq
use Nuget or a local binary folder to add references to all of:
MvvmCross.Core
MvvmCross
MvvmCross.Tests
Moq不安装 ->无法安装软件包'M
我正在尝试使用WebDriver在我的项目上设置Selenium 2.5.1。
我试过通过工具->管理NuGet包安装..。在中得到一个错误。
我尝试调用NuGet控制台中的命令,如上面的链接所示:
Install-Package Selenium.WebDriver
我得到了同样的错误,也就是:
Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.0.2)'.
Install-Package : Unable to read data from the transport connection: An exis
当我在VS2012内部构建我的项目时,我会得到以下错误消息
This project references NuGet package(s) that are missing on this computer.
Enable NuGet Package Restore to download them.
我已经为nuget设置了NuGet选项来下载丢失的软件包。
但我还是明白这个错误。我安装了麦块2.7。使用VS2012更新3
我从Nuget Manager安装了PDFSharp/MigraDoc,并尝试使用它。当我尝试编写PDF时,它会给出以下错误:
无法加载文件或程序集“PdfSharp、Version=1.32.3057.0、Culture=neutral、PublicKeyToken=f94615aa0424f9eb”或其依赖项之一。所定位的程序集的清单定义与程序集引用不匹配。(HRESULT例外: 0x80131040)
它给了我一个程序集负载跟踪,如下所示:
=== Pre-bind state information ===
LOG: DisplayName = PdfSharp, Versio
我在我的pc上为我下载的本地nuget包设置了一个文件夹
当我在没有互联网连接的包管理中点击安装时,我得到这个错误
Unable to load the service index for source https://api.nuget.org/v3/index.json.
An error occurred while sending the request.
The remote name could not be resolved: 'api.nuget.org'
我该怎么解决这个问题呢?
最近,我将我的开发环境从安装了Visual Studio 2013的Windows 8.1更新到了安装了Visual Studio 2015的Windows 10。
我注意到了一个与Nuget相关的具体变化,它完全打乱了我的工作流程。目前,如果我要求Nuget (使用GUI)安装给定的包,它会开始同时下载它的所有依赖项。我的网络非常糟糕,因此,网络崩溃,Nuget开始抱怨超时异常,因此,没有任何依赖项被下载。
我想知道是否可以要求Nuget一次下载一个依赖项?