Giter Site home page Giter Site logo

Comments (5)

aelij avatar aelij commented on July 21, 2024 2

AFAIK the CLR only supports calling internal members with this attribute. So the Publicize task only transforms internal to public. But you can experiment, with the code perhaps it would work with private as well.

from ignoresaccesscheckstogenerator.

sturlath avatar sturlath commented on July 21, 2024

Thanks. I’ll look into it now that I know what the problem area is.

Somehow he manages to do it here https://www.strathweb.com/2018/10/no-internalvisibleto-no-problem-bypassing-c-visibility-rules-with-roslyn/ (evenhough I havent gotten that to work either 🙈)

from ignoresaccesscheckstogenerator.

TheFanatr avatar TheFanatr commented on July 21, 2024

Doesn't work for me either. I tried a whole bunch of combinations of everything from packages to source code in the assembly, and nothing works. I think it may be possible that the CLR team decided that the ability to make everything in a third party assembly public was too dangerous to give to people. Either that or having the .NET Core 3.0 preview installed is messing with CLR in a way that disables this functionality.

from ignoresaccesscheckstogenerator.

aelij avatar aelij commented on July 21, 2024

Closing as it doesn't seem possible

from ignoresaccesscheckstogenerator.

go-live-tech avatar go-live-tech commented on July 21, 2024

Actually calling private member does work. There's another package similar to this one, MakeTypesPublic, which works flawlessly with private members.

from ignoresaccesscheckstogenerator.

Related Issues (15)

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.