/Build-Release

A set of tools to build .NET projects.

Primary LanguageC#MIT LicenseMIT

Build Release

A set of tools to build .NET projects.

license

The following tools are contained:

See Specification for details.

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.

Initial Set

The PowerShell script to add initial settings to the project that will be released.

Version 1up

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

The PowerShell script to increment the assembly version.

Zip Release

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

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

NuGet Packup

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

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

Testing Environment

  • Visual Studio 2017
  • Visual Studio 2019

Release Notes

  • v2.1.14
    • Add Initial Set.
    • Update paths to MSBuild.exe for Visual Studio 2019.
  • 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 (in Japanese)