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

Unable to resolve Raylib-cs #2

Closed
Jessseee opened this issue Jul 21, 2023 · 3 comments
Closed

Unable to resolve Raylib-cs #2

Jessseee opened this issue Jul 21, 2023 · 3 comments

Comments

@Jessseee
Copy link

Jessseee commented Jul 21, 2023

I am not too familiar with C#, so maybe this has an easy fix. But, after installing .NET 6.0, when building the project in Rider, it is unable to resolve Raylib-cs for .NET 6.0.

Chess-Challenge.csproj: [NU1100] Unable to resolve 'Raylib-cs (>= 4.5.0.2)' for 'net6.0'.

@kornelhorvath
Copy link

You might need to re-install the NuGet packages in the project

@Jessseee
Copy link
Author

When trying to add the package with NuGet, I get the following error:

PS D:\Projects\Chess-Challenge\Chess-Challenge> dotnet add package Raylib-cs --version 4.5.0.2
  Determining projects to restore...
  Writing C:\Users\___\AppData\Local\Temp\tmp4733.tmp
info : X.509 certificate chain validation will use the default trust store selected by .NET.
info : X.509 certificate chain validation will use the default trust store selected by .NET.
info : Adding PackageReference for package 'Raylib-cs' into project 'D:\Projects\Chess-Challenge\Chess-Challenge\Chess-Challenge.csproj'.
info : Restoring packages for D:\Projects\Chess-Challenge\Chess-Challenge\Chess-Challenge.csproj...
error: NU1100: Unable to resolve 'Raylib-cs (>= 4.5.0.2)' for 'net6.0'.
error: Package 'Raylib-cs' is incompatible with 'all' frameworks in project 'D:\Projects\Chess-Challenge\Chess-Challenge\Chess-Challenge.csproj'.

And when trying to restore the project I get this:

PS D:\Projects\Chess-Challenge\Chess-Challenge> dotnet restore .\Chess-Challenge.csproj
  Determining projects to restore...
D:\Projects\Chess-Challenge\Chess-Challenge\Chess-Challenge.csproj : error NU1100: Unable to resolve 'Raylib-cs (>= 4.5.0.2)' for 'net6.0'.
  Failed to restore D:\Projects\Chess-Challenge\Chess-Challenge\Chess-Challenge.csproj (in 125 ms).

@Jessseee
Copy link
Author

Jessseee commented Jul 21, 2023

Okay, cool. Apparently nuget.org is not included as a package source by default. Adding it fixed my issue.

image

LeCodeurDuDimanche added a commit to LeCodeurDuDimanche/Chess-Challenge that referenced this issue Jul 29, 2023
commit 4910c3c
Author: Paul Spooner <dudecon@hotmail.com>
Date:   Wed Jul 26 16:39:55 2023 -0700

    Complete manual code merge

commit 2a34ba0
Merge: 4511eb7 960655c
Author: Paul Spooner <dudecon@hotmail.com>
Date:   Wed Jul 26 16:36:42 2023 -0700

    Merge branch 'main' of https://github.com/SebLague/Chess-Challenge into Human-Undo

commit 960655c
Author: Sebastian Lague <sebastlague@gmail.com>
Date:   Thu Jul 27 00:01:07 2023 +0200

    Bump version 1.16

commit 4511eb7
Author: Paul Spooner <dudecon@hotmail.com>
Date:   Mon Jul 24 22:11:05 2023 -0700

    Undo improved

    Fixed board highlighting
    Fixed multi-undo soft lock when first player is bot.
    Fixed both human players able to move on undo

commit 166d2ba
Author: Paul Spooner <dudecon@hotmail.com>
Date:   Mon Jul 24 18:56:15 2023 -0700

    Undo implemented

    To-Do:
    Update board highlighting
    Debug both players able to move on undo, resulting in possible illegal moves
    Debug multi-undo soft lock when first player is bot.

commit ad1b714
Merge: 87a2ef3 930ba57
Author: Paul Spooner <dudecon@hotmail.com>
Date:   Sun Jul 23 20:44:48 2023 -0700

    Merge pull request SebLague#2 from harrisi/human-vs-human

    add human vs human button

commit 930ba57
Author: Ian Harris <ian@fofgof.xyz>
Date:   Sat Jul 22 16:06:53 2023 -0700

    add human vs human button
artm pushed a commit to artm/Chess-Challenge that referenced this issue Aug 2, 2023
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