Skip to content

Build failed, can not find package Microsoft.DotNet.ILCompiler.LLVM #57

@Riccsson

Description

@Riccsson

Using VS 2022 v17.11.4
Installed 8.0.11 SDK

Test.csproj:

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

  <PropertyGroup>
    <OutputType>Dll</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <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.4.0-preview00007" />
	  <PackageReference Include="WebAssembly" Version="1.2.1" />
	</ItemGroup>
</Project>

nuget.config (next to the .sln solution file):

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <!--To inherit the global NuGet package sources remove the <clear/> line below -->
    <clear />
    <add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />
    <add key="nuget" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

Trying to build, i got:

warning NU1604: Project dependency Microsoft.DotNet.ILCompiler.LLVM does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
warning NU1604: Project dependency runtime.win-x64.Microsoft.DotNet.ILCompiler.LLVM does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore re
error NU1101: Unable to find package runtime.win-x64.Microsoft.DotNet.ILCompiler.LLVM. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Pac
error NU1101: Unable to find package Microsoft.DotNet.ILCompiler.LLVM. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages, nuget.org

Something I have missed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions