We build our dotnet artifacts on a TeamCity server and want to include the SqlPackage.CommandLine binaries alongside our build output. Running dotnet add package SqlPackage.CommandLine yields "Could not find any projects in C:\build". Can someone recommend a way to grab the nuget output without adding it to a project?
You can just download the NuGet package directly from nuget.org: curl -O -L https://www.nuget.org/api/v2/package/SqlPackage.CommandLine does the trick and downloads the latest version.
If you need the contents from that package, you can simply unarchive it with zip utils afterwards
Related
I have a solutions called Boost.Core.sln with a single project in it. I want to update the packages in the project using the dotnet CLI.
I can get a list of packages like this:
C:\Users\RedEase\Source\Repos\Boost.Core\Boost.Core>dotnet list Boost.Core.sln package
Project 'Boost.Core' has the following package references
[net5.0]:
Top-level Package Requested Resolved
> Boost.Core.AspNetCore 0.0.1 0.0.1
> Boost.Core.UI 0.0.2 0.0.2
> Boost.Core.Utils 0.0.4 0.0.4
The Boost.Core.AspNetCore project is at version 0.0.10 now. I want to upgrade the project from 0.0.1 to 0.0.10 but it needs to be scripted and I don't know the exact version number I am upgrading to beforehand. I want to do it with the dotnet command line tool and not with nuget.exe directly.
I am trying to do this from an Azure Devops Pipeline.
(I am open to a different direction if needed.) Thanks ahead of time.
https://ardalis.com/how-do-i-update-a-nuget-package-using-dotnet-cli/ says that the dotnet add package command already does that:
dotnet add package Boost.Core.AspNetCore project.csproj
I have a server running centos7 with sqlite3 installed using Yum/rpm. By default the sqlite package is not compiled with the extension JSON1 which I need. The extension can be enabled when the package is compiled using the flag -DSQLITE_ENABLE_JSON1 After working at it for a full day I've managed to find the RPM source files, updated the spec so it compiles with the flag, and recompiled it into a new package. Now I can run rpm -U current-sqlite-package.rpm custom-sqlite-package.rpm and upgrade to my custom package. Both yum and rpm say that the package but when I run /user/bin/sqlite3 --version it is still the old version.
How do I upgrade to my custom package?
How does yum/rpm packages tie to the software in /user/bin?
Current versions of SQLite3 support runtime extension loading. So you can just download and compile the JSON1 extension as a separate .so file and load it via .load ~/path/to/json1.so
This will allow you to receive updates for SQLite via the default package manager and no need to rebuild it yourself.
I am trying to install "CodeDOM Providers for .NET Compiler Platform ("Roslyn")". I have downloaded the command line executable from here : https://dist.nuget.org/index.html
But when I launch it, it opens, writes something and instantly closes.
I do not have time to write any command to install a package.
nuget.exe is a command line application. If you open a command prompt or terminal window and run nuget.exe it will show you help information about supported commands.
The commands for nuget.exe are also documented on the nuget.org web site.
To download a NuGet package using nuget.exe you run:
nuget install PackageId
Replacing the PackageId with the id of the NuGet package you want. In your case it should be something like:
nuget install Microsoft.CodeDom.Providers.DotNetCompilerPlatform
I am testing Asp.net 5 (vnext) in Linux Ubuntu 14.04.3 LTS and I would like to know where is located Nuget cache to properly set local repository in Nuget.Config.
Anyone know?
The global-packages folder is where NuGet installs any downloaded
package. Each package is fully expanded into a subfolder that matches
the package identifier and version number. Projects using the
PackageReference format always use packages directly from this folder.
When using the packages.config, packages are installed to the
global-packages folder, then copied into the project's packages
folder.
Windows: %userprofile%\.nuget\packages
Mac/Linux: ~/.nuget/packages
You can also view global-packages location using below command
dotnet nuget locals global-packages --list
Typical output (Mac/Linux; "user1" is the current username):
info : global-packages: /home/user1/.nuget/packages/
For all folders used by NuGet to manages packages and package information use below command
dotnet nuget locals all --list
For more details
NuGet cache is typically located in ~/.local/share/NuGet/Cache while dnu cache is located in ~/.local/share/dnu/cache.
I am trying to build nginx stable repository by adding some modules that are not included in the official distributions but I discovered that the the makefile does not have any step for creating the .deb files.
So while the build works, building the debs seems to be missing from the source code.