nuget-package

How to create and use ASP.NET vNext class library NuGet package?

…衆ロ難τιáo~ 提交于 2020-01-11 04:48:06
问题 I would like to create a NuGet package of my ASP.NET vNext class library. How can I do it, step by step? I understand there is kpm build , but I couldn't find a guide regarding where to download kpm, etc. Also, after getting a NuGet package (or DLL) of it, how can I add it from local machine to my vNext project? 回答1: Kpm is the package manager for the new KRuntime. Instructions on how to install the KRuntime command line utilities on your developer machine can be found on the aspnet Home repo

Cloned ASP.NET MVC 3 application from github shows yellow exclamation marks next to every Nuget'd package

旧城冷巷雨未停 提交于 2020-01-06 19:59:43
问题 Every DLL that comes by way of NuGet shows an exclamation mark against a yellow background after cloning the ASP.NET MVC project from github. The problem appears to be the PATH which is absolute rather than relative, meaning that it shows the initial developer's absolute path which in my case is different than mine. So ... Is there a way to force Nuget to use relative paths? Or, is there a way to simply use Nuget to update all of these from within the project? Or, is there a better way to

Cloned ASP.NET MVC 3 application from github shows yellow exclamation marks next to every Nuget'd package

半腔热情 提交于 2020-01-06 19:58:02
问题 Every DLL that comes by way of NuGet shows an exclamation mark against a yellow background after cloning the ASP.NET MVC project from github. The problem appears to be the PATH which is absolute rather than relative, meaning that it shows the initial developer's absolute path which in my case is different than mine. So ... Is there a way to force Nuget to use relative paths? Or, is there a way to simply use Nuget to update all of these from within the project? Or, is there a better way to

Error - Install-Package : Authenticode issuer 'System.Object[]' when running Update-Module on local package repository

微笑、不失礼 提交于 2020-01-06 05:26:24
问题 We've set up a Nuget style package repository for our locally produced tools at work. This is done via a file share. However, the module that I am attempting to update is throwing an error about the authenticode signature of the old version not matching the publisher of the new version. The signing certificate is from our AD PKI system and is trusted and it does not change/has not changed in any way. Obviously using -SkipPublisherCheck is a viable workaround but that is not a long-term

nuget package with multiple DLL's

泪湿孤枕 提交于 2020-01-05 04:38:08
问题 I have created a nuget package via Nuget Package Explorer with the following content. lib -- CPPLib.dll -- DotNetWrapper.dll CPPLib.dll is the main library with logic implementation (in native C++), and DotNetWrapper.dll is the wrapper which will be reference in C# projects. When I try to install this nuget package, I got the following error Install failed. Rolling back... Install-Package : Failed to add reference to 'CPPLib.dll'. At line:1 char:16 + install-package <<<< -id MyPackage +

NuGet: Possibility of adding a line of code via Powershell?

允我心安 提交于 2020-01-05 01:09:29
问题 I have a few NuGet packages that I've put together, with one of them being a common project referenced by all the others. This common project inserts a configuration class into the App_Start folder, and a method on this class is then invoked by WebActivator. For one of the other packages I wish to add one more line of code to this method but I'm struggling to find a way to do this. I know that I could very simply add an additional class which contains just this one line of code but I'd prefer

NuGet: Possibility of adding a line of code via Powershell?

笑着哭i 提交于 2020-01-05 01:09:00
问题 I have a few NuGet packages that I've put together, with one of them being a common project referenced by all the others. This common project inserts a configuration class into the App_Start folder, and a method on this class is then invoked by WebActivator. For one of the other packages I wish to add one more line of code to this method but I'm struggling to find a way to do this. I know that I could very simply add an additional class which contains just this one line of code but I'd prefer

Nuget package push 403 error on visual studio

北战南征 提交于 2020-01-04 04:33:11
问题 I have created a visual studio class library. I want to send this to Nuget as a package. I used Visual studio package manager console. The commans are like following: nuget spac hellonuget nuget pack hellonuget.nuspec nuget push hellonuget.1.0.0.nupkg -ApiKey * this returned an error: nuget : Failed to process request. 'The specified API key is invalid or does not have permission to access the specified package.'. At line:1 char:1 + nuget push hellonuget.1.0.0.nupkg + ~~~~~~~~~~~~~~~~~~~~~~~~

Download all packages from private nuget feed

徘徊边缘 提交于 2020-01-03 22:55:58
问题 I want to download all packages in all version from my private nuget feed. Thats it. I have no problem in using powershell, bash, package manager what ever. I can't use a placeholder project - that references all packages and copy my cache, because I need all versions. Any idea? I am working with a private nuget-feed. The feed is kind of broken, but its not in my hand to fix it. So I have to go this way... 回答1: With PowerShell you can do this: >Find-Package -Name='Package_Name' -AllVersions

Does Nuget create an error log file when a package is installed?

筅森魡賤 提交于 2020-01-03 08:39:52
问题 I have a local Nuget package that I am attempting to install. Everything runs fine with no specific errors I can see, but about 1/2 of the tasks that need to be completed for the install don't seem to happen or do anything. I have NuGet Package Explorer and I can fix the install if I know where to start. Does NuGet create an error log file someplace when it does an install and where would I find it? Thanks for the help. Doug 回答1: Use the Package Manager Console to execute the install step.