A set of tools to build a .NET project.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Downloads
Lab
Published
Scripts
Tools/NuGet.CommandLine.4.4.1
docs/images
.gitattributes
.gitignore
LICENSE
README.md

README.md

Build Release

A set of tools to build a .NET project.

license

The following tools are contained:

There are options to use the tools:

  • Download the PowerShell script files and extract them to any folder
  • Add the PowerShell scripts above to External Tools in Visual Studio (recommended)
  • Install the PowerShell script files to a .NET project by NuGet

See Usage for details.

Version 1up

The PowerShell script to increment the assembly version.

  • For the .NET Framework project format
  • For the .NET Core project format

NuGet NuGet
NuGet Gallery | KTools.Version1up (for the .NET Framework project format)

Specification

  • Increment the build number of the assembly version (z of x.y.z)
    • AssemblyInfo.cs for .NET Framework
    • Project files for .NET Core

Zip Release

The PowerShell script to build the project and create a ZIP file.

  • For the .NET Framework project format
  • For the .NET Core project format

NuGet NuGet
NuGet Gallery | KTools.ZipRelease (for the .NET Framework project format)

Specification

  • Increment the assembly version (call the Version 1up)
  • Build a release by the MSBuild
  • Create a ZIP file from the build result

NuGet Packup

The PowerShell script to build the project and create a NuGet package.

  • For the .NET Core project format

Specification

  • Increment the assembly version (call the Version 1up)
  • Build a release by the MSBuild
  • Create a NuGet package from the build result

Usage

There are options to use the tools:

  • Download the latest version of the PowerShell script files and extract them to any folder
    • Execute the scripts on the project folder
  • Add the PowerShell scripts above to External Tools in Visual Studio (recommended)
    • Execute the menu on the project
  • Install the PowerShell script files to a .NET project by NuGet
    • Execute the scripts on the project folder

You can customize the PowerShell script to meet your needs.

How to Add the Scripts to External Tools in Visual Studio

Choose the menu Tools > External Tools, and add a new content with the following information:

  • Title: any
  • Command: powershell.exe
  • Arguments: -ExecutionPolicy Unrestricted "C:\scripts_folder\KTools.xxx.ps1"
  • Initial directory: $(ProjectDir)
  • Use Output window: On

ExternalTools

Release Notes

  • v2.0.10 For .NET Core.
  • v1.2.6 Find the path to .ps1 files, regardless of the current directory.
  • v1.2.5 Find the path to MSBuild.exe.
  • v1.2.4 Rename .ps1 files.
  • v1.1.3 The first release.

References

My Blog