Git Product home page Git Product logo

Comments (7)

boyofgreen avatar boyofgreen commented on July 17, 2024

This is very intersesting, and I haven't ran into this before. You mentioned that you are using the CLI here (I think VS in the other scenerio) but when the project created VS or the CLI. Also, are you using a JSON manifest with the plugin, if so can you share?

from manifoldcordova.

ABPGeorg avatar ABPGeorg commented on July 17, 2024

Hi!
Keeps happening even when I create a new empty project with the plugin added directly via VS.
Steps to recreate:

  1. Create a new Cordova project with Visual Studio 2015 (with Visual Studio cordova tools installed)
  2. add a manifest.json: My test app's is as simple as this:

{
"lang": "en",
"name": "WebHost Platform Test",
"short_name": "WebHostPlatFormTest",
"icons": [
{
"src": "icon/lowres",
"sizes": "64x64",
"type": "image/webp"
},
{
"src": "icon/hd_small",
"sizes": "64x64"
},
{
"src": "icon/hd_hi",
"sizes": "128x128",
"density": 2
}
],
"scope": "/",
"start_url": "http://127.0.0.1:8000/",
"display": "fullscreen",
"orientation": "landscape",
"theme_color": "aliceblue"
}

  1. change config.xml (edit SOURCE) to include the plugin manually (as it's not listed in the prepopulated list):

<plugin name="cordova-plugin-hostedwebapp" version="0.3.1" />

  1. In config.xml (NOT in edit source mode but normal double-click-on-file-mode), go to "Windows" tab and select Windows 10.0

  2. In config.xml you can also make sure Platforms tab has Cordova 6.1.1 showing (Use globally Corodva version NOT ticked)

Hope this helps!
-Georg

from manifoldcordova.

ABPGeorg avatar ABPGeorg commented on July 17, 2024

Further investigation:
If I create a project and add the plugin via command line only (not using Visual Studio) then all works fine.
it's only when I try to create the project and add the plugin via Visual Studio 2015. Also I have to add the plugin directly into config.xml or via command line because when i try to add it via the config.xml visual designer, visual studio complains about not being able to read / parse plugin.xml
visual studio has the option to install plugins via id, git or local... none of the options worked.

from manifoldcordova.

boyofgreen avatar boyofgreen commented on July 17, 2024

we'll work with VS team to identify issue

from manifoldcordova.

aaronwjha avatar aaronwjha commented on July 17, 2024

Any news on this? I'm seeing the same issue.

from manifoldcordova.

boyofgreen avatar boyofgreen commented on July 17, 2024

Hi @aaronwjha and @ABPGeorg I wasn't able to recreate this before, but I'm seeing the same thing now. I'll reach out to the team. @jasonshortphd do you have any ideas? I think work around would be to manually move the wrapper.js file yourself but that's not a good solution.

from manifoldcordova.

monobjorn avatar monobjorn commented on July 17, 2024

The error Visual Studio gives you is because there are "<" characters in plugin.xml (in the version attribute):

<engine name="cordova-windows" version="<=4.3.9" />
<engine name="cordova-ios" version="<=4.1.9" />
<engine name="cordova-android" version="<=5.1.9" />

By replacing "<" with "&lt;" Visual Studio will accept the file:

<engine name="cordova-windows" version="&lt;=4.3.9" />
<engine name="cordova-ios" version="&lt;=4.1.9" />
<engine name="cordova-android" version="&lt;=5.1.9" />

from manifoldcordova.

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.