bitpay / cordova-plugin-qrscanner

A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
MIT License
568 stars 772 forks source link

The package Microsoft.CSharp with version 4.0.0 could not be found error when try to build cordova project which uses cordova-plugin-qrscanner #199

Open melezhik opened 5 years ago

melezhik commented 5 years ago

Hi! I am building cordova project that uses cordova-plugin-qrscanner plugins and get following error:

Any ideas hwo to deal with that?


>npm run ionic -- cordova build windows --debug -- --arch=x86 
2018-10-03T19:55:52.7912574Z 
2018-10-03T19:55:52.7913188Z > App@0.0.1 ionic C:\agent03\_work\5\s
2018-10-03T19:55:52.7913318Z > ionic "cordova" "build" "windows" "--debug" "--" "--arch=x86"
2018-10-03T19:55:52.7913360Z 
2018-10-03T19:55:54.4517929Z > npm run ionic:build -- --target cordova --platform windows --arch=x86
2018-10-03T19:55:56.4570794Z 
2018-10-03T19:55:56.4576394Z > MobileCMMS@0.0.1 ionic:build C:\agent03\_work\5\s
2018-10-03T19:55:56.4577045Z > npm run lint && ionic-app-scripts build "--target" "cordova" "--platform" "windows" "--arch=x86"
2018-10-03T19:55:56.4578293Z 
2018-10-03T19:55:58.4328539Z 
2018-10-03T19:55:58.4329228Z > App@0.0.1 lint C:\agent03\_work\5\s
2018-10-03T19:55:58.4329837Z > ionic-app-scripts lint
2018-10-03T19:55:58.4329884Z 
2018-10-03T19:56:27.1263271Z [14:56:27]  ionic-app-scripts 3.2.0 
2018-10-03T19:56:27.1435928Z [14:56:27]  lint started ... 
2018-10-03T19:56:57.3011244Z [14:56:57]  lint finished in 30.16 s 
2018-10-03T19:57:01.6601198Z [14:57:01]  ionic-app-scripts 3.2.0 
2018-10-03T19:57:01.6770943Z [14:57:01]  build dev started ... 
2018-10-03T19:57:01.8216683Z [14:57:01]  clean started ... 
2018-10-03T19:57:01.9478594Z [14:57:01]  clean finished in 140 ms 
2018-10-03T19:57:01.9480046Z [14:57:01]  copy started ... 
2018-10-03T19:57:03.0444442Z [14:57:03]  deeplinks started ... 
2018-10-03T19:57:03.8786885Z [14:57:03]  deeplinks finished in 828 ms 
2018-10-03T19:57:03.8790483Z [14:57:03]  transpile started ... 
2018-10-03T19:57:26.1459721Z [14:57:26]  transpile finished in 22.27 s 
2018-10-03T19:57:26.1460219Z [14:57:26]  preprocess started ... 
2018-10-03T19:57:26.1467783Z [14:57:26]  preprocess finished in less than 1 ms 
2018-10-03T19:57:26.1472027Z [14:57:26]  webpack started ... 
2018-10-03T19:58:04.5953289Z [14:58:04]  copy finished in 62.64 s 
2018-10-03T19:58:04.9424884Z [14:58:04]  webpack finished in 38.80 s 
2018-10-03T19:58:04.9427076Z [14:58:04]  sass started ... 
2018-10-03T19:58:10.5712054Z [14:58:10]  sass finished in 5.63 s 
2018-10-03T19:58:10.5714409Z [14:58:10]  postprocess started ... 
2018-10-03T19:58:10.7003660Z [14:58:10]  postprocess finished in 125 ms 
2018-10-03T19:58:10.7005875Z [14:58:10]  lint started ... 
2018-10-03T19:58:30.3947605Z [14:58:30]  lint finished in 19.69 s 
2018-10-03T19:58:30.3948708Z [14:58:30]  build dev finished in 88.72 s 
2018-10-03T19:58:30.6371371Z > cordova build windows --debug --arch=x86
2018-10-03T19:58:33.0477066Z 
2018-10-03T19:58:33.0477699Z You have been opted out of telemetry. To change this, run: cordova telemetry on.
2018-10-03T19:58:41.6424298Z "resources\windows\SplashScreen.scale-200.png" file size exceeds the limit of 204800 bytes, skipping.
2018-10-03T19:58:41.6429711Z "resources\windows\SplashScreen.scale-400.png" file size exceeds the limit of 204800 bytes, skipping.
2018-10-03T19:58:41.6437931Z "resources\windows\SplashScreen.scale-200.png" file size exceeds the limit of 204800 bytes, skipping.
2018-10-03T19:58:41.6440388Z "resources\windows\SplashScreen.scale-400.png" file size exceeds the limit of 204800 bytes, skipping.
2018-10-03T19:58:41.6448906Z "resources\windows\SplashScreen.scale-200.png" file size exceeds the limit of 204800 bytes, skipping.
2018-10-03T19:58:41.6452090Z "resources\windows\SplashScreen.scale-400.png" file size exceeds the limit of 204800 bytes, skipping.
2018-10-03T19:58:44.4683927Z Building project: C:\agent03\_work\5\s\platforms\windows\CordovaApp.Windows10.jsproj
2018-10-03T19:58:44.4684467Z    Configuration : debug
2018-10-03T19:58:44.4684607Z    Platform      : x86
2018-10-03T19:58:45.4069200Z   Patching 10 in prebuild event...
2018-10-03T19:58:45.5773284Z   Injected base.js reference to the www/index.html
2018-10-03T19:58:45.5776328Z   Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s*<\/script>)(\s*)/ from www/index.html
2018-10-03T19:58:45.5885025Z   Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base.js">\s*<\/script>)(\s*)/ from www/index.html
2018-10-03T19:58:47.2831425Z   SQLite3.UWP.vcxproj -> C:\agent03\_work\5\s\plugins\cordova-sqlite-storage\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.UWP\debug\SQLite3.UWP\SQLite3.UWP.dll
2018-10-03T19:58:47.7845381Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(186,5): error : The package Microsoft.CSharp with version 4.0.0 could not be found in C:\WINDOWS\system32\config\systemprofile\.nuget\packages. Run a NuGet package restore to download the package. [C:\agent03\_work\5\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
2018-10-03T19:58:48.4394770Z   ADAL3WinMDProxy -> C:\agent03\_work\5\s\plugins\cordova-plugin-ms-adal\src\windows\lib\adal3\bin\x86\Debug\ADAL3WinMDProxy.winmd
2018-10-03T19:58:48.4836022Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(5682,5): warning APPX1901: The DefaultLanguage property is either missing from the project file or does not have a value. The fallback language is set to the Visual Studio language: en-US. [C:\agent03\_work\5\s\plugins\cordova-plugin-ms-adal\src\windows\lib\adal3\ADAL3WinMDProxy.csproj]
2018-10-03T19:58:48.6355210Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe: Command failed with exit code 1
2018-10-03T19:59:04.5640840Z [ERROR] An error occurred while running subprocess cordova.
2018-10-03T19:59:04.5641240Z         
2018-10-03T19:59:04.5641324Z         cordova build windows --debug --arch=x86 exited with exit code 1.
2018-10-03T19:59:04.5641384Z         
2018-10-03T19:59:04.5641477Z         Re-running this command with the --verbose flag may provide more information.
melezhik commented 5 years ago

Hi guys! Any news here?

melezhik commented 5 years ago

fixed by installing missing windows SDK, but I only knew about that once I opened QRReader.csproj in visual studio and tried to build it. It would be nice if we can see that through cordova command line build.

melezhik commented 5 years ago

Sorry, the issue appeared again, now it is (after installing SDk UAP version 10.0.14393.0 ):

C:\agent04\_work\17\s>npm run -- cordova build windows --debug --arch=x86

> cordova "build" "windows" "--debug" "--arch=x86"

"resources\windows\SplashScreen.scale-200.png" file size exceeds the limit of 204800 bytes, skipping.
"resources\windows\SplashScreen.scale-400.png" file size exceeds the limit of 204800 bytes, skipping.
"resources\windows\SplashScreen.scale-200.png" file size exceeds the limit of 204800 bytes, skipping.
"resources\windows\SplashScreen.scale-400.png" file size exceeds the limit of 204800 bytes, skipping.
"resources\windows\SplashScreen.scale-200.png" file size exceeds the limit of 204800 bytes, skipping.
"resources\windows\SplashScreen.scale-400.png" file size exceeds the limit of 204800 bytes, skipping.
Building project: C:\agent04\_work\17\s\platforms\windows\CordovaApp.Windows10.jsproj
        Configuration : debug
        Platform      : x86
  Patching 10 in prebuild event...
  Injected base.js reference to the www/index.html
  Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s*<\/script>)(\s*)/ from www/index.html
  Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base.js">\s*<\/script>)(\s*)/ from www/index.html
  SQLite3.UWP.vcxproj -> C:\agent04\_work\17\s\plugins\cordova-sqlite-storage\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.UWP\debug\SQLite3.UWP\SQLite3.UWP.dll
