Giter Club home page Giter Club logo

Comments (2)

BlackWhiteYoshi avatar BlackWhiteYoshi commented on July 28, 2024

It is unlikely that the generated attributes of AutoInterface influence the generation of Mapperly, because source generators are independent from each other. Each source generator gets as input the source code before any generation. A source generator cannot see the output of another generator, so for Mapperly the generated interfaces does not exist.

Maybe the problem is exactly that: Somewhere Mapperly needs to read an interface, but the interface is not present because it will be generated by AutoInterface and Mapperly is not able to see it. And when the interface is created manually, Mapperly has no problems finding the interface.

Another thing that is possible is when working with multiple .csproj/assemblies. When code is generated in the first .csproj and the second .csproj has a reference on the first .csproj, then the generated code of the first .csproj is visible for the generators of the second .csproj.
In this case the generated attributes of AutoInterface are visible to Mapperly, but the [Mapper]-attribute is not present at the interface, so it should not affect anything.

I want to wait until you pin-point the exact cause before making a decision, because I still think that the attributes do not harm and the cases they do harm are so rare, that this feature is not worth it.

In case you do not know, you can use <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> to save the generated source code to disk.
Good Luck

from autointerface.

ristogod avatar ristogod commented on July 28, 2024

The team was able to reproduce the bug without AutoInterface involved at all. So their initial assumptions were incorrect and therefore this feature request should not be needed. Thanks for the consideration.

from autointerface.

Related Issues (12)

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.