msbuild
msbuild copied to clipboard
The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
The [`_GetProjectReferenceTargetFrameworkProperties` target](https://github.com/dotnet/msbuild/blob/a6f6699d1f70bf79db82030938d2c5e52d1e4d2e/src/Tasks/Microsoft.Common.CurrentVersion.targets#L1706) is responsible for annotating ProjectReference items with various metadata (`SetTargetFramework`, `UndefineProperties`, ...). When specifying multiple `ProjectReference` items with the same identity, the metadata isn't applied which results...
### Describe the bug I am working with third-party components (DevExpress) and their new release based on .NET 6 appears to have exposed a potential bug in MSBuild's assembly resolution...
SDK resolvers have caches because they depend on certain things such as files on disk to determine paths to SDKs. In order to make the cache more effective, SDK resolvers...
### Refactor candidate I have stumbled upon the piece of code and suggest to rethink it: https://github.com/dotnet/msbuild/blob/28f488a74ed75bf5f21ca93ac2463a8cb1586d79/src/Build/Evaluation/Expander.cs#L3643 It contains code duplications and it's current size poorly manageable.
### Describe the bug When running dotnet build I get the following error: `/usr/local/share/dotnet/sdk/8.0.302/Microsoft.NETFramework.CurrentVersion.props(117,25): error MSB4184: The expression "[MSBuild]::VersionGreaterThanOrEquals(net7.0, 4.0)" cannot be evaluated.` ### To Reproduce - Running dotnet-sdk on...
I was trying out a native AOT console app and got the following error.  Clicking https://aka.ms/native takes me to a web site that has nothing to do with .NET...
### Issue Description `msbuild ILSpy.sln /t:Rebuild` fails while `msbuild ILSpy.sln /t:Clean;Build` succeeds. ### Steps to Reproduce For the needed workloads/SDKs see for more info: https://github.com/icsharpcode/ILSpy#how-to-build 1) `git clone https://github.com/icsharpcode/ILSpy.git` 2)...
See discussion in https://github.com/dotnet/roslyn/issues/74725, but: * If a task assembly has an adjacent `.deps.json`, MSBuild will respect it. * Generally you should probably ship this * But you don't super...
### Context https://github.com/dotnet/msbuild/pull/10508 made it possible to properly distinguish if just some loggers requests evaluation data (expresse via `IEventSource4.IncludeEvaluationPropertiesAndItems`). However if this is not called the data are still included...
BuildCheck needs better error messages when a Check fails. When that happens we get a generic error message instead of the intended one that a Check has failed: `error MSB4184:...