Coder Social home page Coder Social logo

cordova build windows generates following error "Error: No valid MSBuild was detected for the selected target." about cordova-windows HOT 4 CLOSED

apache avatar apache commented on May 30, 2024
cordova build windows generates following error "Error: No valid MSBuild was detected for the selected target."

from cordova-windows.

Comments (4)

AngelCareaga avatar AngelCareaga commented on May 30, 2024 2

My temporary solution has been only to execute it in debug mode and not in release mode.

At the time of generating the compiled for the store does not happen, it works perfectly. I will continue to see the same log to see what is happening.

from cordova-windows.

janpio avatar janpio commented on May 30, 2024

Uh - current cordova version is 8.0.0 and current cordova-windows is 6.0.0 - you should try updating both. (Instructions here for example: https://ionic.zone/cordova/update)

Then run cordova requirements to get some (hopefully) useful output on the system requirements and dependencies.
What Visual Studio do you have installed?

from cordova-windows.

vincent-at-684857612710 avatar vincent-at-684857612710 commented on May 30, 2024

This is the whole error generated::

cordova build windows
Before deploy hook started...
Checking is node modules installed...
Node modules already installed.
Starting webpack build...
Webpack build completed to www folder successfully!
Cordova hook completed. Resuming to run your cordova command...
The following navigation rule had an invalid URI scheme and will be ignored: "*".
(node:44560) UnhandledPromiseRejectionWarning: CordovaError: No valid MSBuild was detected for the selected target.
at buildTargets (//app/platforms/windows/cordova/lib/build.js:298:25)
at //app/platforms/windows/cordova/lib/build.js:71:16
at _fulfilled (app/platforms/windows/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (app/platforms/windows/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (//app/platforms/windows/cordova/node_modules/q/q.js:796:13)
at /app/platforms/windows/cordova/node_modules/q/q.js:604:44
at runSingle (//app/platforms/windows/cordova/node_modules/q/q.js:137:13)
at flush (/app/platforms/windows/cordova/node_modules/q/q.js:125:13)
at process._tickCallback (internal/process/next_tick.js:176:11)
(node:44560) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:44560) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

from cordova-windows.

shazron avatar shazron commented on May 30, 2024

Essentially the MSBuild detection code does not work well with VS 2017. Duping this into #274

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.