nuget

Default package source for Nuget defaulting to newly added source and not All or nuget.org

冷暖自知 提交于 2020-07-05 07:03:26
问题 I added a nuget 'Package source' to Visual Studio since we have an internal server at work. Visual Studio now always defaults to my internal server and cannot find most of our nuget packages until I switch the package source to All or nuget.org This is a minor inconvience, but for the past few weeks I have been doing many more clicks every time I need to work with the nuget package manager. Can anyone tell me how to default All instead of having it always default to Internal nuget ? 回答1: Can

Including referenced project DLLs in nuget package [.Net Core RC3 *.csproj file]

隐身守侯 提交于 2020-06-25 10:19:18
问题 I have a solution with two projects in it. First project is called Library1, which references project two called Referencelibrary. I am trying to embed the DLLs for ReferenceLibrary inside Library1's nuget package so that I don't have to publish 2 separate nuget packages. I've been able to embed ReferenceLibrary's DLL into the nuget package (so it seems) by adding the entries below into my csproj file: <ItemGroup> <ProjectReference Include="..\ReferenceLibrary\ReferenceLibrary.csproj">

Including referenced project DLLs in nuget package [.Net Core RC3 *.csproj file]

孤人 提交于 2020-06-25 10:19:11
问题 I have a solution with two projects in it. First project is called Library1, which references project two called Referencelibrary. I am trying to embed the DLLs for ReferenceLibrary inside Library1's nuget package so that I don't have to publish 2 separate nuget packages. I've been able to embed ReferenceLibrary's DLL into the nuget package (so it seems) by adding the entries below into my csproj file: <ItemGroup> <ProjectReference Include="..\ReferenceLibrary\ReferenceLibrary.csproj">

Push a NuGet package to VSTS with .NET CLI

为君一笑 提交于 2020-06-25 01:26:07
问题 I'm trying to publish a NuGet package to a private VSTS feed. I'd like to achieve that using only .NET CLI and without creating or modifying a nuget.config file. I've tried to do: dotnet nuget push <PackageName> --source https://XXX.pkgs.visualstudio.com/_packaging/YYY/nuget/v3/index.json --api-key <VSTS UserName>:<PersonalAccessToken> I get: error: Unable to load the service index for source https://XXX.pkgs.visualstudio.com/_packaging/YYY/nuget/v3/index.json. error: Response status code

How to upgrade NuGet with Visual Studio 2017?

社会主义新天地 提交于 2020-06-23 08:10:20
问题 I'm getting a build error that I need to upgrade NuGet: The 'Microsoft.NETCore.Platforms 1.1.0' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60318.667'. From what I've found online, within VS, I'm supposed to go to Tools > Extensions and Updates. And I'm supposed to see an option to upgrade NuGet within the Updates tab. As you can see, that option isn't there: My solution has a .nuget folder, and it has NuGet.exe in it, which has a version of 2

Is there a way to “install” nuget package like the way Visual Studio does, but on a deployment server

六月ゝ 毕业季﹏ 提交于 2020-06-17 12:53:07
问题 Background: I am reasonably new to packaging and publishing nuget. Long story short, I have a C# project (Let's call it MYAPI project) which depends on a bunch of other nuget packages. Some consumers of MYAPI, expect to reference it as a nuget package and deal with their products' deployment on their own, while some other consumers expect MYAPI dlls to be installed in specific folders from where they will pick it up at runtime. So I have packaged MYAPI as a nuget and published it onto an

No connection string named 'ConnectionString' could be found in the application config file (EF parameterless constructor )

∥☆過路亽.° 提交于 2020-06-17 00:50:53
问题 When I create a new Dev Express XAF application using the wizard 20.1.3 for .netcore3.1 the code works fine. I can enable migrations and run a migration without problems. (Or so I thought ... see below) However for certain reasons (my legacy call run-migrations code) I want to provide the connection string location to the constructor When I do this, and try to add a migratiion I get an error The DbContext is set up as using System; using System.Data.Entity; using System.Data.Common; using

No connection string named 'ConnectionString' could be found in the application config file (EF parameterless constructor )

天涯浪子 提交于 2020-06-17 00:49:31
问题 When I create a new Dev Express XAF application using the wizard 20.1.3 for .netcore3.1 the code works fine. I can enable migrations and run a migration without problems. (Or so I thought ... see below) However for certain reasons (my legacy call run-migrations code) I want to provide the connection string location to the constructor When I do this, and try to add a migratiion I get an error The DbContext is set up as using System; using System.Data.Entity; using System.Data.Common; using

Shipping msbuild task as nuget

僤鯓⒐⒋嵵緔 提交于 2020-05-31 06:08:09
问题 I need your help. I'm developing an msbuild task that performs certain actions upon msbuild. I want my users to be able to download and install a nuget package and once the package is installed the build task will be part of the build process. I know how to release a nuget package and i know how to includes a custom targets file together with the nuget, what i don't know is how to add the import statement to the csproj upon nuget installation: Is there a way to do so or am i asking for too

Shipping msbuild task as nuget

萝らか妹 提交于 2020-05-31 06:08:07
问题 I need your help. I'm developing an msbuild task that performs certain actions upon msbuild. I want my users to be able to download and install a nuget package and once the package is installed the build task will be part of the build process. I know how to release a nuget package and i know how to includes a custom targets file together with the nuget, what i don't know is how to add the import statement to the csproj upon nuget installation: Is there a way to do so or am i asking for too