Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10264

The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-windows
    • Labels:
    • Environment:

      Cordova 5.1.1
      cordova-windows@4.2.0
      Microsoft Windows Server 2012 R2
      Visual Studio Community 2015 Version 14.0.24720.00 Update 1
      Microsoft .NET Framework Version 4.6.01055

      Description

      I run regression tests against cordova@5.1.1 and cordova@4.1.2 creating Windows 8.0 apps, Windows Phone 8.1 apps, and Windows 10 UAP apps.

      Today, I updated my tests for cordova@5.1.1 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, 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.

         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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rakatyal Raghav Katyal
                Reporter:
                jnmoore Jerroyd Moore
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: