Error when building the project

Open
#678 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
csharp
Domain
build-system

Research direction

Start with README.md's build prerequisites and src/PowerAppsTestEngine/PowerAppsTestEngine.csproj, then inspect installation.log and reproduce dotnet build on Windows 11 with the stated SDK and MSBuildSDKsPath settings. Compare the configured SDK with the reported CreateAppHost and MissingMethodException; done means identifying the incompatible or missing setting and achieving a successful build.

Written by the indexing model from the issue text.

Description

new

I'm trying to build the PowerApps-TestEngine project on my PC (Windows 11).

I've followed the instructions given in the README.md:

  • Although I already have ".NET Core 9.0.x SDK" on my PC, I've installed the required version: ".NET Core 8.0.128 SDK"
  • I've defined the system environment variable MSBuildSDKsPath to: C:\Program Files\dotnet\sdk\8.0.x\Sdks

Once I run "dotnet build", I'm getting 2 warnings an 1 error (see details in the attached log file).
The error is :

error MSB4018: The "CreateAppHost" task failed unexpectedly. [C:\data\TestAutomation\PowerApps-TestEngine\src\PowerAppsTestEngine\PowerAppsTestEngine.csproj]
error MSB4018: System.MissingMethodException: Method not found: 'Boolean Microsoft.NET.HostModel.ResourceUpdater.IsSupportedOS()'. [C:\data\TestAutomation\PowerApps-TestEngine\src\PowerAppsTestEngine\PowerAppsTestEngine.csproj]
error MSB4018:    at Microsoft.NET.Build.Tasks.CreateAppHost.ExecuteCore() [C:\data\TestAutomation\PowerApps-TestEngine\src\PowerAppsTestEngine\PowerAppsTestEngine.csproj]
error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\data\TestAutomation\PowerApps-TestEngine\src\PowerAppsTestEngine\PowerAppsTestEngine.csproj]
error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Execute() [C:\data\TestAutomation\PowerApps-TestEngine\src\PowerAppsTestEngine\PowerAppsTestEngine.csproj]
error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\data\TestAutomation\PowerApps-TestEngine\src\PowerAppsTestEngine\PowerAppsTestEngine.csproj]

installation.log

What is wrong ? Can you tell me if some settings are missing ?

Thanks for your help.

Dominant language
C#
Stars
150
Forks
55
Avg merge
5d 23h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/PowerApps-TestEngine

All issues in microsoft/PowerApps-TestEngine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.