GithubHelp home page GithubHelp logo

cleansolution's Introduction

Clean Solution

Removes all files created during build from the original source.

Introduction

This EXE will travel through your source code eliminating the files that are commonly added during a build so that you can restore the source to it's pre-build condition. It will eliminate a lot of excess files not needed until you need to build this solution again.

It will eliminate the following folders:

  • /bin (stores compiled DLL files)
  • /obj (stores compilation files)
  • /packages (stores downloaded C# NuGet packages)
  • /node_modules (stores downloaded NPM packages)
  • /Test_Results (stores the C# unit testing results)

Prerequisites

List any prerequisites required to build and run your project.

  • .NET SDK 6.0 or later

Building the Executable

Explain how to build the executable from the source code. Break it down into step-by-step instructions. For example:

  1. Clone the Repository:

    • Clone the project repository to your local machine using:
      git clone [repository URL]
      
    • Navigate to the project directory:
      cd [project name]
      
  2. Build the Project:

    • Run the following command to build the project:
      dotnet build
      
  3. Publish the Application:

    • Use the following command to publish the application as a self-contained executable:
      dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true
      
  4. Locate the Executable:

    • Find the executable in the bin/Release/{netcoreapp_version}/{runtime identifier}/publish/ directory.

Running the Application

Provide instructions on how to run the application after building it. For example:

  • Navigate to the publish directory:
    cd bin/Release/{netcoreapp_version}/{runtime identifier}/publish/
    
  • Run the executable:
    ./CleanSolution.exe
    

Additional Notes

Copy this EXE to a local folder such as C:\tools and then add this folder into your computer's PATH. This will make it easy to use anywhere you need to clean up a C# solution.

License

Free to use. No warranty is provided. Use AS IS with no guarantee or support provided.

cleansolution's People

Contributors

kbarkhausen avatar

Watchers

 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.