msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.

Results 678 msbuild issues
Sort by recently updated
recently updated
newest added

I noticed this allocates too much: https://github.com/dotnet/msbuild/blob/4b2d01ad2b0ef3ee4a05ed29ff1ec2b558b51f17/src/Shared/FileMatcher.cs#L1498 ![Image](https://github.com/user-attachments/assets/f0644e12-a497-47b1-940c-ba6443757ec4) Let's investigate if we can cache these regexes, I suspect there's a very limited number of expressions here that we can reuse...

Area: Performance
triaged

Fixes #11872 ### Context Adding a Regex Cache to FileMatcher to avoid repeated Regex creation. ### Changes Made FileMatcher.cs -> added a cache. ### Testing Existing tests. ### Notes

### Context There's a good amount of contention inside of `BuildManager.PendBuildRequest()` coming from the lock in the body: private BuildSubmissionBase PendBuildRequest( TRequestData requestData) where TRequestData : BuildRequestData where TResultData :...

Sets the initial size of the HashSet base on the likely size of elements we could expect. ### Changes Made ### Testing ### Notes

Fixes # Allocation of Translator ### Context In a trace we were seeing that there were allocations for a write translator. ![image](https://github.com/user-attachments/assets/882b3199-5ce6-4fa8-87cd-071c888caefe) Which can be avoided. ### Changes Made Instead...

Fixes # ### Context ### Changes Made ### Testing ### Notes

…than getting boxed Fixes # ### Context ![image](https://github.com/user-attachments/assets/45c8ad7f-2577-4174-927c-e58fd06dce23) ### Changes Made ### Testing ### Notes

### Context Some longer strings in `ExpandSingleMetadata` are truncated with ellipses appended. Especially for long strings, we want to avoid creating intermediate strings that are immediately discarded. We can use...

…nd preserve formating enabled Fixes #2772 ### Context Fix bug in project evaluation described in #2772 ### Changes Made Apply recommended fix. ### Testing Add test to reproduce issue and...

### Issue Description [ccache](https://ccache.dev) is a compiler cache that stores the results of previous compiler invocations to accelerate your builds (even after you clean). It works fine with MSBuild as...

Area: Performance
triaged