nuget-package

how to get all nuget dependencies for offline installation

走远了吗. 提交于 2021-02-05 20:29:22
问题 I two computers, one with internet connection and the other one without. I want to install a Nuget package (Nuget.server) with all its dependencies on the offline computer. Unfortunately it is not possible just to download the package itself and I have to download all dependencies manually and there are dozens of them. How can I create a package on the computer with internet connection that contains all dependencies? Thanks. 回答1: On the computer with internet access the NuGet packages (.nupkg

NuGet package contentFiles artifacts installed as links in ASP.NET Core MVC project

耗尽温柔 提交于 2021-02-05 07:59:05
问题 We have an internal JavaScript library that we'd like to share between multiple projects. Actually we are already sharing it via file copying, but this has (predictably) resulted in multiple forks of the code. The consuming projects are a mix of "full" ASP.NET (MVC and Web Forms) and ASP.NET Core MVC. (I'm planning on creating two separate packages.) Installing into ASP.NET projects seems to work fine, but I'm having problems with ASP.NET Core. Initially I had all the artifacts within a files

Why are content files from NuGet packages added as links in .NET Core projects and how can you prevent that?

余生长醉 提交于 2021-02-04 21:48:57
问题 I am developing a .NET Standard library and plan to use it in both .NET Core and .NET Framework projects. My library is dependant on a third library which itself is dependant on a few C binary files. The C binary files have to be copied to the output directory of the project which will be referencing my library. I added the binary files to my library project as content and they are copied to the content and contentFiles directories when the NuGet package is packed with the dotnet pack command

Is there an alternative to contentFiles with projects that use packages.config?

夙愿已清 提交于 2021-02-04 19:51:05
问题 I have a nuget package with content that I want to be copied to the build output when users install my package. There is support for this: NuGet ContentFiles Demystified in NuGet v3.3. However, it only works in projects that use project.json . The contentFiles are not copied to my build output when I have a project that uses packages.config . Is there an alternative or workaround I could use in order to make my NuGet package work on projects that use either a project.json or packages.config ?

Including a Folder in NuGet Package and have it install into project as file .netcore/Razor

让人想犯罪 __ 提交于 2021-02-04 08:30:27
问题 I am using Visual Studio 2019 and creating NuGet packages successfully with this method: https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio?tabs=netcore-cli All going well, but there are some settings ( .json ) files contained within a directory PageSettings/ When I publish my NuGet package and then install it into a new project, this directory appears in VS as a linked item (see pic). So as a user I can access the files, but they don't "exist"

Doing a local NuGet package installation but getting the error - Unable to get repository signature information

元气小坏坏 提交于 2021-01-29 16:16:20
问题 I'm trying to do an offline NuGet package installation by following the answer by Samuel Jack here: Text 1. Add the files to a folder called LocalPackages next to solution 2. Create a file called NuGet.config next to solution file The .nupkg files are stored locally and installed using NuGet Package Manager but I'm getting this error - "Unable to get repository signature information for source https://api.nuget.org/v3-index/repository-signatures/5.0.0/index.json. Response status code does not

How to create Nuget package with nested dependencies

蓝咒 提交于 2021-01-29 15:43:41
问题 I'm working on a .NET Core solution. For one of the projects within the solution, I need to build a Nuget package. Project A has a reference to another project B in the solution, set up as a project reference. Project B has a dependency on a Nuget package C. Now, when I create a Nuget package for A, it includes A.dll and B.dll but not C.dll Can someone help me figure this out? How can I include all 3 .dlls? Thanks, Andy 回答1: See https://github.com/NuGet/Home/issues/3891 for the feature

Xamarin.Cognitive.Face API connecting problems

匆匆过客 提交于 2021-01-29 15:09:46
问题 I tried to use this Nuget package, but I can't connect to the API. I got an error " Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;" so I can't use any of the FaceClient functions- they're all return null. I use Xamarin Android 回答1: I added the line <uses-library android:name="org.apache.http.legacy" android:required="false" /> at the <applicaion> tag in the AndroidManifest.xml file

One specific nuget package is not getting pushed to gitlab

不打扰是莪最后的温柔 提交于 2021-01-29 13:13:25
问题 I am pushing packages to one of my gitlab repositories. All the packages are pushing fine except for one version of one package. I have three versions of the same package And I am giving this as the source to dotnet nuget push command and 2.0.0 and 2.0.1 packages are pushed successfully while 1.0.1 package is never getting pushed. And it does not give any error, it even shows in the command line that it is trying to push all the three folder packages one by one and showed success for all of

Problem with NuGet package lacking compatible references or files - and its simple solution

这一生的挚爱 提交于 2021-01-29 08:47:14
问题 Trying to install a package called BarcodeLib from the NuGet Package manager, but it fails with the following message: Could not install package 'BarcodeLib 2.2.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. From the console: PM> Install-Package BarcodeLib -Version 2.2.1