runtime: native\myproject.ilc.rsp exited with code -2147483645.
Description
When I publish AOT application from VS 2022 Preview 1, I am getting,
Create AOT application using dotnet new api --aot
and copy paste my small project code. Build succeeded but publish is failing with,
test-aot -> C:\Users\myUser\test-aot\bin\Release\net8.0-windows\win-x64\test-aot.dll “C:\Users\myUser.nuget\packages\microsoft.dotnet.ilcompiler\8.0.0-preview.4.23259.5\build\findvcvarsall.bat” x64 Generating native code “C:\Users\myUser.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\8.0.0-preview.4.23259.5\tools\ilc” @“obj\Release\net8.0-windows\win-x64\native\test-aot.ilc.rsp” C:\Users\myUser.nuget\packages\microsoft.dotnet.ilcompiler\8.0.0-preview.4.23259.5\build\Microsoft.NETCore.Native.targets(270,5): Error MSB3073: The command ““C:\Users\myUser.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\8.0.0-preview.4.23259.5\tools\ilc” @“obj\Release\net8.0-windows\win-x64\native\test-aot.ilc.rsp”” exited with code -2147483645.
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Company.WebApplication1</RootNamespace>
<ServerGarbageCollection>false</ServerGarbageCollection>
<InvariantGlobalization>true</InvariantGlobalization>
<PublishAot>true</PublishAot>
<OutputType>WinExe</OutputType>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
The project is couple of files but depend upon some native library for reading.
Reproduction Steps
Create AOT application using dotnet new api --aot
And use,
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Company.WebApplication1</RootNamespace>
<ServerGarbageCollection>false</ServerGarbageCollection>
<InvariantGlobalization>true</InvariantGlobalization>
<PublishAot>true</PublishAot>
<OutputType>WinExe</OutputType>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
and reference some native library indirectly (means we reference a .net dll which referencing C++/C dll).
and call dotnet publish.
Expected behavior
Should be publish.
Actual behavior
Not publishing with error “exited with code -214748”
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 26 (14 by maintainers)
I got it - thanks!