-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Upgraded from 8.0.4 AspNetCore to 8.0.10 and now my production publish script breaks because of AOT. This is the command
dotnet publish /p:Configuration=REDACTED_TESTING /p:PublishDir="%localREDACTEDDevIISPublishDir%" "%REDACTEDSolutionDir%\Modules\REDACTEDAS" -p:RunAOTCompilation=true -p:BlazorEnableCompression=false
for which it seemed to AOT about 78 files, but then followed with:
[REDACTEDSAC.dll] Exec (with response file contents expanded) in
c:\REDACTED\Modules\REDACTEDAS\obj\REDACTED_TESTING\net8.0\linked:
MONO_PATH=
c:\REDACTED\Modules\REDACTEDAS\obj\REDACTED_TESTING\net8.0\linked;
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.10\runtimes\browser-wasm\native\;
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.10\runtimes\browser-wasm\lib\net8.0
MONO_ENV_OPTIONS=
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm\8.0.10\Sdk\..\tools\mono-aot-cross.exe --wasm-exceptions --debug --llvm
"--aot=no-opt,static,direct-icalls,deterministic,mattr=simd,dwarfdebug,
llvm-path=C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.win-x64\8.0.10\tools\bin\,
static,llvmonly,interp,asmonly,
llvm-outfile=c:\REDACTED\Modules\REDACTEDAS\obj\REDACTED_TESTING\net8.0\wasm\for-publish\REDACTEDSAC.dll.bc.tmp,
temp-path=c:\REDACTED\Modules\REDACTEDAS\obj\REDACTED_TESTING\net8.0\wasm\for-publish\REDACTEDSAC.dll.tmp" "REDACTEDSAC.dll"
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\8.0.10\Sdk\WasmApp.Native.targets(686,5): error :
Precompiling failed for c:\REDACTED\Modules\REDACTEDAS\obj\REDACTED_TESTING\net8.0\linked\REDACTEDServiceAdaptersCore.dll with exit code -1073741571. [c:\REDACTED\Modules\REDACTEDAS\REDACTEDAS.csproj]
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\8.0.10\Sdk\WasmApp.Native.targets(686,5): error : [c:\REDACTED\Modules\REDACTEDAS\REDACTEDAS.csproj]
Expected Behavior
Nothing in my build script changed, only the update to 8.0.10 broke AOT
Steps To Reproduce
Couldnt' produce an isolated example from my large codebase
Exceptions (if any)
No response
.NET Version
8.0.403
Anything else?
No response