cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghav (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10101) Build for Windows with appx=UAP fails with Microsoft.NuGet.targets error
Date Sun, 10 Jan 2016 10:44:39 GMT

    [ https://issues.apache.org/jira/browse/CB-10101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15090976#comment-15090976
] 

Raghav commented on CB-10101:
-----------------------------

Could you try specifying the architecture along with the build? 

cordova build windows -- --appx=uap --archs=x86

> Build for Windows with appx=UAP fails with Microsoft.NuGet.targets error
> ------------------------------------------------------------------------
>
>                 Key: CB-10101
>                 URL: https://issues.apache.org/jira/browse/CB-10101
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>    Affects Versions: Master
>         Environment: windows@4.2.0 platform, Windows 10 x64, Node 4.2.2 x64, VS2015 +
latest updates installed
>            Reporter: Christopher Mindus
>
> Project working with windows@4.1.0 now updated to 4.2.0 gives the following error during
building:
> ...> cordova build windows -- --appx=uap
> Running command: cmd "/s /c "...\platforms\windows\cordova\build.bat --buildConfig=...\build.json
--appx=uap""
> Reading build config file: ...\build.json
> MSBuildToolsPath: C:\Program Files (x86)\MSBuild\14.0\bin
> Building project: ...\platforms\windows\CordovaApp.Windows10.jsproj
>         Configuration : debug
>         Platform      : anycpu
> C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets(211,5): error
: Your project.json doesn't list 'win10' as a targeted runtime. You should
> add '"win10": { }' inside your "runtimes" section in your project.json, and then re-run
NuGet restore. [...\platforms\windows\CordovaApp.Window
> s10.jsproj]
> ERROR: Error code 1 for command: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild with
args: ...\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debug,/p:Platform=anycpu
> ERROR building one of the platforms: Error: cmd: Command failed with exit code 2
> You may not have the required environment or OS to build this project
> Error: cmd: Command failed with exit code 2
> I tried to "cordova platform rm windows" and then to add it again. No difference. If
I create a new test project, add the platform and build as above it works just fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message