Hello!
I've discovered an odd issue where I get an error stating my main.rs doesn't match what the app was built with even though it does. (Actually it specifically states main.rs doesn't match what main.rs was built with, which is kinda weird.)
After dismissing the dialog, debugging works as expected. The issue doesn't happen with Hello World but it does happen with the short snippet included below.
To reproduce:
- Populate
main.rs as follows:
fn main() {
let args: Vec<String> = std::env::args().collect();
dbg!(&args);
}
- Place a breakpoint on either line.
- Launch the app with debugging
- Receive this warning dialog:

- Dismiss the dialog, debugging will still work as expected
I can reproduce this with Visual Studio 2022 (17.5.2 -- latest stable) and Rust/Cargo 1.68.0.
Hello!
I've discovered an odd issue where I get an error stating my
main.rsdoesn't match what the app was built with even though it does. (Actually it specifically statesmain.rsdoesn't match whatmain.rswas built with, which is kinda weird.)After dismissing the dialog, debugging works as expected. The issue doesn't happen with Hello World but it does happen with the short snippet included below.
To reproduce:
main.rsas follows:I can reproduce this with Visual Studio 2022 (17.5.2 -- latest stable) and Rust/Cargo 1.68.0.