nuget

The source at nuget.org is unreachable?

岁酱吖の 提交于 2021-01-28 11:39:32
问题 I'm trying to install SignalR in my C# project, but all I get when running install-package Microsoft.AspNet.SignalR is: The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to NuGet Local Cache(...) At line:1 char:1 + install-package Microsoft.AspNet.SignalR + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands

nuget dll is used by another process

心已入冬 提交于 2021-01-28 08:23:05
问题 I have the error from below and I'm quite out of ideas how to solve it. Tried the following until now: Clean bin/obj/packages/packages cache Remove manually from csproj and packages files the package and add it afterwards..still error Update Visual Studio 2017 Reinstall Visual Studio 2017 Trace which processes are using a file with name that contains Newtonsoft Copy the solution from another laptop where the builds works just fine Yet, after all from above, I still get: Error NuGet Package

NuGet package install fails “Package restore failed. Rolling back package changes for <xamarin.android>”

冷暖自知 提交于 2021-01-28 08:03:26
问题 Installing any package fails with this error, updating packages also creates this error. Clearing the NuGet cache files causes this error to change to "access to the path mono.cecil.dll is denied" when trying to install "Xamarin.GooglePlayServices.Ads". Restarting visual studio causes the package restore error to come back. Versions: OS: win 10 Visual Studio Information: https://pastebin.com/vnuyZMWk Xamarin.Forms Project: Target framework: .NET 2.0 Xamarin.Android project: Minimum Android

Best practice for using Source Link

爱⌒轻易说出口 提交于 2021-01-28 05:08:12
问题 I am trying to implement Source Link in a NuGet package. I have successfully implemented the instructions in the GitHub README (https://github.com/dotnet/sourcelink), but am confused about which artifacts to upload to our NuGet package source (MyGet). It seems that two artifacts are generated; a .nupkg and .snupkg file. MyGet returns a 409 response when I attempt to upload both to the same feed. So, what is the best practice for using Source Link? Is it to use a separate feed for the .snupkg

VS2015 NuGet install error with SSL/TLS

不想你离开。 提交于 2021-01-28 05:06:46
问题 Attempting to gather dependencies information for package 'Unity.3.5.1404' with respect to project 'Web', targeting '.NETFramework,Version=v4.5.2' Attempting to resolve dependencies for package 'Unity.3.5.1404' with DependencyBehavior 'Lowest' Resolving actions to install package 'Unity.3.5.1404' Resolved actions to install package 'Unity.3.5.1404' System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The request was aborted: Could

Latest version of nuget package still not up to date

孤人 提交于 2021-01-28 05:02:44
问题 We are using our own nuget server on the local network. I've got a dotnet standard 2.0 library which I'm packaging via nuget. Currently it's at 1.0.5.4 (both File version and Assembly version). However when I install it in another solution it's missing a property that I added in the latest version increment. When I F12 on a class of that nuget it reads at the top: #region Assembly lib-mycode-async, Version=1.0.5.1, Culture=neutral, PublicKeyToken=null // C:\Users\{Username}\.nuget\packages

How to specify credentials for external nuget feeds in VSTS nuget restore

末鹿安然 提交于 2021-01-28 03:30:37
问题 I'm using the built in nuget task in VSTS to do a package restore. Our feed is hosted on an internal Artifactory server, and is referenced as a package source in my nuget.config. I'm then using a nuget service endpoint in VSTS to store the credentials to access that feed. But when I run the build I get the following in the build log, and every request to the nuget feed results in a 401 Unauthorized. CredentialProvider.TeamBuild: URI Prefixes: CredentialProvider.TeamBuild: https://ukipo

How to specify credentials for external nuget feeds in VSTS nuget restore

为君一笑 提交于 2021-01-28 02:17:02
问题 I'm using the built in nuget task in VSTS to do a package restore. Our feed is hosted on an internal Artifactory server, and is referenced as a package source in my nuget.config. I'm then using a nuget service endpoint in VSTS to store the credentials to access that feed. But when I run the build I get the following in the build log, and every request to the nuget feed results in a 401 Unauthorized. CredentialProvider.TeamBuild: URI Prefixes: CredentialProvider.TeamBuild: https://ukipo

如何在 Blazor WebAssembly中 使用 功能开关

邮差的信 提交于 2021-01-27 22:39:57
微软Azure 团队开发的 功能管理 (Feature Management) 包 Microsoft.FeatureManagement可用于实现 功能开关,可以通过 功能开关 特性动态的改变应用程序的行为而不需要改变任何的业务逻辑代码。关于功能开关的更多功能请看Edi Wang的B站视频,长按小程序码进入观看 这篇文章的重点是介绍如何在Blazor WebAssembly项目中实现功能开关。 通过 NuGet 安装 Microsoft.FeatureManagement ,可通过 Visual Studio 2019 下的 NuGet Package Manager 可视化管理界面 或者 通过 .NET CLI 命令行工具输入如下命令。 dotnet add package Microsoft.FeatureManagement 为了能够在项目中用上 功能管理 ,需要在 ConfigureServices 方法下进行 service 注入,如下代码所示: 有一点要注意: 功能管理 中的 功能开关 读取的值来自于配置文件,如果你想让 功能开关 的值来源于 Configuration 文件的不同节点,必须在 service 注册时单独指定一下。 为了能够在 Blazor Wassembly中用上 功能管理(feature management) ,需要通过依赖注入的方式将其注入到

Local nuget server: 405 Method not allowed

寵の児 提交于 2021-01-27 21:59:24
问题 I've configured a local nuget server as described here: http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds I can browse to it and look at the feed. But I can not publish packages to it. I just get error 405 all the time. I've made sure that the App Pool account has Change privileges for the Packages folder. My config: <appSettings> <add key="requireApiKey" value="true" /> <add key="apiKey" value="XXXXX" /> <add key="packagesPath" value="c:\projects\nuget\Packages" /> <