3

I have a project structure like the following and I would like to be able to run tasks on all projects at once so that i maybe able to build and run as well as run tests on all projects in one command using Visual Studio code? is this possible?

-global.json
-src
    -Web
        -project.json
        -program.cs
    -Web2
        -project.json
        -program.cs
-test
    -Web.Test
        -project.json
        -program.cs
    -Web2.Test
        -project.json
        -program.cs

1 Answer 1

1

You can add a solution file to your root folder with dotnet new sln. You can then add project references with dotnet sln add : https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-sln

dotnet build will then build all referenced projects, and dotnet test will run all unit tests found.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.