Open melezhik opened 6 years ago
Hi guys! Any news here?
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.
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
The issue happened to be due to dependency on 10.0.14393.0
windows SDK:
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
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.
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 ... ):
Hi! I am building cordova project that uses
cordova-plugin-qrscanner
plugins and get following error:Any ideas hwo to deal with that?