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] Could not load file or assembly 'wix, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad' or one of its dependencies. #4474

Closed
mantou132 opened this issue Jun 26, 2022 · 5 comments

Comments

@mantou132
Copy link

mantou132 commented Jun 26, 2022

Describe the bug

When I build it on Windows, get the error below:

     Running [tauri_bundler::bundle::windows::msi::wix] candle for "main.wxs"
     Running [tauri_bundler::bundle::common] Command `./WixTools\candle.exe  -arch x64 main.wxs -dSourceDir=C:\Users\Mantou-PC\nesbox\target\release\NESBox.exe`
       Debug [tauri_bundler::bundle::common] Stderr:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'wix, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad' or one of its dependencies. The system cannot find the file specified.

Error: Try running with --verbose to see command output

Caused by:
    0: failed to bundle project
    1: error running candle.exe
    2: error running candle.exe
    3: `
       Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'wix, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad' or one of its dependencies. The system cannot find the file specified.

Reproduction

  1. clone https://github.com/mantou132/nesbox
  2. cd nesbox
  3. cargo tauri build --verbose

Expected behavior

No response

Platform and versions

Environment
  › OS: Windows 10.0.19044 X64
  › Webview2: 102.0.1245.44
  › MSVC: 
      - Visual Studio ���ɹ��� 2022
  › Node.js: 18.3.0
  › npm: 8.11.0
  › pnpm: Not installed!
  › yarn: 1.22.19
  › rustup: 1.24.3
  › rustc: 1.63.0-nightly
  › cargo: 1.63.0-nightly
  › Rust toolchain: nightly-x86_64-pc-windows-msvc 

Packages
  › @tauri-apps/cli [NPM]: 1.0.0-rc.13
  › @tauri-apps/api [NPM]: 1.0.0-rc.7

Stack trace

No response

Additional context

No response

@lucasfernog
Copy link
Member

Can you check the C:\Users\YOUR_USER_NAME\AppData\Local\tauri\WixTools folder? It should have several DLLs in there. If you delete it, we'll redownload it. I'll see if I can make some checks for it. Seems like you're missing the wix.dll file.

@mantou132
Copy link
Author

Can't find WixTools in AppData, it is decompressed into the project directory.
123

@lucasfernog
Copy link
Member

Can you delete that folder, update to tauri v1 and try again? We changed it.

@lucasfernog
Copy link
Member

Maybe you cleared the folder in a git checkout somehow, I'll improve the check.

@mantou132
Copy link
Author

Update tauri-cli to 1.0.0, the problem is solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants