.NET 9.0.10x SDK breaks build that worked in 8.0.405 with missing apphost.exe
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
We have a repo where we pin the SDK, so we have exact control over which SDK is used.
When we update from 8.0.405 to 9.0.102 (we also tried 9.0.100), the build fails with this error:
> C:\ToolCache\dotnet\sdk\9.0.100\Microsoft.Common.CurrentVersion.targets(5322,5): error MSB3030: Could not copy the file "D:\a\_work\1\s\obj\src\Microsoft.VisualStudio.Code.Server\x86\Release\apphost.exe" because it was not found. [D:\a\_work\1\s\src\Microsoft.VisualStudio.Code.Server\Microsoft.VisualStudio.Code.Server.csproj]
I believe it's a non-deterministic target ordering issue, because _once_ I got the build to pass locally, but all the other times it failed. When it passed, the apphost.exe file _was_ on the disk in the expected place.
[binlog](https://microsoft-my.sharepoint.com/:f:/p/andarno/Eqyn1q7Vm7RDuGpHrPUf7hsBFS8-1FAuNfnLxo7K3ELx7Q?e=IIzhmH)
The problem apparently goes away when we change our TargetFramework from net8.0 to net9.0. Not sure if that's a "stable" fix or just lucky due to the target ordering theory.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.