Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to specify commit and branch in csproj for nuget package creation

$
0
0

So currently you could configure the branch and commit a .nuspec (see reference):

<repository type="git" 
            url="https://github.com/NuGet/NuGet.Client.git" 
            branch="dev" 
            commit="e1c65e4524cd70ee6e22abe33e6cb6ec73938cb3" />

But how could we configure that from the SDK-style .csproj files? Currently I have the type and url:

<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/NLog/NLog.git</RepositoryUrl>

and I can't find the correct elements or attributes for "branch" and "commit". It's also not on this page: MSDN - Additions to the csproj format for .NET Core.

So how could I configure the branch and commit when creating nuget packages from a sdk-style csproj?


Viewing all articles
Browse latest Browse all 3067

Trending Articles