How to run multiple asp dotnet core projects using cli?
MultiRun.net is a solution to the limitation faced when working with multiple projects within a .NET solution. The dotnet CLI falls short in such scenarios as it only allows running one project at a time. To overcome this issue, developers often resort to switching to IDEs like Rider or Visual Studio, or resort to writing their own bash/batch scripts.
However, using bash/batch scripts can lead to the loss of valuable logging information from the console. MultiRun.net provides a convenient solution that allows running multiple projects simultaneously in the same terminal window.
This demonstration presents the execution capabilities of mrn. Utilizing an API and MVC project as examples, it illustrates how mrn manages multiple projects concurrently. Throughout the demo, the interaction between these projects is highlighted, with the console output printed in a singular console.
MRN_Demo.mp4
- Simultaneous Execution: Run multiple projects within your solution simultaneously.
- Consolidated Logging: View all logging information from multiple projects in the same terminal window.
- Ease of Use: Simplifies the process of running multiple projects without resorting to manual scripting or switching IDEs.
To install MultiRun.net, follow these steps:
git clone https://github.com/zacharyMcSweenManickchand/MultiRun.net.git # Clone the repository
cd MultiRun.net # Navigate to the project directory
dotnet build -c Release && dotnet pack -c Release # Build the solution
dotnet tool install --global --add-source ./nupkg mrn --version 1.0.0 # Add Globally
- Open a terminal window.
- Pass the local of your project
mrn /path/to/solutionor Navigate your project and runmrn .
MultiRun.net will automatically detect and execute all projects within your solution, printing logging information for each project in the same terminal window.
Contributions are welcome! If you find any issues or have ideas for improvements, feel free to open an issue or submit a pull request.
For any inquiries or feedback, please send an email.
Thank you for using MultiRun.net!