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

Having difficulty installing the Componentize.DotNet package #64

Open
WhitWaldo opened this issue Dec 18, 2024 · 3 comments
Open

Having difficulty installing the Componentize.DotNet package #64

WhitWaldo opened this issue Dec 18, 2024 · 3 comments

Comments

@WhitWaldo
Copy link

I was reading about this project and tried following the demo. As expected, the following steps worked fine:

dotnet new console --name hello-wasm
cd hello-warm
dotnet new nugetconfig

Update nuget.config to reflect the following:

<?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>

The problem comes on the next step:

dotnet add package BytecodeAlliance.Componentize.DotNet.Wasm.SDK --prerelease

My console reads the following:

PS C:\Users\whit_\source\repos\WasmDotNet\hello-wasm> dotnet add package BytecodeAlliance.Componentize.DotNet.Wasm.SDK --prerelease
Build succeeded in 0.8s
info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
info : Adding PackageReference for package 'BytecodeAlliance.Componentize.DotNet.Wasm.SDK' into project 'C:\Users\whit_\source\repos\WasmDotNet\hello-wasm\hello-wasm.csproj'.
info : GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/fe324174-469a-4296-a9cb-1fd885bb6f2b/nuget/v3/registrations2-semver2/bytecodealliance.componentize.dotnet.wasm.sdk/index.json
info : NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/fe324174-469a-4296-a9cb-1fd885bb6f2b/nuget/v3/registrations2-semver2/bytecodealliance.componentize.dotnet.wasm.sdk/index.json 198ms
error: There are no versions available for the package 'BytecodeAlliance.Componentize.DotNet.Wasm.SDK'.
PS C:\Users\whit_\source\repos\WasmDotNet\hello-wasm>

I see the package on Nuget.org so I thought that perhaps the readme was out of date and I could just install from the public NuGet, but that still can't seen to find the package:

PS C:\Users\whit_\source\repos\WasmDotNet\hello-wasm> dotnet add package BytecodeAlliance.Componentize.DotNet.Wasm.SDK --prerelease
Build succeeded in 0.7s
info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
info : Adding PackageReference for package 'BytecodeAlliance.Componentize.DotNet.Wasm.SDK' into project 'C:\Users\whit_\source\repos\WasmDotNet\hello-wasm\hello-wasm.csproj'.
error: There are no versions available for the package 'BytecodeAlliance.Componentize.DotNet.Wasm.SDK'.
PS C:\Users\whit_\source\repos\WasmDotNet\hello-wasm>

What am I doing wrong? Thank you!

@jsturtevant
Copy link
Contributor

Interesting, I just tried this out and I am getting the initial 404 but then it finds it on nuget.org's package list:

 dotnet add package BytecodeAlliance.Componentize.DotNet.Wasm.SDK --prerelease

Build succeeded in 1.5s
info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
info : Adding PackageReference for package 'BytecodeAlliance.Componentize.DotNet.Wasm.SDK' into project 'C:\Users\jstur\projects\wasm-compontents\hello-wasm\hello-wasm.csproj'.
info :   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/fe324174-469a-4296-a9cb-1fd885bb6f2b/nuget/v3/registrations2-semver2/bytecodealliance.componentize.dotnet.wasm.sdk/index.json
info :   GET https://api.nuget.org/v3/registration5-gz-semver2/bytecodealliance.componentize.dotnet.wasm.sdk/index.json
info :   OK https://api.nuget.org/v3/registration5-gz-semver2/bytecodealliance.componentize.dotnet.wasm.sdk/index.json 79ms
info :   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/fe324174-469a-4296-a9cb-1fd885bb6f2b/nuget/v3/registrations2-semver2/bytecodealliance.componentize.dotnet.wasm.sdk/index.json 101ms
info : Restoring packages for C:\Users\jstur\projects\wasm-compontents\hello-wasm\hello-wasm.csproj...
info :   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/fe324174-469a-4296-a9cb-1fd885bb6f2b/nuget/v3/flat2/bytecodealliance.componentize.dotnet.wasm.sdk/index.json
info :   GET https://api.nuget.org/v3-flatcontainer/bytecodealliance.componentize.dotnet.wasm.sdk/index.json
info :   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/fe324174-469a-4296-a9cb-1fd885bb6f2b/nuget/v3/flat2/bytecodealliance.componentize.dotnet.wasm.sdk/index.json 119ms
info :   OK https://api.nuget.org/v3-flatcontainer/bytecodealliance.componentize.dotnet.wasm.sdk/index.json 75ms
info :   GET https://api.nuget.org/v3-flatcontainer/bytecodealliance.componentize.dotnet.wasm.sdk/0.5.0-preview00008/bytecodealliance.componentize.dotnet.wasm.sdk.0.5.0-preview00008.nupkg
info :   OK https://api.nuget.org/v3-flatcontainer/bytecodealliance.componentize.dotnet.wasm.sdk/0.5.0-preview00008/bytecodealliance.componentize.dotnet.wasm.sdk.0.5.0-preview00008.nupkg 279ms

Are you not seeing those additional look ups? What version of .NET are you using?

@WhitWaldo
Copy link
Author

Nope - the log is precisely as I pasted earlier. I'm running .NET 9.0.100 (per dotnet --version).

@jsturtevant
Copy link
Contributor

It looks like it's not finding the nuget package source. It should use the local one, but any chance you have configuration else where? https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior#how-settings-are-applied

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

2 participants