Giter Site home page Giter Site logo

Comments (6)

MarkMaldaba avatar MarkMaldaba commented on August 16, 2024 1

Thanks for the ping. It's on my list to test this, but haven't got to it yet.

from cordova-windows.

janpio avatar janpio commented on August 16, 2024

Sounds valid.

If you want and can investigate this yourself, searching the codebase for either TargetPlatformVersion to see if something might already exist or windows-target-version (and the others) to understand how the existing preferences work would be my first steps.

We would sure appreciate any support here, otherwise this issue will probably just sit here. Thanks!

from cordova-windows.

janpio avatar janpio commented on August 16, 2024

I spent some time looking through code related to that, and I think you might be looking for uap-target-min-version and windows-target-version to influence these two values.

from cordova-windows.

janpio avatar janpio commented on August 16, 2024

Ok, had some time to spend on investigating this:

The CordovaApp.Windows10.jsproj template file has a hard-coded TargetPlatformVersion, which currently seems to be set to 10.0.10240.0

This value is not hardcoded, but gets filled by the maximum SDK installed on your machine when cordova prepare is run (which cordova build and cordova run do in the background):

targetUAPVersion: baselineVersions[baselineVersions.length - 1] /* The highest available SDK on the system */

This means that your machine probably only had 10.0.10240.0 or no Windows SDK at all, as 10.0.10240.0 is also the default, installed.

For me the value for example is set to <TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion> when running cordova platform add windows.

So installing the 10.0.15063.0 SDK should automatically replace this value on next prepare.


If you also want to influence TargetPlatformMinVersion in .jsproj, then you can use <preference name="uap-target-min-version" value="10.0.15063.0" /> in config.xml.


And related, you can also realize this diff, but in \platforms\windows\package.windows10.appxmanifest:

-        <TargetDeviceFamily MaxVersionTested="10.0.10240.0" MinVersion="10.0.10240.0" Name="Windows.Universal" />
+        <TargetDeviceFamily MaxVersionTested="10.0.15063.0" MinVersion="10.0.15063.0" Name="Windows.Universal" />

by setting this in config.xml:

        <preference name="Windows.Universal-MinVersion" value="10.0.15063.0" />
        <preference name="Windows.Universal-MaxVersionTested" value="10.0.15063.0" />

Although I am not totally sure what this achieves to be honest.


Please let me know if this helped to fix the problem for your @MarkMaldaba.

from cordova-windows.

janpio avatar janpio commented on August 16, 2024

Ping @MarkMaldaba

from cordova-windows.

timbru31 avatar timbru31 commented on August 16, 2024

We are archiving this repository following Apache Cordova's Deprecation Policy. We will not continue to work on this repository. Therefore all issues and pull requests are being closed. Thanks for your contribution.

from cordova-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.