-
In .NET 7 it was possible to run import { dotnet } from './dotnet.js'
const config = {
"mainAssemblyName": "Test.dll",
"assemblyRootFolder": "managed",
"assets": [
{
"behavior": "assembly",
"buffer": ....,
"name": "System.Runtime.dll"
},
{
"behavior": "assembly",
"buffer": ....,
"name": "Test.dll"
},
{
"behavior": "dotnetwasm",
"buffer": ....,
"name": "dotnet.wasm"
}
]
};
dotnet.moduleConfig.configSrc = null; // required to force it not try to load config file.
const { getAssemblyExports, setModuleImports } = await dotnet.withConfig(config).create(); But .NET 8 now requires specifying |
Beta Was this translation helpful? Give feedback.
Answered by
maraf
Aug 17, 2023
Replies: 1 comment 2 replies
-
Resolved in #90392, right? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
elringus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolved in #90392, right?