Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Riccsson opened this issue Nov 13, 2024 · 2 comments
Open

Comments

@Riccsson
Copy link

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?

@yowl
Copy link
Contributor

yowl commented Nov 13, 2024

it doesn't seem to be picking up the packageSources , so something is up with the nuget.config

@jsturtevant
Copy link
Contributor

Is there another nuget.config closer to the project csproj? It looks like it is using a different configuration based on:

No packages exist with this id in source(s): 
C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages, 
[nuget.org](http://nuget.org/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants