Comments (3)
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.
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.
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)
- `RawTexture.Height` is marked `internal`
- Use `TitleContainer.OpenStream` instead of `File.OpenRead()` HOT 1
- [Feature Request]: AnimatedSprite Update with `double` parameter HOT 2
- `TextureAtlas.FromRaw()` crashes when processing slices. HOT 2
- Creating issue to test github to discord feed. HOT 1
- `AnimatedSprite.Update(float)` and `AnimatedTilemap.Update(float)` both assume milliseconds when it should be seconds HOT 1
- `Slice.Origin` is not being set
- Dependency on DesktopGL causes DirectX projects to be forced to use OpenGL HOT 7
- [Feature Request]: Add Support For Aseprite 1.3-rc1 HOT 4
- Documentation lists incorrect `MonoGame.Aseprite.Processors` namespace HOT 1
- Error when building content. Pipeline needs reference to MonoGame.Aserpite assembly HOT 2
- broken links HOT 2
- example HOT 5
- [Feature Request]: aseprite 1.3 rc2 support HOT 2
- Slice rendering HOT 2
- [Feature Request]: support for .ase files HOT 1
- Add link to sample project under the "Getting started" section of the documentation. HOT 1
- `AsepriteFile.TryGetSlice(string, out AsepriteSlice)` Always Returns False HOT 1
- README links are all broken HOT 1
- Tilemap with flipped tiles renders in wrong orientation. HOT 1
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 monogame-aseprite.