nuget

Dependency Issues with Docusign.Esign.dll's inherit RestSharp Dependency

半腔热情 提交于 2020-05-31 04:03:07
问题 I am working with a solution in visual studio that has multiple projects in it. One area of the project requires RestSharp 106.10.1, and in another project (that it needs to talk to) we have the Docuign.ESign.dll that has RestSharp 106.3.1 as an interior dependency. When trying to run the project with the Docusing dll, we get a run time error of "Could not load file or assembly 'RestSharp, Version=106.3.1.0, Culture=neutral, PublicKeyToken=598062e77f915f75'. The system cannot find the file

How to set dependencies when I use .NET Standard 2.0 DLL libraries with a .NET Framework console application?

夙愿已清 提交于 2020-05-28 12:58:27
问题 I can't figure out how should I set up dependencies (where to add EntityFramework nuget packages) in this scenario: Core.Persistence project which compiles to .NET Standard 2.0 DLL library. I have Entity Framework 6, database entity classes for EF, DbContext etc. It is supposed to depend just on EntityFrameworkCore . Core.Domain project which also compiles to .NET Standard 2.0 DLL library. I want to put my business object POCO classes here. This is supposed to have no dependencies. Core

artifacts-credprovider and VSS_NUGET_EXTERNAL_FEED_ENDPOINTS with Docker

删除回忆录丶 提交于 2020-05-28 04:40:46
问题 Maybe you could help me with authentication with private NuGet feed, I already spend a day for different solutions and notice this repo, but I'm still struggling to make it done. I'm using below Dockerfile with different variations, but I'm getting Unauthorized each time FROM microsoft/dotnet:2.2-sdk AS build ARG VSS_NUGET_EXTERNAL_FEED_ENDPOINTS WORKDIR /api #ENV VSS_NUGET_EXTERNAL_FEED_ENDPOINTS={"endpointCredentials":[{"endpoint":"https://name.pkgs.visualstudio.com/_packaging/Feed/nuget/v3

How to “dotnet pack” an already compiled project

笑着哭i 提交于 2020-05-27 07:47:39
问题 I'm trying to design a build script for a dotnet core 2.0 project that does the following actions Cleans output directories Builds Solution with -o bin\Publish Runs Unit Tests with dotnet vstest Creates a Nuget package with dotnet pack Because I know the source code has been built and tested in steps 1-3 I do not want to rebuild my code for the nuget package, so I am specifying --no-build and --no-restore The difficulty I'm having is that when creating the package, because I am not building

How to “dotnet pack” an already compiled project

吃可爱长大的小学妹 提交于 2020-05-27 07:47:34
问题 I'm trying to design a build script for a dotnet core 2.0 project that does the following actions Cleans output directories Builds Solution with -o bin\Publish Runs Unit Tests with dotnet vstest Creates a Nuget package with dotnet pack Because I know the source code has been built and tested in steps 1-3 I do not want to rebuild my code for the nuget package, so I am specifying --no-build and --no-restore The difficulty I'm having is that when creating the package, because I am not building

Can't update or install package: An item with the same key has already been added

纵然是瞬间 提交于 2020-05-26 10:49:47
问题 Problem In a particular project, I can't update or install any NuGet packages. When I try to do so using the NuGet GUI, it does some work and then stops without saying anything. When I try to do so using the package manager console, I get this output: PM> Update-Package –reinstall EntityFramework Attempting to gather dependencies information for multiple packages with respect to project 'SmartCentre', targeting '.NETFramework,Version=v4.5.2' Update-Package : An item with the same key has

Package Manager console not working

笑着哭i 提交于 2020-05-26 10:14:05
问题 According to this http://docs.nuget.org/docs/start-here/using-the-package-manager-console I should see the PM prompt and commands like get-packages should work. With my VS2010 the Package Manager Console prompt says PS E:\myprojectfolder and none of the commands work - it issues an error saying: PS E:\project> get-package -ListAvailable The term 'get-package' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was

NuGet: Necessary to reference implicit dependencies?

杀马特。学长 韩版系。学妹 提交于 2020-05-23 13:32:12
问题 I recently upgraded from ASP.NET Core 2.2. to 3.0. With the changes regarding their meta packages, I'm now in a state where everything works, but some pretty important packages are not explicitly referenced. Everything works because, they're implicitly referenced. For example: You can see that I'm explicitly referencing Microsoft.EntityFrameworkCore.SqlServer, however I am NOT referencing Microsoft.EntityFrameworkCore explicitly. It's still pulled in because it's an indirect reference it

NuGet: Necessary to reference implicit dependencies?

岁酱吖の 提交于 2020-05-23 13:31:30
问题 I recently upgraded from ASP.NET Core 2.2. to 3.0. With the changes regarding their meta packages, I'm now in a state where everything works, but some pretty important packages are not explicitly referenced. Everything works because, they're implicitly referenced. For example: You can see that I'm explicitly referencing Microsoft.EntityFrameworkCore.SqlServer, however I am NOT referencing Microsoft.EntityFrameworkCore explicitly. It's still pulled in because it's an indirect reference it

Dotnet build fails: NuGet behind a proxy in Linux

青春壹個敷衍的年華 提交于 2020-05-16 07:50:27
问题 This might seem to be a similar issue but on CentOS. I have already tried all the solution on this as well as on other threads, however I still get the below error /usr/share/dotnet/sdk/3.1.201/NuGet.targets(124,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/Build/_Base/Main/Main.csproj] /usr/share/dotnet/sdk/3.1.201/NuGet.targets(124,5): error : Response status code does not indicate success: 407 (Proxy Authentication Required). [/Build/_Base