Skip to content

[bug] Could not load file or assembly 'wix, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad' or one of its dependencies. #4474

@mantou132

Description

@mantou132

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions