nuget

Nuget copy and add files to solution level

帅比萌擦擦* 提交于 2021-02-07 06:47:28
问题 I want to create a NUGET package that adds several files to a certain solution folder. Specifically, the package must, on installation, do the following: Create a temp folder in the target project. Copy all the files matching an extension (say *.txt) to the temp folder. Move the files to Solution root. Create a Solution folder named "Solution Items". Add all the files just moved to that solution folder. Remove the temp folder from both solution and disk. I use the package.nuspec file to

Can I upload existing NuGet packages to an Azure DevOps artifacts feed?

▼魔方 西西 提交于 2021-02-07 03:24:35
问题 I'm currently migrating from TFS 2012 to Azure DevOps 2019 (both on-premise). With the old server, I would manually create NuGet packages from some of our builds, and host these .nupkg files on a file share (configured as a package source in Visual Studio). With DevOps, I can obviously automate all of this and push the packages straight into an artifact feed. The old server needs to be decommissioned, so I would like to move the existing .nupkg files out of the file share into the new

Can I upload existing NuGet packages to an Azure DevOps artifacts feed?

依然范特西╮ 提交于 2021-02-07 03:23:37
问题 I'm currently migrating from TFS 2012 to Azure DevOps 2019 (both on-premise). With the old server, I would manually create NuGet packages from some of our builds, and host these .nupkg files on a file share (configured as a package source in Visual Studio). With DevOps, I can obviously automate all of this and push the packages straight into an artifact feed. The old server needs to be decommissioned, so I would like to move the existing .nupkg files out of the file share into the new

.NETPlatform vs .NETStandard

假装没事ソ 提交于 2021-02-07 02:53:42
问题 I'm really confused about the terminology around the platforms in .NET these days - I used to understand it up until we had the PCLs. I found the following documents: .NET Platform Standard .NET Standard Library For starters, the first document refers to the conceptual platform with the moniker "netstandard" as ".NET Platform Standard". The latter calls it ".NET Standard" (at the same time it introduces a new ".NET Standard Library"). I don't really get why the first document has a disclaimer

.NETPlatform vs .NETStandard

帅比萌擦擦* 提交于 2021-02-07 02:52:12
问题 I'm really confused about the terminology around the platforms in .NET these days - I used to understand it up until we had the PCLs. I found the following documents: .NET Platform Standard .NET Standard Library For starters, the first document refers to the conceptual platform with the moniker "netstandard" as ".NET Platform Standard". The latter calls it ".NET Standard" (at the same time it introduces a new ".NET Standard Library"). I don't really get why the first document has a disclaimer

Publishing and Consuming GitHub Package Repository with NuGet: Unable to load the service index error

故事扮演 提交于 2021-02-07 02:42:36
问题 I'm trying to push and then consume a NuGet package using GitHub packages (documentation here). As a newcomer, after experimenting a bit I managed to push a sample NuGet package to a public GitHub repository. Yet, I'm missing the final part, i.e. consume the package from some Visual Studio project. When I try to add the package, I first get a "Restoring packages for..." notification, and then the error "Unable to load the service index for source... : The input is not a valid Base-64 string

How do I deploy nuget packages in Travis CI?

无人久伴 提交于 2021-02-06 10:21:36
问题 I have a nuget package that runs Travis CI for its builds. Here is my yml: language: csharp solution: TreasureGen.sln install: - nuget restore TreasureGen.sln - nuget install NUnit.Runners -OutputDirectory testrunner script: - xbuild TreasureGen.sln /p:TargetFrameworkVersion="v4.5" /p:Configuration=Stress - mono ./testrunner/NUnit.ConsoleRunner.*/tools/nunit3-console.exe ./TreasureGen.Tests.Unit/bin/Stress/TreasureGen.Tests.Unit.dll - mono ./testrunner/NUnit.ConsoleRunner.*/tools/nunit3

The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain

浪尽此生 提交于 2021-02-05 20:40:49
问题 While doing a docker build on my .NET Core project, I got the following error on all my NuGets: 80.19 /app/GradingTool.Tests/GradingTool.Tests.csproj : error NU3028: Package 'Microsoft.EntityFrameworkCore 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain [/app/GradingTool.sln] #12 80.20 /app/GradingTool.Tests/GradingTool.Tests.csproj : error NU3037:

how to get all nuget dependencies for offline installation

走远了吗. 提交于 2021-02-05 20:29:22
问题 I two computers, one with internet connection and the other one without. I want to install a Nuget package (Nuget.server) with all its dependencies on the offline computer. Unfortunately it is not possible just to download the package itself and I have to download all dependencies manually and there are dozens of them. How can I create a package on the computer with internet connection that contains all dependencies? Thanks. 回答1: On the computer with internet access the NuGet packages (.nupkg

NuGet package contentFiles artifacts installed as links in ASP.NET Core MVC project

耗尽温柔 提交于 2021-02-05 07:59:05
问题 We have an internal JavaScript library that we'd like to share between multiple projects. Actually we are already sharing it via file copying, but this has (predictably) resulted in multiple forks of the code. The consuming projects are a mix of "full" ASP.NET (MVC and Web Forms) and ASP.NET Core MVC. (I'm planning on creating two separate packages.) Installing into ASP.NET projects seems to work fine, but I'm having problems with ASP.NET Core. Initially I had all the artifacts within a files