Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AArnott opened this issue Jan 24, 2025 · 0 comments
Open
Assignees
Labels
Area-NetSDK untriaged Request triage from a team member

Comments

@AArnott
Copy link
Contributor

AArnott commented Jan 24, 2025

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

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.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants