-
Hi, When running
The rust toolchains are from the standalone msvc version of rust 1.76.0 and linked using As you can see, Tauri cannot seem to find the VS Build Tools even though it is installed and working. MSVC is part of the trusted softwares of my company, so it's installed like on any normal computer (in What bugs me out is that when running
Any idea how I can either tell cargo to not use this "--no-default-features" flag, find why cargo use a flag that msvc does not know or tell Tauri where the build tools are ? Thanks for your help! EDIT: tauri/tooling/cli/src/info/env_system.rs Lines 35 to 49 in a77be97 c:\Users\%USER%\MyApp\app\vswhere.exe -prerelease -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -requires Microsoft.VisualStudio.Component.Windows10SDK.* -format json -utf8 I get a json output with a lot of information. I don't know if it's a good idea to share every detail but what I understand is that VSWhere.exe gave me something back. In the Tauri dev function, I can see that it "only" checks if the output is an empty string. tauri/tooling/cli/src/info/env_system.rs Lines 205 to 214 in a77be97 So in theory it should be able to find the build tools but can't. I'm stuck again and don't understand why. I still need help or advice if anyone as an idea! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, does it work if you cd into the src-tauri dir and run |
Beta Was this translation helpful? Give feedback.
Update: I tried reinstalling the Build Tool to see if maybe there was an error in the installation. And I also tried creating a brand new project from scratch (I was building with the same project up until now). It now seems to dev and build just fine!
I think what was causing the error may be due to some link deep inside the conf not updating after installing/reinstalling the build tools or updating some dependencies with npm or cargo? 🤔
Right now in a new project I don't have the issue, but I still have it in the previous one. I'll assume it's a mistake on my part while trying to follow the quick start guide.
Still, It would be great to have a little bit more control over the verbosity …