Comments (8)
Thanks, creating a token to read packages and adding it to NuGet.Config fixed the error.
from feliz.materialui.
Used the following workaround:
Cloned this repository (also forked it but that should not matter)
Run ./build.sh Pack
Added local package source to NuGet.Config --> <add key="MySource" value="/abc/nugetsource" />
Published packages to local package source:
dotnet nuget push ".../Feliz.MaterialUI/dist/Feliz.MuiX.DatePickers.5.0.0-beta.2.nupkg" --source "MySource"
dotnet nuget push ".../Feliz.MaterialUI/dist/Feliz.MuiX.DatePickersPro.5.0.0-beta.2.nupkg" --source "MySource"
dotnet nuget push ".../Feliz.MaterialUI/dist/Feliz.MaterialUI.Icons.5.10.0-beta.2.nupkg" --source "MySource"
dotnet nuget push ".../Feliz.MaterialUI/dist/Feliz.MaterialUI.5.11.0-beta.2.nupkg" --source "MySource"
Updated Version of Feliz.MaterialUI PackageReference to "5.11.0-beta.2"
Run dotnet restore
from feliz.materialui.
Hello,
excuse me, I haven't seen this issue, because somehow there haven't been any notifications. Thanks for creating it, actually I have no real experience in configuring such things properly, so no wonder I missed something. I will apply the suggested fixes later today 👌
from feliz.materialui.
Hi,
it is not really a suggested fix but a workaround. It will not fix the problem that there is no simple way to install the package.
I suppose the package must be hosted on nuget.org.
from feliz.materialui.
But wouldn't it (installing from the Github packages) be as simple as from nuget.org, if the Github package source is registered as a Nuget-package source on the consumer side (i.e. it is listed either in the project's NuGet.config
, or in the global NuGet.config
)?
from feliz.materialui.
@inouiw when you were trying referencing the package from GitHub, were you authenticated via Github (i.e. have you provided your Github Access Token)? Seems like Github requires at least a basic authentication even to download public packages (link to the corresponding docs). So this could be the only complication in comparison with nuget.org, however it's quite bearable.
from feliz.materialui.
When I open the url https://nuget.pkg.github.com/ArtemyB/index.json then I get a basic auth popup. If I enter my github credentials then the index.json is displayed.
However when I try to install the package, after configuring the package source as <add key="GuthubArtgemB" value="https://nuget.pkg.github.com/ArtemyB/index.json" />
then nuget tries to open the url https://nuget.pkg.github.com/ArtemyB/download/feliz.materialui/index.json and I get the error Please ensure your access token is valid and has the appropriate scopes configured.
. Opening second url in the browser does also show the basic auth popup (if I did not authenticate before) but after authenticating gives the same error message.
I tried installing the package with the following command: dotnet add package Feliz.MaterialUI --version 5.11.0-beta.1
from feliz.materialui.
Ah, got it. So in fact you were installing the package without authentication, what Github does not allow (according to the docs). To be able to install the package via dotnet
or nuget
, you should provide the proper authentication configuration to it (that should be set up in your Github profile beforehand). Here is the corresponding docs: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry#authenticating-with-a-personal-access-token
Yep, it's a bit tedious. The good part is the token properly set up once should be usable for all the public Github package registries.
from feliz.materialui.
Related Issues (6)
- `anchorPosition` prop (e.g. of Menu, Popover) should accept `float`s, not just `int`s
- Generated `box` type shadows implicitly imported FSharp.Core's `box` (`FSharp.Core.Operators.box`) function
- Did you try to become the maintainer of the origin repository? HOT 1
- Incorrect binding to the `renderOption` prop of the `Autocomplete` component
- Emotion bindings? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feliz.materialui.