Zxing.net.mobile: Errors after installing

Created on 3 Nov 2018  路  10Comments  路  Source: Redth/ZXing.Net.Mobile

Errors after installing:

Severity    Code    Description Project File    Line    Suppression State
Error       Can not resolve reference: `zxing.portable`, referenced by `ZXing.Net.Mobile.Forms`. Please add a NuGet package or assembly reference for `zxing.portable`, or remove the reference to `ZXing.Net.Mobile.Forms`.    TicketReader.Android        ``` 



```Severity Code    Description Project File    Line    Suppression State
Error       Can not resolve reference: `ZXingNetMobile`, referenced by `ZXing.Net.Mobile.Forms.Android`. Please add a NuGet package or assembly reference for `ZXingNetMobile`, or remove the reference to `ZXing.Net.Mobile.Forms.Android`.    TicketReader.Android    ```     


```Severity Code    Description Project File    Line    Suppression State
Error       Can not resolve reference: `zxing.portable`, referenced by `ZXing.Net.Mobile.Forms`. Please add a NuGet package or assembly reference for `zxing.portable`, or remove the reference to `ZXing.Net.Mobile.Forms`.    TicketReader.Android            

Most helpful comment

I stumbled across this issue too, but managed to fix it. For anyone looking for a possible solution, pleas read on!

TLDR: Make sure you have installed ZXing.Net.Mobile AND ZXing.Net.Mobile.Forms in ALL target projects and the netstandard project!

So the problem is that MSBuild cannot find some .dlls which should be in the nupkg. The missing dlls are zxing.portable.dll and ZXingNetMobile.dll, and they come with the ZXing.Net.Mobile package, which is actually referenced as dependency of the *.Forms package, but there seems to be a NuGet or MSBuild bug that prevents this from resolving.

All 10 comments

I have the same problem

I stumbled across this issue too, but managed to fix it. For anyone looking for a possible solution, pleas read on!

TLDR: Make sure you have installed ZXing.Net.Mobile AND ZXing.Net.Mobile.Forms in ALL target projects and the netstandard project!

So the problem is that MSBuild cannot find some .dlls which should be in the nupkg. The missing dlls are zxing.portable.dll and ZXingNetMobile.dll, and they come with the ZXing.Net.Mobile package, which is actually referenced as dependency of the *.Forms package, but there seems to be a NuGet or MSBuild bug that prevents this from resolving.

Thank you, bruzkovsy. That fixed it for me.

Thanks bruzkovsky, you saved my time 馃憤

Thanks bruzkovsky, it work for me :)

It Is Ok

Worked for me!

it is posible that ZXing.Net.Mobile.Forms depends on ZXing.Net.Mobile to avoid this? I'm new to xamarin and I was lucky that found this, but for newcomers is hard to start and things like this can take time to fix... thanks you

The readme should be more clear about that I think. Many people are running into this.

3.0.0 should make this all work much more nicely!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

roelvdwater picture roelvdwater  路  6Comments

radioactiveman picture radioactiveman  路  7Comments

jhealy picture jhealy  路  6Comments

horacehylee picture horacehylee  路  7Comments

Zexuz picture Zexuz  路  6Comments