Coder Social home page Coder Social logo

Comments (7)

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

Any luck resolving this issue??

from cordova-windows.

janpio avatar janpio commented on May 30, 2024

Which one exactly?

This issue refers to a problem in the way the code is structured - returning an exception that is not 100% correct all the times.

from cordova-windows.

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

I get the above mentioned error whenever i run cordova build windows

I have uninstalled Cordova and installed previous version where linux, windows and windows phone were supported..

I tried command on mac and windows.

from cordova-windows.

janpio avatar janpio commented on May 30, 2024

Please open a new issue so we can debug this step by step. (Start by including your cordova platform list and cordova -v output, also the complete output and the command you are running)

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.

janpio avatar janpio commented on May 30, 2024

The original issue was another problem - any problem in the build process triggers this error message as it is a general catch for any error.

from cordova-windows.

janpio avatar janpio commented on May 30, 2024

For future reference, this is the offending code:

return MSBuildTools.getLatestMatchingMSBuild(selectedBuildTargets) // get latest msbuild tools
.then(function (result) {
var msbuild = result[0];
var myBuildTargets = result[1];
// Apply build related configs
prepare.updateBuildConfig(buildConfig);
if (buildConfig.publisherId) {
updateManifestWithPublisher(buildConfig, myBuildTargets);
}
cleanIntermediates();
// build!
return buildTargets(buildConfig, myBuildTargets, msbuild);
}).then(function (pkg) {
events.emit('verbose', ' BUILD OUTPUT: ' + pkg.appx);
return pkg;
}).catch(function (error) {
return Q.reject(new CordovaError('No valid MSBuild was detected for the selected target: ' + error, error));
});
};

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.