cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <>
Subject [jira] [Commented] (CB-13237) VisualStudio 2017
Date Thu, 07 Sep 2017 19:46:00 GMT


Filip Maj commented on CB-13237:

FYI, on my Windows 10 VM, with VS2017, using SHA {{ab9837b}} of cordova-windows, adding the
{{windows-target-version}} preference you recommended as a workaround does not work - yields
same error. To be fair, my config.xml is very short:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="">
	<preference name="windows-target-version" value="10.0" />    

I then upgraded to SHA {{94508b8}} and gave it a go:

c:\src\cordova-windows>bin\create ..\wintest2
Creating Cordova Windows Project:
        Path: ..\wintest2
        Namespace: Cordova.Example
        Name: CordovaAppProj
Windows project created with cordova-windows@5.1.0-dev

c:\src\cordova-windows>cd ..\wintest2

c:\src\wintest2>cordova\build -d
Searching for available MSBuild versions...
Running command: C:\Windows\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.0
/v MSBuildToolsPath
Running command: C:\Windows\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0
/v MSBuildToolsPath
Running command: C:\Windows\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0
/v MSBuildToolsPath
Running command: C:\Windows\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0
/v MSBuildToolsPath
Command finished with error code 1: C:\Windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0,/v,MSBuildToolsPath
Command finished with error code 1: C:\Windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.0,/v,MSBuildToolsPath
Command finished with error code 1: C:\Windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0,/v,MSBuildToolsPath
Command finished with error code 0: C:\Windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0,/v,MSBuildToolsPath
Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
Using MSBuild v4.0 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
MSBuild v4.0 is not supported, aborting.

                throw e;
AppPackages doesn't exists

That last line is telling. Inside my previous project, I _do_ have a {{AppPackages}} directory,
but I had to:
1. change the .jsproj file so that the WUR version inside that file matched the WUR version
installed on my Windows machine
2. load the .sln in VS, at which point the Windows 10 project is now 'compatible' (if you
skip step 1 above and try to load it in VS, you'll see a sub-project for each Windows target
with a {{(incompatible)}} description text)
3. try to deploy
4. the AppPackages dir gets built.
I'm not sure if this is a separate issue tho - it is filed in CB-12808 I believe.

> VisualStudio 2017
> -----------------
>                 Key: CB-13237
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-windows
>            Reporter: Jesse MacFadyen
>            Assignee: Jesse MacFadyen
> Users who only have VS-2017 and the new tools do not have the expected registry items
available to 'cordova build' so it fails.
> Failure happens here:
> And the message I saw was 'MSBuild v4.0 is not supported, aborting.'

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message