nuget

Nuget update on build

爱⌒轻易说出口 提交于 2021-02-10 16:11:36
问题 I'm having difficulties getting my project to update our in-house nuget packages on a rebuild. We have several core reference libraries that we need to be current every time a project that depends on it is built. I'm using visual studio 2017 and nuget 4.7.1 I've converted the project in question to use the package reference method instead of package.config but the details it's generating in the project file are different to what the tutorials say. Here's what I've got in my project file:

Nuget Issue - 404 for all packages

落花浮王杯 提交于 2021-02-10 15:40:22
问题 I have been having some troubles with the nuget package manager. Firstly, I was suddenly unable to search nuget. If I tried to install something through the packet manager console, I would get the following error PM> Install-Package Microsoft.Bcl.Async Install-Package : The ServicePointManager does not support proxies with the https scheme. At line:1 char:16 + Install-Package <<<< Microsoft.Bcl.Async + CategoryInfo : NotSpecified: (:) [Install-Package], NotSupportedException +

How to multitarget in Xamarin.Forms with Visual Studio for Mac?

别等时光非礼了梦想. 提交于 2021-02-10 14:40:27
问题 I started out creating a .NET Standard Library that I intended to make a NuGet of - but came to find that I also needed platform-specific functionality. So, I found this stack overflow question - which indicated I could use a Multiplatform Library template instead. But here I encountered a problem with DependencyService - and a problem with Custom Renderer - effectively meaning that there was no way for the non-platform-specific to communicate with platform-specific code in the library. I

How to multitarget in Xamarin.Forms with Visual Studio for Mac?

陌路散爱 提交于 2021-02-10 14:38:39
问题 I started out creating a .NET Standard Library that I intended to make a NuGet of - but came to find that I also needed platform-specific functionality. So, I found this stack overflow question - which indicated I could use a Multiplatform Library template instead. But here I encountered a problem with DependencyService - and a problem with Custom Renderer - effectively meaning that there was no way for the non-platform-specific to communicate with platform-specific code in the library. I

Why does MSTest.TestAdapter adds its DLLs into my NuGet package?

偶尔善良 提交于 2021-02-10 07:54:55
问题 I have NuGet package with some custom testing utilities. It's project is referencing MSTest.TestFramework and MSTest.TestAdapter NuGet packages, and corresponding dependencies are specified in nuspec file. Files section only specifies pdb file of project itself to be added. Yet, I'm constantly getting DLLs related to MSTest.TestAdapter in content folder of NuGet package. Why does this happen? I can't figure out by the documentation. Can I somehow configure dependencies to not include any

How to use Add-Migration if the project contains multiple folders

佐手、 提交于 2021-02-10 06:17:15
问题 I would like to Add-Migration with my DbContext, but I get Error: The term 'add-migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Is the problem related with folder structure? The customized User.cs, Role.cs and the Startup.cs are in different folders. The Entity Framework is included in the DbContext project file. How do I fix this? 回答1: Is the problem related with folder structure? This issue is not about the folder structure .It's about the

.NETStandard multi-targeting library packages do not get restored when building

こ雲淡風輕ζ 提交于 2021-02-10 05:44:15
问题 Background: I have created a multi-targeting library that targets net40 , net462 , and netstandard2.0 . The purpose of this library is to wrap StackExchange.Redis and some related reconnect logic. For net40 I need to use an older version of the package than the newer targets. Here is my csproj file: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFrameworks>net40;net462;netstandard2.0</TargetFrameworks> </PropertyGroup> <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">

In VS2019 nuget doesn't consider referenced projects as lib, but as nuget packages

♀尐吖头ヾ 提交于 2021-02-10 03:23:58
问题 I'm using VS2019 community edition. I have two .net core projects X, Y, X is referencing Y, and I want to package X as a Nuget package, I'm using the package feature in VS2019. when I try to add X's Nuget package in another project it searches for Y as a Nuget package and not as DLL should be in X. How can I change this so Y will be added as DLL in X's package? I tried to add the following to X's project (.csproj): <PropertyGroup> <TargetsForTfmSpecificBuildOutput>$

In VS2019 nuget doesn't consider referenced projects as lib, but as nuget packages

二次信任 提交于 2021-02-10 03:23:37
问题 I'm using VS2019 community edition. I have two .net core projects X, Y, X is referencing Y, and I want to package X as a Nuget package, I'm using the package feature in VS2019. when I try to add X's Nuget package in another project it searches for Y as a Nuget package and not as DLL should be in X. How can I change this so Y will be added as DLL in X's package? I tried to add the following to X's project (.csproj): <PropertyGroup> <TargetsForTfmSpecificBuildOutput>$

In VS2019 nuget doesn't consider referenced projects as lib, but as nuget packages

℡╲_俬逩灬. 提交于 2021-02-10 03:18:17
问题 I'm using VS2019 community edition. I have two .net core projects X, Y, X is referencing Y, and I want to package X as a Nuget package, I'm using the package feature in VS2019. when I try to add X's Nuget package in another project it searches for Y as a Nuget package and not as DLL should be in X. How can I change this so Y will be added as DLL in X's package? I tried to add the following to X's project (.csproj): <PropertyGroup> <TargetsForTfmSpecificBuildOutput>$