🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

OneClickBuild

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

OneClickBuild

Simplify your build, run tests and coverage.

1.13.0
NuGet
Version published
Maintainers
2
Created
Source

Welcome to OneClickBuild.

The OneClickBuild package simplifies your build and makes it run everywhere started with a simple build.bat from the command line

OneClickBuild comprises

  • Versioning: Solution wide assembly versioning (including commit info via GitVersion),
  • Tests: running tests (NUnit & XUnit),
  • Coverage: Computing Test coverage (with OpenCover) and
  • Deploy: NuGet packaging and pushing

A new member coming to your team does not require any special tooling to compile, run tests, etc. This makes it also perfectly suitable for continuous integration since your build jobs reduce to the same one-liner you can use in development.

Steps after 1st time installation:

  • Copy OneClickBuild\tools files to your solution root folder.

    copy .\packages\OneClickBuild.[version]\tools*.*

  • Rename before.sln.targets to before.[solutionfilename].sln.targets.

    ren before.sln.targets before.[solutionname].sln.targets

  • Add files as solution items to so you are aware of the files in Visual Studio as well.

  • Complete SolutionInfo.cs with e.g. trademark, company & copyright info.

  • Remove duplicate assembly attributes in your Properties\AssemblyInfo.cs, i.e.

    [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("...")] [assembly: AssemblyCopyright("Copyright � 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]

Finally, do a test build. In your solution folder type

build

and you should get a clean Release build with version and git commit info attached to your output assemblies (see File -> Properties -> Details).

Optionally you might find it helpful to wrap up on GitVersion:

  • GitVersion / Usage / Command Line (Docs)

That's it. Enjoy.

If you have any issues or feature requests with OneClickBuild please raise them on awesome-inc/OneClickBuild.

Keywords

continuous

FAQs

Package last updated on 17 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts