Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the specific differences between dotnet build and Visual Studio 2022 build? #10963

Open
Jamlee opened this issue Nov 10, 2024 · 1 comment
Labels
Documentation Issues about docs, including errors and areas we should extend (this repo and learn.microsoft.com) Priority:2 Work that is important, but not critical for the release triaged

Comments

@Jamlee
Copy link

Jamlee commented Nov 10, 2024

Judging from the build logs, dotnet build will start on its own first and recursively compile the project dependencies.
However, Visual Studio 2022 build seems to sort out all the dependency relationships first, and finally compile each project only once from the front to the back.

dotnet build log:

Visual Studio 2022 build log:

So how can we get a clear understanding of these differences?

@KalleOlaviNiemitalo
Copy link

Some differences are described at https://learn.microsoft.com/visualstudio/msbuild/visual-studio-integration-msbuild?view=vs-2022 and https://learn.microsoft.com/visualstudio/msbuild/customize-solution-build?view=vs-2022.

I hoped there would be more at https://github.com/dotnet/project-system/tree/main/docs, but those files document the differences between the old project system in Visual Studio and the current project system in Visual Studio, rather than between Visual Studio and command-line MSBuild.

@maridematte maridematte added Documentation Issues about docs, including errors and areas we should extend (this repo and learn.microsoft.com) Priority:2 Work that is important, but not critical for the release triaged labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues about docs, including errors and areas we should extend (this repo and learn.microsoft.com) Priority:2 Work that is important, but not critical for the release triaged
Projects
None yet
Development

No branches or pull requests

3 participants