Repository navigation
[release/10.0.3xx] Source code updates from dotnet/msbuild - #5204
dotnet-maestro[bot] merged 17 commits into
Conversation
[[ commit created by automation ]]
Adds SDK layout and installer support for the MSBuild apphost, following the same pattern as the Roslyn apphost changes (#3180). Changes: - Define _MSBuildAppHost item in Directory.Build.props - Add CreateMSBuildAppHost target in GenerateLayout.targets (CreateAppHost, COM .tlb copy on Windows, codesign on macOS) - Add MSBuild apphost chmod in ChmodPublishDir and Crossgen targets - Add macOS signing config for MSBuild apphost in Signing.props - Add msbuild-entitlements.plist for macOS codesigning - Add Microsoft.Build.Framework.tlb binary for Windows COM support - Allow .tlb in allowed-vmr-binaries.txt Co-authored-by: Copilot <[email protected]>
|
@dotnet/msbuild this PR contains changes for installer to distribute AppHost, inspired by #3180 |
4ce982f to
b06eff0
Compare
…bc2a-26f2e72cde5f
|
Note PRs from original repository included in this codeflow update: 💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
|
Just as a general note: Never force push into a dependency flow PR. This can cause issues with Maestro. |
|
@ViktorHofer The TFM compat warning added in dotnet/msbuild#13187 (eng/packaging.targets) is breaking the SDK build in this codeflow PR on both Linux x64 and Windows x86. What happens: MSBuild 18.6.0-ci packages now include buildTransitive/netcoreapp2.0/*.targets that emit a
Why main is unaffected: On main, Arcade bumped NetMinimum to net10.0 and removed NetToolMinimum. The SDK projects there use $(NetMinimum) = net10.0, which Question: Was this intended to catch a real issue with these packages, or is this a misfire for VMR-intermediate packages? If the latter, the cleanest fix seems to be conditioning the target on '$(DotNetBuild)' != 'true' in packaging.targets (similar to the existing NU5104 suppression in MSBuild's Directory.Build.props), since VMR-produced MSBuild packages are never published to NuGet. Do you think this analysis is relevant and the appropriate path forward? |
|
I will take a look later today. This is a weird situation due to the dual check-in of msbuild. The warnings are appropriate in 11.0 but in 10.0.3xx, dependencies still target net8.0 which conflict with the minimum supported TFM in the msbuild repo. |
|
Note PRs from original repository included in this codeflow update: 💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
TryFromMSBuildAppHost and TryFromAppContextBaseDirectory now check
IsRunningInMSBuildExe before using the MSBuild apphost as the current
MSBuild executable. Without this, worker nodes get launched via the
apphost, changing Environment.ProcessPath to the SDK directory where
dotnet is not present, breaking Process.Start("dotnet") resolution
in tasks like VSTestTask.
Co-authored-by: Copilot <[email protected]>
[[ commit created by automation ]]
|
Note PRs from original repository included in this codeflow update:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
…bc2a-26f2e72cde5f
|
Note PRs from original repository included in this codeflow update: 💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
…bc2a-26f2e72cde5f
|
Note PRs from original repository included in this codeflow update: 💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
|
Note PRs from original repository included in this codeflow update: 💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
…ing in binary - Remove checked-in .tlb binary from sdk Layout; generate at build time via tlbexp.exe during net472 build (CreateTypeLib target) - Unified tlbexp.exe resolution: registry-based lookup with hardcoded fallback, works on both desktop and Core MSBuild (no MSBuildRuntimeType branching) - Generate both x86 and x64 type libraries in all builds (the .tlb ships in both Visual Studio and the .NET SDK on Windows) - Enable CreateTlb in VMR Windows builds (DotNetBuildSourceOnly != true) - Include .tlb in Microsoft.Build.Framework NuGet package (lib/net472/) - SDK layout copies .tlb from NuGet package cache with Exists() guard Co-authored-by: Copilot <[email protected]>
…per workaround VSTestTask: Use DOTNET_HOST_PATH environment variable (set by the SDK) to resolve the dotnet host path, with PATH search as fallback. This is the proper fix for the 'dotnet not found' error that occurs when MSBuild runs via the apphost and Environment.ProcessPath changes to the SDK directory. BuildEnvironmentHelper: Revert the IsRunningInMSBuildExe guard in TryFromMSBuildAppHost and the context-aware logic in TryFromAppContextBaseDirectory. These were workarounds for the same issue and are no longer needed now that VSTestTask resolves dotnet properly. Co-authored-by: Copilot <[email protected]>
|
After the final look from @rainersigwald , it's ready to go. |
|
the PR contains installer changes for dotnet/msbuild#12995 |
Note
This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.
This pull request brings the following source code changes
From https://github.com/dotnet/msbuild
Diff the source with this PR branch