Giter Club home page Giter Club logo

Comments (3)

AristurtleDev avatar AristurtleDev commented on May 16, 2024

Hey @fdrobidoux I apologize, I'm just now seeing this, not sure how I missed it.

The pipeline dll isn't added as a reference to the project when the NuGet package is installed because it's not something used in code by the projects using the library. Because it's included as a content item in the NuGet package instead of a reference item, it doesn't get included when you do a build of the project. This is why it's not in the bin directory on output.

The get around the issue of the MGCB Editor referencing the dll by a relative path, you can opt to use a nuget.config file in your project directory. Doing this, you can set the globalPackagesFolder config value so that for the project, all NuGet packages download to the project root directory instead of the common global packages folder. This would help solve the relative path issue and ensure that the relative path the MGCB Editor uses is always relative to the project directory. An example of this would be

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="globalPackagesFolder" value="./.nuget/packages" />
  </config>
  <packageSources>
    <clear />
    <add key="nuget" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

The above config would put the packages in in the <projectRoot>/.nuget/packages/ directory. More info on the nuget.config file can be found at https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file.

I also have a sample project that uses this at https://github.com/AristurtleDev/monogame-aseprite-examples/tree/main/source/ContentPipelineExample

As for the other issue, the exception being thrown is from Newtonsoft.Json.JsonTextReader.ParseValue(). MonoGame.Aseprite doesn't use the Newtonoft.Json library, so I'm afraid this issue may be on your end?

I can look into this some more, but if possible, could you give the new version of MonoGame.Aseprite a go and see if you still get the same issue? Version 4.0.0 was just released earlier today. More info at https://github.com/AristurtleDev/monogame-aseprite/releases/tag/version%2F4.0.0

from monogame-aseprite.

fdrobidoux avatar fdrobidoux commented on May 16, 2024

Oh my god you're right it is on my end bwahahha. Sorry about that. Yeah I tried making my own and I got distracted. Guess I could give yours a try again, however I already kinda implemented it my own way.

Still, I'm gonna check out your version 4, might help inspire me.

from monogame-aseprite.

AristurtleDev avatar AristurtleDev commented on May 16, 2024

Sounds good, gonna close this issue out then. I've never experimented with NoPipeline but I'm aware of it. Might give it a go and see if I can come up with some examples for incorporating this library with it.

from monogame-aseprite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.