<PropertyGroup>
<!-- WASI host applications need to grant access to specific disk paths, so ensure the output is within the current directory -->
- <OutputPath>bin/$(Configuration)/net7.0</OutputPath>
+ <OutputPath>bin/$(Configuration)/$(NetCoreAppCurrent)</OutputPath>
</PropertyGroup>
</Project>
include ../../Makefile.variable
include ../SampleMakefile.variable
-BIN_DIR=WasiConsoleApp/bin/Debug/net7.0
+BIN_DIR=WasiConsoleApp/bin/Debug/net8.0
all: console.wasm $(BIN_DIR)/WasiConsoleApp.dll
<PropertyGroup>
<OutputType>Exe</OutputType>
- <TargetFramework>net7.0</TargetFramework>
+ <TargetFramework>net8.0</TargetFramework>
<InvariantGlobalization>true</InvariantGlobalization>
<DebugType>embedded</DebugType>
+ <UseAppHost>false</UseAppHost>
</PropertyGroup>
</Project>
int main() {
// Assume the runtime pack has been copied into the output directory as 'runtime'
// Otherwise we have to mount an unrelated part of the filesystem within the WASM environment
- const char* app_base_dir = "./WasiConsoleApp/bin/Debug/net7.0";
+ const char* app_base_dir = "./WasiConsoleApp/bin/Debug/net8.0";
char* assemblies_path;
- asprintf(&assemblies_path, "%s:%s/runtime/native:%s/runtime/lib/net7.0", app_base_dir, app_base_dir, app_base_dir);
+ asprintf(&assemblies_path, "%s:%s/runtime/native:%s/runtime/lib/net8.0", app_base_dir, app_base_dir, app_base_dir);
add_assembly(app_base_dir, "WasiConsoleApp.dll");
mono_set_assemblies_path(assemblies_path);