Oct 5, 2012 at 9:18 PM
Edited Oct 5, 2012 at 9:28 PM
|
Sure. Below is the output form the Package Manager Console and from the Manage NuGet Packages Window in Visual Studio.
From Package Manager Console:
PM> Install-Package PackageNameHere -verbose
...
Added file OUTPUT HERE
...
Successfully installed 'PackageNameHere'
...
Added file OUTPUT HERE
...
Removed file OUTPUT HERE
...
Successfully uninstalled 'PackageNameHere'.
Install failed. Rolling back...
Install-Package : Failed to add reference to 'Assembly.Name.Here'.
At line:1 char:1
+ Install-Package PackageNameHere -verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM>
From Manage NuGet Package Window:
Successfully installed 'PackageNameHere'.
Successfully uninstalled 'PackageNameHere'.
Install failed. Rolling back...
Failed to add reference to 'Assembly.Name.Here'.
Yes, that is correct. I want to add .DLL files to a C# project and not an HTML/JS project (Visual Studio's Add Reference will only allow you to reference *.winmd files for a HTML/JS project). And then I want to install .js files to an HTML/JS project. I
would think at the very least the C# .DLLs should NOT cause the install to fail on a HTML/JS project.
Also, here is my Windows8\install.ps1 work around:
param($installPath, $toolsPath, $package, $project)
switch ($project.Type) {
"C#" {
$project.Object.References.Add("path to DLL")
}
"JavaScript" {
$jsFolderProjectItem = $project.ProjectItems.Item("js")
$jsFolderProjectItem.ProjectItems.AddFromFileCopy("path to js file")
}
}
Simon
|