-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Can't build large webassembly project in .net8 in Release/AOT #92100
Comments
As a workaround, try setting the WasmDedup msbuild property to 'false', i.e. |
Maybe related: #91802 |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionI have a pretty large project (roughly 100K LOC). I always get this error:
Is there a way to at least understand the underlying error, and see if you can fix it? The project is a webassembly project. Reproduction StepsThe csproj file:
If I uncomment those 2 lines, I get the error: The command line:
The profile file:
Expected behaviorThe project should build. Actual behaviorI get the error above. Regression?No response Known WorkaroundsThere are no workarounds I found ConfigurationConfiguration:
Other informationNo response
|
@vargaz Thanks for the workaround! Is there any way to know anything more about the load error? |
No idea about that one. |
That other error is some JS issue. Please try the latest RC and open another issue if the problem persists. |
@pavelsavara Thanks, will do! |
Description
I have a pretty large project (roughly 100K LOC).
It successfully builds in both .net6 and .net7.
Since the third preview of .net8, I've been trying to compile it with .net8 (so basically, each month, I'd get the latest preview, and retry).
I always get this error:
Is there a way to at least understand the underlying error, and see if you can fix it?
The project is a webassembly project.
Note: the solution compiles and runs in .net8 in debug mode no AOT, and in Release mode no AOT.
Reproduction Steps
The csproj file:
If I uncomment those 2 lines, I get the error:
The command line:
msbuild <proj>.net8.csproj -m -p:Configuration=Release /p:Platform="Any CPU" /p:DeployOnBuild=true;PublishProfile=.\Properties\PublishProfiles\FolderProfileAOT8.pubxml
The profile file:
Expected behavior
The project should build.
Actual behavior
I get the error above.
Regression?
No response
Known Workarounds
There are no workarounds I found
Configuration
Configuration:
Other information
No response
The text was updated successfully, but these errors were encountered: