dotnet / dotnet/sdk

.NET 9.0.10x SDK breaks build that worked in 8.0.405 with missing apphost.exe

Open
#46,288 1 comment 0 reactions 1 assignee Claimed by @dsplaisted View on GitHub
Area-NetSDK untriaged
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.