Coder Social home page Coder Social logo

devopscommands's Introduction

Logo.

DevOps Commands

ContributorsForksStargazersIssuesMIT License

A PowerShell module to help with developing locally using MSBuild.

Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

![DevOps Commands Screen Shot.][./images/screenshot.png]

To make development simpler in PowerShell using MSBuild this module wraps the commands and defaults to the binary logger which provides far better log output for looking at builds.

Built With

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • PowerShell Core 7.x+

Installation

To install this module to use you have three options

  • Download the zip and extract to a local modules directory
  • Install from the PowerShell Gallery
  • Clone, build and install

Clone, build and install

  1. Clone this repo somewhere.
  2. Run the build.ps1 in this folder to update.
  3. Run install.ps1 in this directory to add the loading of this module to your powershell profile. You have to run it in each instance (PowerShell is different to PowerShell Core)
Install-Module -Name platyPS -Scope CurrentUser
git clone
cd devopscommands
.\build.ps1
.\install.ps1
# open a new instance of powershell now and this module will
# be loaded as part of the profile load.

Usage

To run with defaults just use the msb alias at the root of your project. This will run MSBuild with binary logging enabled and will produce a x64 Debug build.

Global Settings

If you want to override the default settings put these variables at the end of your profile with the values you want to use. If you are happy with these defaults do not worry about them.

Default Settings

Setting Value Description
StructuredLogViewerPath "$env:USERPROFILE\AppData\Local\MSBuildStructuredLogViewer\app-2.1.88\StructuredLogViewer.exe" Viewer for the Binary log produced by MSBuild
MsBuildArguments '/nologo', '/m', '/nr:false', '/p:TreatWarningsAsErrors="true"', '/p:Platform="x64"' Arguments passed to MSBuild on every execution
VsDefault 17 Version of Visual Studio to import the console settings from

Update Default Settings

Settings are controlled by the SimpleSettings commands, this is a dependency of this module. To update the default you can use commands like below with your values.

Set-SimpleSetting -Name "StructuredLogViewerPath" -Section "DevOpsCommands" -Value "$env:USERPROFILE\AppData\Local\MSBuildStructuredLogViewer\app-2.0.64\StructuredLogViewer.exe"

Set-SimpleSetting -Name "MsBuildArguments" -Section "DevOpsCommands" -Value @('/nologo', '/m', '/nr:false', '/p:TreatWarningsAsErrors="true"', '/p:Platform="x64"')

# 15 == VS 2017
# 16 == VS 2019
# 17 == VS 2022
Set-SimpleSetting -Name "VsDefault" -Section "DevOpsCommands" -Value "17"

Commands

To list commands run Get-Command -Module DevOpsCommands To get help on commands run Get-Command -Module DevOpsCommands | Get-Help

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature') Note: Use Conventional Commits format for the commit/Pull Request
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU GPLv3 License. See LICENSE for more information.

Contact

Jon Bullen - @sytone

Project Link: https://github.com/sytone/devopscommands

Acknowledgements

devopscommands's People

Contributors

sytone avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.