Genbox / VelcroPhysics

High performance 2D collision detection system with realistic physics responses.
MIT License
672 stars 114 forks source link

NuGet not available #58

Closed SuperJMN closed 3 years ago

SuperJMN commented 5 years ago

Hey hello!

Is there any plan to release a NuGet package of this project? Thanks

Genbox commented 5 years ago

Yes. I want to target .NET Standard 2.0 and release a nuget package, but everything halted to a standstill because MonoGames have not moved to .NET Core yet. I'm also working on other projects right now, so the code in this repo is not quite there yet.

SuperJMN commented 5 years ago

@Genbox thanks for you quick response! I would like to take a look to the PR I've sent (https://github.com/VelcroPhysics/VelcroPhysics/pull/59). I could help with the NuGet packages if you wish.

Best regards!

Genbox commented 5 years ago

Thanks! I'll check it out.

SuperJMN commented 3 years ago

MonoGame is already .NET Standard! Will we get Nuget packages anytime soon? 😊

ambs commented 3 years ago

Looking forward to a NuGet package. It would allow me to use this library with my students more easily.

Genbox commented 3 years ago

There are still a lot of things not working right within the engine, so consider it alpha state for now. Nuget package is coming asap.

ambs commented 3 years ago

@Genbox Of course. But at least is looks like it is maintained. Chipmunk was my other choice and... forget it :-)

Genbox commented 3 years ago

Packages are up:

Let me know if they work as intended.

@SuperJMN could you unlist your packages on Nuget? Don't want a lot of support questions about which packages to use :)

ambs commented 3 years ago

When I try to use it directly on a Monogame project, bootstrapped using the dontnet mgdekstopgl template, I get:

error: Unable to find a stable package Genbox.VelcroPhysics.MonoGame with version (>= 0.0.0)
error:   - Found 1 version(s) in nuget.org [ Nearest version: 0.1.0-alpha ]
error: Package 'Genbox.VelcroPhysics.MonoGame' is incompatible with 'all' frameworks in project '/home/ambs/tmp/CM/CM.csproj'.

My .csproj here: https://gist.github.com/ambs/cda443d905f8527494fd84423d126dab

Thanks

Genbox commented 3 years ago

It is an alpha package, so you have to enable support for those. I've found the easiest way is to just add the PackageReference manually to the csproj file:

<PackageReference Include="Genbox.VelcroPhysics.MonoGame" Version="0.1.0-alpha" />

The csproj file should look like this:

  <ItemGroup>
    <PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" />
    <PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.0.1641" />
    <PackageReference Include="Genbox.VelcroPhysics.MonoGame" Version="0.1.0-alpha" />
  </ItemGroup>

Or you can use the Nuget Package Manager, but remember to put a check in the "Include prerelease" checkbox.

image

ambs commented 3 years ago

This worked: dotnet add package Genbox.VelcroPhysics -v 0.1.0-alpha

now I need time to read the tutorial :)

Genbox commented 3 years ago

Sounds good. Closing this issue.