nuget-package

Why “Method not found: 'Void System.Web.Http.HttpResponseException..ctor” after package update?

橙三吉。 提交于 2019-12-21 05:36:07
问题 I have an ASP.NET MVC application which started to misbehave after the last NuGet package updates. The web app uses .NET Framework 4.6.1, and the developer machine is a Windows Server 2012 R2 Essentials. One package I use is Stripe.NET for payment processing. Its earlier versions required only <package id="System.Net.Http" version="4.0.0" targetFramework="net461" /> . Visual Studio marked that there's a newer version of that (at that time it was 4.3.0 ), but when I updated that it pulled in a

Unauthorized nuget package from Visual Studio Team Services using asp.net core rc2

核能气质少年 提交于 2019-12-21 04:21:27
问题 I am unable to install/restore nuget packages from a Visual Studio Team Services feed in an asp.net core web application (RC2). I receive the following: error: Response status code does not indicate success: 401 (Unauthorized). I am running Visual Studio Community 2015 Update 2 and nuget version 3.4.4. I am able to install/restore packages from this feed in other project types. Do I need to do something else to pass my credentials for an asp.net core web app? Steps to reproduce: From Team

What are .NET Platform Extensions on docs.microsoft.com?

我怕爱的太早我们不能终老 提交于 2019-12-21 03:09:46
问题 There is a framework-level navigation element at Microsoft Docs called ".NET Platform Extensions". It contains docs on recently added APIs like System.IO.Pipelines and System.Threading.Channels for example, as well as a whole bunch of other APIs, including the not-so-recent ones. Some APIs from this collection are available as nuget packages (for both .Net Core and .Net Framework), but others are not seemingly available. Also, as of now, there is no nuget package called ".NET Platform

declaring nuget packages that depend on each other in one solution

拜拜、爱过 提交于 2019-12-20 18:15:10
问题 We have solution with a lot of projects and a more or less complex dependency graph between those projects. Now each of those projects should become its own nuget package and the dependency graph of the nuget packages should mirror the on of the projects. I have two questions: Is it possible to achieve this while keeping all projects within the same solution? If so how? Is advisable to keep all projects in the same solution? What would be the a common / "best practice" approach to this? 回答1:

declaring nuget packages that depend on each other in one solution

ぃ、小莉子 提交于 2019-12-20 18:15:02
问题 We have solution with a lot of projects and a more or less complex dependency graph between those projects. Now each of those projects should become its own nuget package and the dependency graph of the nuget packages should mirror the on of the projects. I have two questions: Is it possible to achieve this while keeping all projects within the same solution? If so how? Is advisable to keep all projects in the same solution? What would be the a common / "best practice" approach to this? 回答1:

ASP.NET MVC 3 - Issues with microsoft-web-helpers v1.1

帅比萌擦擦* 提交于 2019-12-20 12:08:29
问题 I upgraded my microsof-web-helpers package from nuget and it itself depends on facebook and twitter APIs. Now when my app attempts to run I get the following error: Compiler Error Message: CS0246: The type or namespace name 'SimpleMembershipProvider' could not be found (are you missing a using directive or an assembly reference?) Source Error: Line 216: } Line 217: Line 218: private static SimpleMembershipProvider GetMembershipProvider() { Line 219: var provider = Membership.Provider as

C# Using Microsoft.Toolkit.Win32.UI.Controls in .NET Framework 4.6.1 - Web Browser Control Upgrade

馋奶兔 提交于 2019-12-20 02:50:09
问题 My program has been using the Web Browser Control for a while in my program, but it simply does not cut it anymore as it isn't able to work properly with the javascript on most webpages. Luckily, Microsoft has released a new web browser tool for us to use and it uses EdgeHTML powered webview. The nugget package installer here does not work in my program, however. When I run that in the package manager console, I get this error Install failed. Rolling back... Package 'Microsoft.Toolkit.Win32

overwrite nuget packages in feed on visual studio team services

孤人 提交于 2019-12-19 16:35:52
问题 while using nuget.exe push \\share\Packages\*.nupkg -Source "https://myvsts.pkgs.visualstudio.com/_packaging/tcpcm/nuget/v3/index.json" -ApiKey VSTS i got an Response status code does not indicate success: 409 (Conflict). error is there a way to overwrite all packages that have already been uploaded? 回答1: is there a way to overwrite all packages that have already been uploaded? The simple answer is No. Jonathan Myers`s answer pointed out the correct document: Understand immutability of

Can we add 2 different versions of same package in NuGet

落爺英雄遲暮 提交于 2019-12-19 12:52:52
问题 Is it possible to have 2 different versions of the same NuGet package (in my case its jQuery 1.10.1 & 2.0.2) within same project? If yes, how can we do that? Thanks 回答1: The short answer is no. Check out NuGet issue Allow side-by-side versions of jQuery (and others). It was closed by Phil Haack ( NuGet contributor) with message "won't fix". The recommended workaround by Phil Haack is You've hit the boundaries of NuGet. Just reference one of them using a CDN or manually add the script files.

How do I include contract assemblies in the nupkg automatically?

空扰寡人 提交于 2019-12-19 09:46:20
问题 I just started using nuget to create some packages for an internal library in our company. This library is comprised of many assemblies, and a lot of them have contract reference assemblies generated from Code Contracts. I'm using the most straightforward nuget pack approach, which is to pass in the csproj file paths and let it resolve all dependencies between projects. The problem is that it does not include the contract assemblies in the lib folder. Is there a way to make it also get the