cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Mindus (JIRA)" <>
Subject [jira] [Commented] (CB-10101) Windows appx=UAP fails with Microsoft.NuGet.targets error
Date Tue, 01 Dec 2015 11:33:10 GMT


Christopher Mindus commented on CB-10101:

When building for release using "cordova build windows --release -- --appx=uap", the same
error message is shown, but with the target runtime 'win10-aot' instead of above 'win10'.

> Windows appx=UAP fails with Microsoft.NuGet.targets error
> ---------------------------------------------------------
>                 Key: CB-10101
>                 URL:
>             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
> ...> cordova build windows -- --appx=uap
> Running command: cmd "/s /c "...\platforms\windows\cordova\build.bat --buildConfig=...\build.json
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message