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

Test failng #728

Open
kant2002 opened this issue Nov 21, 2024 · 4 comments
Open

Test failng #728

kant2002 opened this issue Nov 21, 2024 · 4 comments
Labels
kind:bug Something isn't working status:help-wanted Open for contributors

Comments

@kant2002
Copy link
Collaborator

https://github.com/ForNeVeR/Cesium/actions/runs/11950256474/job/33311366528?pr=727

I did try reproduce issue locally and if running dotnet nuke TestSdk issue reproduced for me. I have .NET SDK 8.0.101
If create project, restore it, and run

dotnet  msbuild .\SimpleCoreExe.ceproj "/t:Restore;Build" /restore /bl

issue does not reproduced.

@kant2002
Copy link
Collaborator Author

kant2002 commented Nov 21, 2024

Failure stack trace

14:28:52 [DBG]  [stdout]: MSBuild version 17.12.7+5b8665660 for .NET
14:28:52 [DBG]  [stdout]:   Determining projects to restore...
14:28:52 [DBG]  [stdout]:   Restored C:\Users\User\AppData\Local\Temp\qqjnocx4.giz\SimpleCoreExe\SimpleCoreExe.ceproj (in 1.91 sec).
14:28:52 [DBG]  [stdout]:   Determining projects to restore...
14:28:52 [DBG]  [stdout]:   All projects are up-to-date for restore.
14:28:52 [DBG]  [stdout]: Generating assembly obj\Debug\net6.0\SimpleCoreExe.dll.
14:28:52 [DBG]  [stdout]: Processing input file "hello.c".
14:28:52 [DBG]  [stdout]: Generating a .NET 6 runtime config at obj\Debug\net6.0\SimpleCoreExe.runtimeconfig.json.
14:28:52 [DBG]  [stdout]: C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(709,5): error MSB4018: The "CreateAppHost" task failed unexpectedly. [C:\Users\User\AppData\Local\Temp\qqjnocx4.giz\SimpleCoreExe\SimpleCoreExe.ceproj]
14:28:52 [DBG]  [stdout]: C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(709,5): error MSB4018: System.MissingMethodException: Method not found: 'Boolean Microsoft.NET.HostModel.ResourceUpdater.IsSupportedOS()'. [C:\Users\User\AppData\Local\Temp\qqjnocx4.giz\SimpleCoreExe\SimpleCoreExe.ceproj]
14:28:52 [DBG]  [stdout]: C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(709,5): error MSB4018:    at Microsoft.NET.Build.Tasks.CreateAppHost.ExecuteCore() [C:\Users\User\AppData\Local\Temp\qqjnocx4.giz\SimpleCoreExe\SimpleCoreExe.ceproj]
14:28:52 [DBG]  [stdout]: C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(709,5): error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\Users\User\AppData\Local\Temp\qqjnocx4.giz\SimpleCoreExe\SimpleCoreExe.ceproj]
14:28:52 [DBG]  [stdout]: C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(709,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Execute() [C:\Users\User\AppData\Local\Temp\qqjnocx4.giz\SimpleCoreExe\SimpleCoreExe.ceproj]
14:28:52 [DBG]  [stdout]: C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(709,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) 

@kant2002
Copy link
Collaborator Author

Method ResourceUpdater.IsSupportedOS() was removed in .NET 9 SDK

https://github.com/dotnet/sdk/blob/merge/release/8.0.4xx-to-release/9.0.1xx/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.cs

So I think this is related to fact that we run test using .NET 9 SDK

@ForNeVeR
Copy link
Owner

Yep I see how that could happen. Perhaps .NET 9 appeared on agents somehow?

Let's try emitting global.json in tests for them to choose the correct SDK maybe?

@ForNeVeR ForNeVeR added kind:bug Something isn't working status:help-wanted Open for contributors labels Nov 21, 2024
@kant2002
Copy link
Collaborator Author

If we issue global.json for Sdk projects when we copy to new directory, but then subsequently we have other, different issue, but probably of similar nature - inside IntegrationTests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Something isn't working status:help-wanted Open for contributors
Projects
None yet
Development

No branches or pull requests

2 participants