This project has moved. For the latest updates, please go here.

Error 3 'ZXing.Aztec.Internal.Detector.Point' is inaccessible due to its protection level C:\Nam\Projects\Barcode Reader\zxingnet-87567\trunk\Source\test\src\aztec\detector\DetectorTest.cs 195

Dec 2, 2013 at 3:29 AM
Thanks for spending your time to make zxing.NET.

I am trying to build zxing.test, but I can't pass this error:

Error 3 'ZXing.Aztec.Internal.Detector.Point' is inaccessible due to its protection level \trunk\Source\test\src\aztec\detector\DetectorTest.cs 195

Is it am I missing some configuration or is this a real bug?

Sorry if my question is dumb, I am new to .NET

Dec 2, 2013 at 9:43 PM
It's no error with the project. The test project uses a class which is classified as "internal" in the zxing project.
For that reason there is the following attribute in the zxing assembly (AssemblyInfo.cs):
[assembly: InternalsVisibleTo("zxing.test, PublicKey=0024000004800000140100000602000000240000525341310008000001000100014c9a01956f13a339130616473f69f975e086d9a3a56278936b12c48ca45a4ddfee05c21cdc22aedd84e9468283127a20bba4761c4e0d9836623fc991d562a508845fe314a435bd6c6ff4b0b1d7a141ef93dc1c62252438723f0f93668288673ea6042e583b0eed040e3673aca584f96d4dca19937fbed30e6cd3c0409db82d5c5d2067710d8d86e008447201d99238b94d91171bb0edf3e854985693051ba5167ca6ae650aca5dd65471d68835db00ce1728c58c7bbf9a5d152f491123caf9c0f686dc4e48e1ef63eaf738a12b3771c24d595cc5a5b5daf2cc7611756e9ba3cc89f08fb9adf39685bd5356858c010eb9aa8a767e5ef020408e0c9746cbb5a8")]
That makes the internal types visible to the test assembly.
But it uses the public key token of the internal signing key. You doesn't have that key.
If you have used your own key you have to change the value of the PublicKey=... to your own key.
Or you remove the signing of the assemblies and remove the PublicKey=... value completly.