Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2872 - added README.md file to nuget package #2873

Merged
merged 1 commit into from
Oct 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,10 @@ from The Noun Project.
[semver]: http://semver.org
[gitter]: https://gitter.im/GitTools/GitVersion?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[gitter-badge]: https://badges.gitter.im/Join+Chat.svg
[appveyor]: https://ci.appveyor.com/project/GitTools/gitversion/branch/main
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/sxje0wht0cscmn7w/branch/main?svg=true
[azure-pipeline]: https://dev.azure.com/GitTools/GitVersion/_build/latest?definitionId=1
[azure-pipeline-badge]: https://dev.azure.com/GitTools/GitVersion/_apis/build/status/GitTools.GitVersion
[github-actions]: https://github.com/GitTools/GitVersion/actions
[github-actions-badge]: https://github.com/GitTools/GitVersion/workflows/Build/badge.svg
[travis]: https://travis-ci.org/GitTools/GitVersion
[travis-badge]: https://travis-ci.org/GitTools/GitVersion.svg?branch=main
[codecov]: https://codecov.io/gh/GitTools/GitVersion
[codecov-badge]: https://codecov.io/gh/GitTools/GitVersion/branch/main/graph/badge.svg
[docs]: https://gitversion.net/docs/
Expand Down
1 change: 1 addition & 0 deletions build/build/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public void Configure(IServiceCollection services)

services.UseWorkingDirectory(Extensions.GetRootDirectory());

services.UseTool(new Uri("nuget:?package=NuGet.CommandLine&version=5.11.0"));
services.UseTool(new Uri("dotnet:?package=Codecov.Tool&version=1.13.0"));
services.UseTool(new Uri("dotnet:?package=GitVersion.Tool&version=5.6.11"));
}
Expand Down
1 change: 1 addition & 0 deletions build/build/Tasks/Package/PackageNuget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private static void PackageUsingNuspec(BuildContextBase context)
Files = context.GetFiles(artifactPath + "/**/*.*")
.Select(file => new NuSpecContent { Source = file.FullPath, Target = file.FullPath.Replace(artifactPath, "") })
.Concat(context.GetFiles("docs/**/package_icon.png").Select(file => new NuSpecContent { Source = file.FullPath, Target = "package_icon.png" }))
.Concat(context.GetFiles("build/nuspec/README.md").Select(file => new NuSpecContent { Source = file.FullPath, Target = "README.md" }))
.ToArray()
};

Expand Down
2 changes: 1 addition & 1 deletion build/build/Tasks/Package/PackagePrepare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static DirectoryPath PackPrepareNative(BuildContext context, string runt
Configuration = context.MsBuildConfiguration,
OutputDirectory = outputPath,
MSBuildSettings = context.MsBuildSettings,
ArgumentCustomization = arg => arg.Append("/p:PublishSingleFile=true"),
ArgumentCustomization = arg => arg.Append("/p:PublishSingleFile=true --self-contained"),
};

context.DotNetCorePublish("./src/GitVersion.App/GitVersion.App.csproj", settings);
Expand Down
1 change: 1 addition & 0 deletions build/nuspec/GitVersion.CommandLine.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
<tags>Git Versioning GitVersion GitFlowVersion GitFlow GitHubFlow SemVer</tags>
<developmentDependency>true</developmentDependency>
<releaseNotes>https://github.com/GitTools/GitVersion/releases</releaseNotes>
<readme>README.md</readme>
</metadata>
</package>
63 changes: 63 additions & 0 deletions build/nuspec/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
![GitVersion – From git log to SemVer in no time][banner]

Versioning when using Git, solved. GitVersion looks at your git history and
works out the [Semantic Version][semver] of the commit being built.

[![Gitter][gitter-badge]][gitter]

| Artifact | Stable | |
| :------------------------- | :----------------------------------------------------------------- | - |
| **GitVersion.Tool** | [![NuGet][gvgt-badge]][gvgt] |
| **GitVersion.CommandLine** | [![NuGet][gvcl-badge]][gvcl] |
| **GitVersion.MsBuild** | [![NuGet][gvt-badge]][gvt] | Known as [GitVersionTask] before v5.6.0 |

## Compatibility

GitVersion works on Windows, Linux, and Mac.

## Quick Links

* [Documentation][docs]
* [Contributing][contribute]
* [Why GitVersion][why]
* [Usage][usage]
* [How it works][how]
* [FAQ][faq]
* [Who is using GitVersion][who]

## GitVersion in action!

![README][gv-in-action]

You are seeing:

* Pull requests being built as pre-release builds
* A branch called `release-1.0.0` producing beta v1 packages

## Icon

<a href="https://thenounproject.com/term/tree/13389/" target="_blank">Tree</a>
designed by <a href="http://thenounproject.com/david.chapman" target="_blank">David Chapman</a>
from The Noun Project.

[semver]: http://semver.org
[gitter]: https://gitter.im/GitTools/GitVersion?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[gitter-badge]: https://badges.gitter.im/Join+Chat.svg
[docs]: https://gitversion.net/docs/
[gh-rel]: https://github.com/GitTools/GitVersion/releases/latest
[gh-rel-badge]: https://img.shields.io/github/release/gittools/gitversion.svg?logo=github
[gvt]: https://www.nuget.org/packages/GitVersion.MsBuild
[gvt-badge]: https://img.shields.io/nuget/v/GitVersion.MsBuild.svg?logo=nuget
[gitversiontask]: https://www.nuget.org/packages/GitVersionTask/
[gvcl]: https://www.nuget.org/packages/GitVersion.CommandLine
[gvcl-badge]: https://img.shields.io/nuget/v/GitVersion.CommandLine.svg?logo=nuget
[gvgt]: https://www.nuget.org/packages/GitVersion.Tool
[gvgt-badge]: https://img.shields.io/nuget/v/GitVersion.Tool.svg?logo=nuget
[contribute]: https://github.com/GitTools/GitVersion/blob/main/CONTRIBUTING.md
[why]: https://gitversion.net/docs/learn/why
[usage]: https://gitversion.net/docs/usage
[how]: https://gitversion.net/docs/learn/how-it-works
[faq]: https://gitversion.net/docs/learn/faq
[who]: https://gitversion.net/docs/learn/who
[gv-in-action]: https://raw.github.com/GitTools/GitVersion/master/docs/input/docs/img/README.png
[banner]: https://github.com/GitTools/graphics/raw/master/GitVersion/banner-1280x640.png
7 changes: 3 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<PackageTags>Git;Versioning;GitVersion;GitFlowVersion;GitFlow;GitHubFlow;SemVer</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>package_icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>https://github.com/GitTools/GitVersion/releases</PackageReleaseNotes>

<RepositoryUrl>https://github.com/GitTools/GitVersion</RepositoryUrl>
Expand Down Expand Up @@ -76,10 +77,8 @@
</ItemGroup>

<ItemGroup>
<None Include="../../docs/input/docs/img/package_icon.png">
<Pack>true</Pack>
<PackagePath>/</PackagePath>
</None>
<None Include="../../docs/input/docs/img/package_icon.png" Pack="true" PackagePath="/"/>
<None Include="../../build/nuspec/README.md" Pack="true" PackagePath="/"/>
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net48' ">
Expand Down
6 changes: 0 additions & 6 deletions src/NuGet.Config

This file was deleted.