-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recent WASM package have some issues. #2196
Comments
Maybe solution to this is publish of the but file |
I agree it looks like a package composition problem, presumably related to us starting to pick up upstream's integration into the SDK. |
experiencing the same problem (weirdly enough even if I use much older versions like |
@ruby0b what version of Net SDK do you have ? |
7.0.200, freshly installed (had to get a windows setup working for this) |
It is definitely odd to see this not working with the older package. I hope to get to investigating this issue soon. |
@ruby0b can you try |
Making some progress on this... The immediate problem is that the |
Looks like setting @kant2002, @ruby0b could you please confirm if using the following publish line:
Works for you? I will set this as the default in the package in that case, until the dust of SDK support settles at least. |
Only specific version which I mention works for me (probably other preview.4 bits would work too). Preview 5 require a bit of improvements. I add following file Microsoft.DotNet.ILCompiler.LLVM.props to
Literally borrowing https://github.com/dotnet/runtime/blob/1c6752813014463c93ae753ee45994284878f007/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.props and use
If I use |
Missing bit fo dotnet#2196 You would still required to have ``` <KnownILCompilerPack Update="Microsoft.DotNet.ILCompiler" TargetFramework="net7.0" ILCompilerPackNamePattern="runtime.**RID**.Microsoft.DotNet.ILCompiler.LLVM" ILCompilerPackVersion="7.0.0-preview.5.23113.1" ILCompilerRuntimeIdentifiers="browser-wasm;linux-musl-x64;linux-x64;win-x64;linux-arm;linux-arm64;linux-musl-arm;linux-musl-arm64;osx-arm64;osx-x64;win-arm;win-arm64;win-x86" /> ```
Using |
With this suggestion I can compile @kant2002's helloworld with both 7.0.0-preview.4.23079.1 and 7.0.0-preview.5.23113.1, but it appears there's a pretty significant Wasm size regression between the two versions. In particular, I'm using his helloworld.csproj with
for size reduction, and with 7.0.0-preview.4.23079.1 I'm getting 4.03MB helloworld.wasm in Release mode, while with 7.0.0-preview.5.23113.1 it results in 6.27MB - more than 1.5x increase. I wonder where is that coming from. |
This is definitely unexpected. I am not sure when we will get to investigating. Some notes if someone is interested in doing that:
|
Oh thanks, this is valuable. Perhaps worth documenting? |
It should be fixed s.t. that Edit: It should also be tested in CI. |
Ok with
|
Missing bit for #2196 You would still required to have ``` <KnownILCompilerPack Update="Microsoft.DotNet.ILCompiler" TargetFramework="net7.0" ILCompilerPackNamePattern="runtime.**RID**.Microsoft.DotNet.ILCompiler.LLVM" ILCompilerPackVersion="7.0.0-preview.5.23113.1" ILCompilerRuntimeIdentifiers="browser-wasm;linux-musl-x64;linux-x64;win-x64;linux-arm;linux-arm64;linux-musl-arm;linux-musl-arm64;osx-arm64;osx-x64;win-arm;win-arm64;win-x86" /> ```
@ruby0b thank you so much |
I update version of packages in my test project to
and now have issues.
I manage to fix this using following chages
and adding to file
microsoft.dotnet.ilcompiler.llvm\7.0.0-preview.5.23106.1\build\Microsoft.NETCore.Native.Browser.props
Even after that I receive following error
/cc @yowl and @SingleAccretion
The text was updated successfully, but these errors were encountered: