[ 
https://issues.apache.org/jira/browse/CB-10101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christopher Mindus updated CB-10101:
------------------------------------
    Summary: Build for Windows with appx=UAP fails with Microsoft.NuGet.targets 
error  (was: Windows appx=UAP fails with Microsoft.NuGet.targets error)

> 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: [email protected] platform, Windows 10 x64, Node 4.2.2 x64, 
> VS2015 + latest updates installed
>            Reporter: Christopher Mindus
>
> Project working with [email protected] 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to