MrScautHD / Raylib-CSharp

A fast, Cross-platform Raylib C# Wrapper.
https://www.raylib.com/
MIT License
67 stars 5 forks source link

[BUG] #12

Closed OOaker closed 3 weeks ago

OOaker commented 2 months ago

Describe the bug PM> dotnet add package Raylib-CSharp --version 4.1.9 Determining projects to restore... Writing C:\Users\u230282\AppData\Local\Temp\tmp2jzceq.tmp 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 'Raylib-CSharp' into project 'Q:\VCS\Raylib-CSharp\Raylib-CSharp.csproj'. info : Restoring packages for Q:\VCS\Raylib-CSharp\Raylib-CSharp.csproj... error: NU1108: Cycle detected. error: Raylib-CSharp -> Raylib-CSharp (>= 4.1.9).

To Reproduce Use the proposed install solution "dotnet add package Raylib-CSharp --version 4.1.9"

Expected behavior That it installs

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

MrScautHD commented 2 months ago

what is the problem?

zapturk commented 2 months ago

It looks like you try to add the NuGet packages to .csproj in this repo. This would create a Cycle detection error due to the project containing the same namespace as the nuget package. I would recommend making a new c# project and then running the command to add the package.

dotnet new console -n mygame
dotnet add package Raylib-CSharp --version 4.1.9