[ https://issues.apache.org/jira/browse/CB-10234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092656#comment-15092656 ]
Sergey Grebnov commented on CB-10234: ------------------------------------- I was thinking about the following approaches 1. Plugin hook to detect this case (uwp + anycpu) and fail with user friendly error message 2. Reference geolocation proxy via .csproj file instead of compiled .winmd component for all targets and inject test inside csproj/msbuild definition 3. Reference extra msbuild definition specifically to uwp so it triggers for windows10 only (via framework and type="projectReference" ) 1- Issue here is that we should replicate windows platform logic which parses config.xml params (target-windows-version) and command line args to detect that we build against windows10 or we should see if we can rely on platforms\windows\cordova\lib\build.js#getBuildTargets method 2 - I played w/ this approach and have not found any difference when GlobalizationProxy.csproj is built as dependency of CordovaApp.Windows.jsproj or CordovaApp.Windows10.jsproj 3- going to evaluate soon PS. The Windows 10 Submission Certification tests pass > Globalization Plugin Needs 'arch' flag to build on Windows10 (Universal > Windows) Build > -------------------------------------------------------------------------------------- > > Key: CB-10234 > URL: https://issues.apache.org/jira/browse/CB-10234 > Project: Apache Cordova > Issue Type: Bug > Components: Windows > Affects Versions: 5.4.1 > Environment: Windows 10, Visual Studio 2015 Update 1 SDK 10.0.10240, > CLI 5.4.1, cordova-windows@4.2.0, Plugin globalization@1.0.2 > Reporter: Roberto De Simone > Assignee: Sergey Grebnov > Priority: Minor > Labels: Windows, triaged, wfc > > 1. Create a new Cordova project > 2. cordova add windows@4.2 > 3. Add to config.xml Windows10 support > <preference name="windows-target-version" value="10.0" /> > <preference name="windows-phone-target-version" value="10.0" /> > 4. cordova plugin add cordova-plugin-globalization (1.0.2) > 5. cordova prepare windows > 6. Open the project in Visual Studio 2015 > 7. Build the Windows10 (Universal Windows) > Build Error: > 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. > Trying different plugins (also in combination) like splashscreen, dialogs, > statusbar, vibration, inappbrowser, network-information do not cause the > error. > Removing the Globalization Plugin allows building without error. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org