componentize-dotnet icon indicating copy to clipboard operation
componentize-dotnet copied to clipboard

The project initialized on Mac cannot be compiled successfully.

Open liubiaoyong opened this issue 2 months ago • 3 comments

benliu@192 app10 % dotnet build
Restore complete (7.6s)
    info NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  app10 failed with 1 error(s) (0.2s) → bin/Debug/net10.0/wasi-wasm/app10.dll
    /Users/benliu/.nuget/packages/microsoft.dotnet.ilcompiler.llvm/10.0.0-alpha.1.25162.1/build/Microsoft.NETCore.Native.targets(363,5): error MSB3073: The command ""\tools\\ilc" @"obj/Debug/net10.0/wasi-wasm/native/app10.ilc.rsp"" exited with code 127.                                       
benliu@192 app10 % sw_vers
ProductName:            macOS
ProductVersion:         26.0.1
BuildVersion:           25A362
benliu@192 app10 % dotnet --version
10.0.100-rc.1.25451.107
steps:
dotnet new install BytecodeAlliance.Componentize.DotNet.Templates
 dotnet new componentize.wasi.cli  
dotnet build
benliu@192 app10 % cat app10.csproj 
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net10.0</TargetFramework>
    <RootNamespace>app10</RootNamespace>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
    <UseAppHost>false</UseAppHost>
    <PublishTrimmed>true</PublishTrimmed>
    <InvariantGlobalization>true</InvariantGlobalization>
    <SelfContained>true</SelfContained>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="BytecodeAlliance.Componentize.DotNet.Wasm.SDK" Version="0.7.0-preview*" />
    <PackageReference Include="runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm" Version="10.0.0-alpha.1.25162.1" />
  </ItemGroup>
</Project>

liubiaoyong avatar Oct 02 '25 12:10 liubiaoyong