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

[Bug]: .NET nupkg apps may be broken on ARM platform #6072

Open
3 tasks done
chawyehsu opened this issue Aug 3, 2024 · 0 comments
Open
3 tasks done

[Bug]: .NET nupkg apps may be broken on ARM platform #6072

chawyehsu opened this issue Aug 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chawyehsu
Copy link
Member

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

wixtoolset

Expected/Current Behaviour

Current behavior:

Laptop in ~
❯ wix
Failed to load the dll from [C:\Users\[redacted]\AppData\Local\Microsoft\dotnet\host\fxr\8.0.3\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from C:\Users\[redacted]\AppData\Local\Microsoft\dotnet\host\fxr\8.0.3\hostfxr.dll failed
  - Installing .NET prerequisites might help resolve this problem.
     https://go.microsoft.com/fwlink/?linkid=798306
Laptop in ~
❯ ls C:\Users\[redacted]\AppData\Local\Microsoft\dotnet\host\fxr\8.0.3
hostfxr.dll*
Laptop in ~
❯ scoop which wix
~\scoop\apps\wixtoolset\current\wix.exe

Expected: the app should work fine.

Steps to Reproduce

This happens on the Windows ARM platform. You have to be using Windows ARM and then install `wixtoolset` to reproduce the issue. There might also be other .NET nupkg packages having the same issue, I haven't found out though.

Possible Solution

I don't currently have any suggestions on fixing this, but it seems that the app will break when it is a .NET nupkg package and it's extracted and installed through Scoop, while it works as expected when it's installed through dotnet tool install --global wix (taking wixtoolset for an example, all similar .NET packages may have the same issue).

Laptop in ~
❯ dotnet tool list --global
Package Id      Version      Commands
-------------------------------------
wix             5.0.0        wix
❯ ~\.dotnet\tools\wix.exe
WiX Toolset Core version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8
Copyright (c) .NET Foundation and contributors. All rights reserved.

Usage:
  wix [command] [options]

Options:
  -h|--help         Show command line help.
  --version         Display WiX Toolset version in use.
  --nologo          Suppress displaying the logo information.

Commands:
  build             Build a wixlib, package, or bundle.
  msi               Specialized operations for manipulating Windows Installer packages.
  burn              Specialized operations for manipulating Burn-based bundles.
  extension         Manage WiX extension cache.
  convert           Convert v3 source code to v4 source code.
  format            Ensure consistent formatting of source code.

Run 'wix [command] -h' for more information on a command.

For more information see: https://wixtoolset.org/

Scoop and Buckets Version

scoop --version
Current Scoop version:
859d1db5 (HEAD -> develop, tag: v0.5.2, origin/master, origin/develop, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
a91e282e6 (HEAD -> master, origin/master, origin/HEAD) [email protected]: Fix installer.script (#6071)

'extras' bucket:
731d8ce06 (HEAD -> master, origin/master, origin/HEAD) winsshterm: Update to version 2.37.0

'versions' bucket:
64781fc93 (HEAD -> master, origin/master, origin/HEAD) labplot-nightly: Update to version 7039

'dorado' bucket:
a72139f5 (HEAD -> master, origin/master, origin/HEAD) swift-nightly: Update to version 20240802.2

Scoop Config

irrelevant

PowerShell Version

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

@chawyehsu chawyehsu added the bug Something isn't working label Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant