Error while installing Developer's System package

I installed the 9.24.2 version of opentap post which trying to install the latest version of package manager using “tap package install Developer’s System”. It gives me the below error

A fatal error was encountered. The library ‘hostpolicy.dll’ required to execute the application was not found in ‘C:\Program Files\dotnet’.
Failed to run as a self-contained app.

  • The application was run as a self-contained app because ‘C:\Program Files\OpenTAP\tap.runtimeconfig.json’ was not found.
  • If this should be a framework-dependent app, add the ‘C:\Program Files\OpenTAP\tap.runtimeconfig.json’ file and specify the appropriate framework.

I have dot net runtimes of version 6, 8 and 9 installed and hostpolicy.dll available under the C:\Program Files\dotnet\shared folder as shown below

It seems to work on some other PCs though. Please guide on what needs to be done. Earlier I used to be able to install “Developer’s System CE” but that doesnt seem to be available anymore

Hi @shwethakh,

It sounds like the tap.runtimeconfig.json file is missing. Normally it should be there if you are using the .net 9 variant of opentap, however 9.24.2 is for .net framework, but maybe everything got updated when you did “tap package install”.

Could you try running this in your cmd from the installation folder?

dotnet tap.dll package list --installed