CameraRotationHelper.cs(2,15): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17
\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(3,15): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17
\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(4,15): error CS0234: The type or namespace name 'Graphics' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\1
7\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(5,15): error CS0234: The type or namespace name 'Media' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17\s
\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(6,15): error CS0234: The type or namespace name 'Storage' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17
\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(6,15): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17\s\plugi
ns\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(8,15): error CS0234: The type or namespace name 'Media' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17\s\plugins
\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(9,15): error CS0234: The type or namespace name 'Media' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17\s\plugins
\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(10,18): error CS0234: The type or namespace name 'Core' does not exist in the namespace 'Windows.UI' (are you missing an assembly reference?) [C:\agent04\_work\17\s\plug
ins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
Reader.cs(19,19): error CS0234: The type or namespace name 'Graphics' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17\s\plugins\c
ordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
Reader.cs(20,19): error CS0234: The type or namespace name 'Media' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17\s\plugins\cord
ova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
Reader.cs(21,19): error CS0234: The type or namespace name 'Media' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17\s\plugins\cord
ova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
Reader.cs(22,19): error CS0234: The type or namespace name 'Media' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\agent04\_work\17\s\plugins\cord
ova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(34,56): error CS0246: The type or namespace name 'EnclosureLocation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04
\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(42,16): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04
\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(59,16): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04
\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(82,16): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04
\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
Reader.cs(44,32): error CS0246: The type or namespace name 'MediaCapture' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\17\s\plugins
\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(102,83): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(102,23): error CS0246: The type or namespace name 'PhotoOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04
\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(118,70): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(134,80): error CS0246: The type or namespace name 'DisplayOrientations' could not be found (are you missing a using directive or an assembly reference?) [C:\agen
t04\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(134,17): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(163,60): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(163,24): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
Reader.cs(49,16): error CS0246: The type or namespace name 'IAsyncOperation<>' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\17\s\pl
ugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(176,58): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(176,79): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(176,24): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(22,23): error CS0246: The type or namespace name 'IAsyncOperation<>' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\1
7\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(184,63): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(184,84): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(184,24): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(193,77): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(193,23): error CS0246: The type or namespace name 'VideoRotation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_w
ork\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(209,24): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(46,23): error CS0246: The type or namespace name 'IAsyncOperation<>' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\1
7\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(67,16): error CS0246: The type or namespace name 'MediaCapture' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\17\s\p
lugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(225,65): error CS0246: The type or namespace name 'SimpleOrientationSensor' could not be found (are you missing a using directive or an assembly reference?) [C:\
agent04\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(225,97): error CS0246: The type or namespace name 'SimpleOrientationSensorOrientationChangedEventArgs' could not be found (are you missing a using directive or a
n assembly reference?) [C:\agent04\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(238,60): error CS0246: The type or namespace name 'DisplayInformation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent
04\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
Reader.cs(29,17): error CS0246: The type or namespace name 'MediaCapture' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\17\s\plugins
\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(249,17): error CS0246: The type or namespace name 'SimpleOrientation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(96,54): error CS0246: The type or namespace name 'MediaCapture' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\17\s\p
lugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
Reader.cs(30,17): error CS0246: The type or namespace name 'ImageEncodingProperties' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\1
7\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(21,37): error CS0246: The type or namespace name 'EnclosureLocation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04
\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(12,17): error CS0246: The type or namespace name 'EnclosureLocation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04
\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(72,30): error CS0246: The type or namespace name 'MediaCapture' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\17\s\p
lugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(13,17): error CS0246: The type or namespace name 'DisplayInformation' could not be found (are you missing a using directive or an assembly reference?) [C:\agent0
4\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
CameraRotationHelper.cs(14,17): error CS0246: The type or namespace name 'SimpleOrientationSensor' could not be found (are you missing a using directive or an assembly reference?) [C:\a
gent04\_work\17\s\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
VideoCapture.cs(70,17): error CS0246: The type or namespace name 'CoreDispatcher' could not be found (are you missing a using directive or an assembly reference?) [C:\agent04\_work\17\s
\plugins\cordova-plugin-qrscanner\src\windows\QRReader\QRReader.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe: Command failed with exit code 1
melezhik commented 5 years ago

The issue happened to be due to dependency on 10.0.14393.0 windows SDK:

https://github.com/bitpay/cordova-plugin-qrscanner/blob/master/src/windows/QRReader/QRReader.csproj#L14-L15

Please be aware that this version of SDK has installation trouble on some windows servers, after changing this version to whatever available on my server (10.0.17134.0) the plugin gets compiled

Yashmalla commented 5 years ago

I am also getting this error on 10.0.17763.0 Windows SDK. I tried changing TargetPlatformVersion and TargetPlatformMinVersion to 10.0.17763.0 but it still gives me the same error as you got. I am wondering what else did you change to make it work for you.

melezhik commented 5 years ago

Hi @Yashmalla , don't not even know ): now

I have made quite a number changes, so that don't remember exactly what I've done to succeed ... I know for sure I tried to change SDK version requirements in csproj file as well installed fresher SDK ( because 10.0.14393.0 failed to install on my machine ).

I still believe that cordova-plugin-qrscanner maintainers are best persons to address this issue, but they seem answer nothing ... ):