Comments (5)
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.
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.
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.
Closing as it doesn't seem possible
from ignoresaccesscheckstogenerator.
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)
- System.ArgumentException: An item with the same key has already been added. HOT 9
- .NET Core 2 Release giving IgnoresAccessChecksToGenerator.targets(12,5): error MSB4044: The "PublicizeInternals" task was not given a value for the required parameter "AssemblyNames". HOT 1
- Should InternalsAssemblyNames be an MSBuild Item, not a Property? HOT 8
- AssemblyResolutionException when publicizing internals on .Net Framework 4.6 HOT 2
- Doesn't work with WPF projects HOT 13
- Error "Could not load file or assembly ***" when I use it in console app (but it works in tests project) HOT 3
- unknown build error HOT 2
- Maybe remove old Generated Assemblys on clean of project/solution HOT 1
- Monodevelop: analyzer uses original reference instead of generated one HOT 2
- Add supports F# HOT 1
- Incremental build issues with IgnoresAccessChecksTo.cs HOT 1
- Suggestion HOT 4
- [Feature Request] Add `<autogenerated />` comment to generated file header
- internal properties HOT 13
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 ignoresaccesscheckstogenerator.