diff --git a/tests/runtime/main.rs b/tests/runtime/main.rs index 4be6d7df3..c739c8fa7 100644 --- a/tests/runtime/main.rs +++ b/tests/runtime/main.rs @@ -539,7 +539,7 @@ fn tests(name: &str, dir_name: &str) -> Result> { fs::write(dst, contents).unwrap(); } - let mut csproj = wit_bindgen_csharp::CSProject::new_mono( + let csproj = wit_bindgen_csharp::CSProject::new_mono( out_dir.clone(), &assembly_name, world_name, @@ -562,7 +562,7 @@ fn tests(name: &str, dir_name: &str) -> Result> { cmd.current_dir(&out_dir); - cmd.arg("build") + cmd.arg("publish") .arg(out_dir.join(format!("{camel}.csproj"))) .arg("-c") .arg("Debug") @@ -585,7 +585,7 @@ fn tests(name: &str, dir_name: &str) -> Result> { panic!("failed to compile"); } - let out_wasm = out_wasm.join("AppBundle").join(assembly_name); + let out_wasm = out_wasm.join(assembly_name); let mut wasm_filename = out_wasm.clone(); wasm_filename.set_extension("wasm");