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

[Housekeeping] Enable AccelerateBuildsInVisualStudio #197

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

brminnick
Copy link
Collaborator

Description of Change

This PR enables AccelerateBuildsInVisualStudio, recently introduced in Visual Studio v17.5:
https://github.com/dotnet/project-system/blob/main/docs/build-acceleration.md

The feature was added in 17.5 and is currently opt-in. It applies to SDK-style .NET projects only. It is simple to try, and in most cases will improve build times. Larger solutions will see greater gains.

Visual Studio uses MSBuild to build .NET projects. There is some overhead associated with calling MSBuild to build each project, so Visual Studio uses a "fast up-to-date check" (FUTDC) to avoid calling MSBuild unless needed. This FUTDC can quickly determine if anything has changed in the project that would cause a build to be required. For more information, see Up-to-date Check.

In several cases, the FUTDC identifies that no compilation is required, yet identifies some files need to be copied to the output directory, either from the current project or from a referenced one. Historically in this scenario, the FUTDC would call MSBuild to build the project, even though no compilation was required. This was done to ensure that the files were copied to the output directory.

With the build acceleration feature, Visual Studio will perform these files copies directly rather than calling MSBuild to do them.

Additional Information

⚠️ Before approving/merging this PR, please test this on Visual Studio v17.5 to confirm we don't accidentally break anything for our users.

I have tested and confirmed this is working on Visual Studio Preview v17.6.

But I am unable to test Visual Studio v17.5 on PC because I am using an ARM-based laptop (MacBook Pro M2 running Windows 11 in a VM via Parallels), and Visual Studio on ARM64 only supports .NET MAUI in v17.6+.

@brminnick brminnick enabled auto-merge (squash) March 9, 2023 17:55
@brminnick brminnick merged commit 1c7bd4e into main Mar 9, 2023
@brminnick brminnick deleted the Enable-`AccelerateBuildsInVisualStudio-` branch March 9, 2023 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants