msbuild
msbuild copied to clipboard
The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
### Summary `WriteLinesToFile` accepts an `Encoding` metadata that is a name that's passed to `System.Text.Encoding.GetEncoding`. There is no BCL name for `UTF-8 with no BOM`, so users cannot easily request...
### Summary It'd be great if we could scan for some patterns where a property (that we know about) is set instead as item metadata. ### Background and Motivation "Things"...
It order to simplify CustomAnalyzers investigation, add reporting BuildCheckAcquisitionEventArgs to it. Related to: https://github.com/dotnet/msbuild/pull/10473#discussion_r1701469333
### Context MSBuild analyzers are going to be shipped as opt-in preview feature in NET 9. Since we are in late stage of NET 9 cycle, we should now shift...
### Issue Description Platform negotiation seems to fail with MSB3982, but only for `dotnet workload restore` commands. Ordinary `dotnet restore` and `dotnet build` produce no such warnings. ### Steps to...
### Summary MSBuild has the opt-in [static graph](https://github.com/dotnet/msbuild/blob/main/documentation/specs/static-graph.md) evaluation model. It would make sense to add a BuildCheck to tell users to opt-in to this mode. ### Background and Motivation...
### Issue Description While profiling BinaryReader/Writer, I have noticed a large % of time in creating CopyOnWriteDictionary/ImmutableDictionary. This event is triggered from LogProjectEvaluationFinished() where it enumerates through all the items...
### Context Compare resuts for `BC0202` and `BC0203` ``` Set Property: MyPropT2=;xxx MSBUILD : warning BC0202: C:\Users\jankrivanek\AppData\Local\Temp\wfac2uyx.xnb\MSBuildTemp\Temporaryfcdcb69ef02b4c23ab44afca5dc462b1\myProj.proj (24,10): https://aka.ms/buildcheck/codes#BC0202 - Property: [MyPropT2] first declared/initialized at [C:\Users\jankrivanek\AppData\Local\Temp\wfac2uyx.xnb\MSBuildTemp\Temporaryfcdcb69ef02b4c23ab44afca5dc462b1\myProj.proj (26,1)] used before it...
### Issue Description There seems to be a breaking change introduced in .NET SDK starting from version 8.0.300: During the evaluation stage of the build many NuGet-related properties are no...
### Context `CheckScopeClassifier` uses `FileScopeClassifier` that is initialized from build request data. This is fine for worker nodes (and by extension for Scheduler node with in-proc worker node), but in...