[
https://issues.apache.org/jira/browse/CB-10264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikhil Khandelwal resolved CB-10264.
------------------------------------
Resolution: Fixed
> The processor architecture of the project being built "Any CPU" is not
> supported by the referenced SDK
> ------------------------------------------------------------------------------------------------------
>
> Key: CB-10264
> URL: https://issues.apache.org/jira/browse/CB-10264
> Project: Apache Cordova
> Issue Type: Bug
> Components: Windows
> Environment: Cordova 5.1.1
> [email protected]
> Microsoft Windows Server 2012 R2
> Visual Studio Community 2015 Version 14.0.24720.00 Update 1
> Microsoft .NET Framework Version 4.6.01055
> Reporter: Jerroyd Moore
> Assignee: Raghav
> Labels: triaged
>
> I run regression tests against [email protected] and [email protected] creating
> Windows 8.0 apps, Windows Phone 8.1 apps, and Windows 10 UAP apps.
> Today, I updated my tests for [email protected] and changed the pinned version
> for cordova-windows from 4.0.0 to 4.2.0. This did not impact Windows 8.0,
> Windows Phone 8.1, but all Windows 10 builds started failing.
> [Looking at what changed in win10's csproj
> file|https://github.com/apache/cordova-windows/compare/4.0.0...4.2.0#diff-46174df0be76fc819cae8e3f464bfe56],
> UseDotNetNativeToolchain was added to ProjectConfigurations.
> More importantly, when I run the same tests on my local machine (Windows 8.1,
> Visual Studio 2015 Enterprise 2015 V14.0.23107.9 D14REL. MSFT NET Framework
> 4.6.0081), the tests succeed.
> {code}
>
> Execute[d:\TestBuilds\f5adst0y.zer\Windows10-cordova511-BadWin10AppVersion]
> -> node D:\Developer\cordova\5.1.1\node_m
> odules\cordova\bin\cordova compile windows --verbose --release -- --verbose
> out: Running command: cmd "/s /c
> "d:\TestBuilds\f5adst0y.zer\Windows10-cordova511-BadWin10AppVersion\platforms\window
> s\cordova\build.bat --release --verbose""
> out: MSBuildToolsPath: C:\Program Files (x86)\MSBuild\14.0\bin\
> out: Building project:
> d:\TestBuilds\f5adst0y.zer\Windows10-cordova511-BadWin10AppVersion\platforms\windows\CordovaAp
> p.Windows10.jsproj
> out: Configuration : release
> out: Platform : anycpu
> out: C:\Program Files
> (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets(133,5): error
> MSB3779: The proce
> ssor architecture of the project being built "Any CPU" is not supported by
> the referenced SDK "Microsoft.NET.Native.Fram
> ework.1.2, Version=1.2". Please consider changing the targeted processor
> architecture of your project (in Visual Studio
> this can be done through the Configuration Manager) to one of the
> architectures supported by the SDK: "x86, x64, ARM". [
> d:\TestBuilds\f5adst0y.zer\Windows10-cordova511-BadWin10AppVersion\platforms\windows\CordovaApp.Windows10.jsproj]
> out: C:\Program Files
> (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets(133,5): error
> MSB3779: The proce
> ssor architecture of the project being built "Any CPU" is not supported by
> the referenced SDK "Microsoft.NET.Native.Runt
> ime.1.1, Version=1.1". Please consider changing the targeted processor
> architecture of your project (in Visual Studio th
> is can be done through the Configuration Manager) to one of the architectures
> supported by the SDK: "x86, x64, ARM". [d:
> \TestBuilds\f5adst0y.zer\Windows10-cordova511-BadWin10AppVersion\platforms\windows\CordovaApp.Windows10.jsproj]
> out: C:\Program Files
> (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets(248,5): error
> : .NET Native requ
> ires an architecture specific Target Platform. Using the 'AnyCPU' Target
> Platform with .NET Native is not supported. Ple
> ase ensure the 'UseDotNetNativeToolchain' property is set to false for
> 'AnyCPU' builds. [d:\TestBuilds\f5adst0y.zer\Wind
> ows10-cordova511-BadWin10AppVersion\platforms\windows\CordovaApp.Windows10.jsproj]
> ERR: ERROR: Error code 1 for command: C:\Program Files
> (x86)\MSBuild\14.0\bin\msbuild with args: d:\TestBuilds\f5adst
> 0y.zer\Windows10-cordova511-BadWin10AppVersion\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPro
> pertyList;Verbosity=minimal,/nologo,/p:Configuration=release,/p:Platform=anycpu
> out: Command finished with error code 2: cmd /s /c
> "d:\TestBuilds\f5adst0y.zer\Windows10-cordova511-BadWin10AppVersio
> n\platforms\windows\cordova\build.bat --release --verbose"
> out: ERROR building one of the platforms: Error: cmd: Command failed with
> exit code 2
> out: You may not have the required environment or OS to build this project
> ERR: Error: cmd: Command failed with exit code 2
> ERR: at ChildProcess.whenDone
> (D:\Developer\cordova\5.1.1\node_modules\cordova\node_modules\cordova-lib\src\cordo
> va\superspawn.js:134:23)
> ERR: at emitTwo (events.js:87:13)
> ERR: at ChildProcess.emit (events.js:172:7)
> ERR: at maybeClose (internal/child_process.js:818:16)
> ERR: at Process.ChildProcess._handle.onexit
> (internal/child_process.js:211:5)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]