MinimalDotNetWasmNativeAOT icon indicating copy to clipboard operation
MinimalDotNetWasmNativeAOT copied to clipboard

Non Windows Build Environment

Open Neo-vortex opened this issue 8 months ago • 0 comments

Is there a plan to support non windows build environment ? I am facing this error while running the build in ubuntu :

Generating native code
"/home/neo/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm/7.0.0-preview.5.23126.1/tools/ilc" @"obj/Debug/net8.0/wasi-wasm/native/StandaloneLibrary.ilc.rsp"
1>EXEC: Error  : invalid option --runtimeknob
1>Microsoft.NETCore.Native.targets(328,5): Error MSB3073 : The command ""/home/neo/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm/7.0.0-preview.5.23126.1/tools/ilc" @"obj/Debug/net8.0/wasi-wasm/native/StandaloneLibrary.ilc.rsp"" exited with code 1.
1>------- Finished building project: StandaloneLibrary. Succeeded: False. Errors: 2. Warnings: 0
Build completed in 00:00:01.009

my .csproj :

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <PublishTrimmed>true</PublishTrimmed>
    <InvariantGlobalization>true</InvariantGlobalization>
    <UseAppHost>false</UseAppHost>
    <SelfContained>true</SelfContained>
    <RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
    <MSBuildEnableWorkloadResolver>false</MSBuildEnableWorkloadResolver>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.DotNet.ILCompiler.LLVM" Version="8.0.0-preview.7.23503.1" />
    <PackageReference Include="runtime.linux-x64.Microsoft.DotNet.ILCompiler.LLVM" Version="7.0.0-preview.5.23126.1" />
  </ItemGroup>

  <!-- For simplicity, publish on build -->
  <Target Name="RunAotBuild" AfterTargets="Build" DependsOnTargets="Publish" />

</Project>

Neo-vortex avatar Oct 24 '23 11:10 Neo-vortex