Giter VIP home page Giter VIP logo

Comments (2)

MrJul avatar MrJul commented on July 17, 2024

It's not GitInfo that's the problem directly, but rather its dependency ThisAssembly.Constants.

The InjectConstantAdditionalFiles target depends on PrepareResourceNames.
This causes it to run much earlier in the build pipeline that normally, causing the issue. The EmbeddedResource added by Avalonia is only added after, doesn't get a target path and thus isn't embedded.

I'm not familiar with ThisAssembly targets so I don't know why this dependency is here. Usually extra files should be added before AssignTargetPaths (called by PrepareResourceNames) runs to get correct paths (here it's not a Content or EmbeddedResource so it doesn't matter).

The theoretical fix here should be to remove this dependency, as running before PrepareForBuild should be sufficient. In practice, I know from experience that finding the right MSBuild target to anchor to can cause some serious headaches :)

This could also be fixed on the Avalonia side by depending directly on AssignTargetPaths. However, I think ThisAssembly making AssignTargetPaths runs so soon might cause issues in other packages.

from gitinfo.

kzu avatar kzu commented on July 17, 2024

Thanks a lot @MrJul for the analysis! It was key to finding out a quick fix :)

from gitinfo.

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.