nuget-package

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance) does not add extra encoding providers

北城余情 提交于 2020-03-19 05:18:17
问题 I am developing a netcoreapp2.0 console application and I need access to the whole encoding package from .NET. I have already added the System.Text.Encoding.CodePages Version=4.4.0 Nuget package from this page to my project and cleaned/restored the project several time. However I can't get the extra encoding I need. The following code: Console.WriteLine(Encoding.GetEncodings().Length); Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); Console.WriteLine(Encoding.GetEncodings()

Unable to push nuGet packages to GitLab with dotnet CLI due to Unauthorized error

蹲街弑〆低调 提交于 2020-03-03 10:01:49
问题 GitLab now supports nuget public and private feed repository. I've got a public project (e.g: https://gitlab.com/sunnyatticsoftware/sasw-test-support) I create an access token for my user with api and write_repository (e.g: AAABBBCCCDDD) I create a group variable in my CI/CD: SASW_API_ACCESS_TOKEN : AAABBBCCCDDD . All normal. Then I create the multi stage CI/CD script to build, pack and publish. When attempting to publish the nuGet package with the following: dotnet nuget push **/*.nupkg -

Unable to push nuGet packages to GitLab with dotnet CLI due to Unauthorized error

*爱你&永不变心* 提交于 2020-03-03 10:01:40
问题 GitLab now supports nuget public and private feed repository. I've got a public project (e.g: https://gitlab.com/sunnyatticsoftware/sasw-test-support) I create an access token for my user with api and write_repository (e.g: AAABBBCCCDDD) I create a group variable in my CI/CD: SASW_API_ACCESS_TOKEN : AAABBBCCCDDD . All normal. Then I create the multi stage CI/CD script to build, pack and publish. When attempting to publish the nuGet package with the following: dotnet nuget push **/*.nupkg -

How to call an API which is based on XML-RPC specification in C#?

|▌冷眼眸甩不掉的悲伤 提交于 2020-02-14 22:55:48
问题 Here is my sample request, <?xml version=”1.0” encoding=”UTF-8”?> <methodCall> <methodName>login</methodName> <params> <param> <value> <struct> <member> <name>password</name> <value><string>XXXXXXXXXX</string></value> </member> <member> <name>username</name> <value><string>XXXX@XXX.com</string></value> </member> </struct> </value> </param> </params> </methodCall> Here is my sample successful response for the request: <struct> <member> <name>id</name> <value><string>12345</string></value> <

.NET Core NuGet Package for Microsoft.TeamFoundationServer.ExtendedClient

落爺英雄遲暮 提交于 2020-02-06 10:01:52
问题 I am working on creating an API that fetches information about work items like Title, Iteration information etc from TFS. I installed the NuGet package Microsoft.TeamFoundationServer.ExtendedClient for .NET Framework in a project and I was able to do this. But, I would like to use a .NET Core project. When I went ahead and installed this in my .NET Core project, it shows up a yellow triangle in Dependencies as warning and I am not able to use the namespace Microsoft.TeamFoundationServer

could not install package Facebook 6.4.2

末鹿安然 提交于 2020-02-03 05:15:27
问题 I'm trying to install facebook C# sdk from NuGet Console into my windows phone 8 app, .NET framework 4.0 But it's giving an error! Details is give below : PM> Install-Package Facebook Successfully installed 'Facebook 6.4.2'. Successfully uninstalled 'Facebook 6.4.2'. Install failed. Rolling back... Install-Package : Could not install package 'Facebook 6.4.2'. You are trying to install this package into a project that targets 'WindowsPhone,Version=v8.0', but the package does not contain any

Setting linkage type for C++ library installed via Nuget

允我心安 提交于 2020-02-02 05:26:46
问题 This answer mentions the following method to link to the static version of a C++ library [in this case, "freeglut"] installed via Nuget: Project->Properties->Configuration Properties->Referenced Packages->freeglut->Linkage (select static) With Visual Studio 2015 I can't find "Referenced Packages". The only explicit reference to Nuget packages that I have is the packages.config xml file. If I go to the "Manage Nuget packages" section of the project I can install or un-install but I can't find

Setting an environment variable in a NuGet.Config file

╄→гoц情女王★ 提交于 2020-01-30 06:29:39
问题 I have a situation where I want to set the repositoryPath variable of the NuGet.config file to a location relative to the current user's machine. The goal is to have a location where all of the NuGet packages get placed, so that: They are not located in the solution folder for each of our team projects (ie. /Solution/packages/*) They are shared across many projects, so that only one copy of that package needs to be installed on the machine. Ideally, I would like to use a path with an

Push NuGet package programmatically using NuGet.Core

白昼怎懂夜的黑 提交于 2020-01-22 14:17:32
问题 I'm currently packaging some files and pushing them on to a NuGet feed on one of our servers using the command line tool. Rather than using the command line tool I've set up a project using Nuget.Core and successfully managed to create a package. I'm now trying to push that package from my machine on to the NuGet feed via NuGet.Core. Using the command line tool that looks like this (and I got this working too): nuget.exe push package.nupkg -ApiKey MYAPIKEY -Source http:/

NuGet package files not being copied to project content during build

泪湿孤枕 提交于 2020-01-22 07:20:11
问题 I am building an MVC4 web application with VS2012 professional with NuGet Package Manager version 2.2.31210. I have multiple projects in my solution, all sharing various packages I installed using NuGet. One of my projects is an MVC4 web application where I am using packages such as bootstrap, jquery UI, etc, all installed using NuGet. When I clone a fresh copy of my entire solution from my repository and build my MVC4 project, the package restore feature seems to be working: it creates the