Windows 10 App

HI,
I have created app in ionic for IOS and Android and it works perfectly fine on both platforms. Now I am trying to implement the same app for windows 10. But I am getting error:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2608,5): error APPX0002: Task ‘ValidateAppxManifest’ failed. Retrieving the COM class factory for component with CLSID {5842A140-FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 800700c1 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1). [C:\ionicDev\Test\platforms\windows\CordovaApp.Windows10.jsproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2608,5): error APPX0002: [C:\ionicDev\Test\platforms\windows\CordovaApp.Windows10.jsproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2608,5): error MSB4018: The “ValidateAppxManifest” task failed unexpectedly. [C:\ionicDev\Test\platforms\windows\CordovaApp.Windows10.jsproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2608,5): error MSB4018: System.BadImageFormatException: Retrieving the COM class factory for component with CLSID {5842A140-FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 800700c1 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1). [C:\ionicDev\Test\platforms\windows\CordovaApp.Windows10.jsproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2608,5): error MSB4018: at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.AppxInterop.AppxInteropHelpers.GetAppxManifestReaderFromManifestPath(String manifestPath) [C:\ionicDev\Test\platforms\windows\CordovaApp.Windows10.jsproj]

Followed this post :
Windows
still having problems, my cordova req ares:

cordova requirements

Requirements check results for windows:
Windows OS: installed Windows 10
MSBuild Tools: installed 15.8
Visual Studio: installed 14.0
Windows SDK: installed 10.0
Windows Phone SDK: installed 10.0

any help?

Thanks

solved.
I had too many version of VS installed with different environment variables. To fix it I removed these env variables.

Thanks