I’m trying to create an app for Windows. If I enter “ionic cordova run windows” comes the error “MSBuild v4.0 is not supported, aborting.” .If I download the “Windows Build Tools”, there is a folder “14.0” under “MSBuild” next to the “15.0” and “Microsoft”, which invokes a different error:
Building project: C:\Users\TStrohschnieder.HANSA\WebAppInonic\platforms\windows\CordovaApp.Windows.jsproj
Configuration : debug
Platform : anycpu
C:\Users\TStrohschnieder.HANSA\WebAppInonic\platforms\windows\CordovaApp.Windows.jsproj(70,3): error MSB4019: Das importierte Projekt “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\TypeScript\Microsoft.TypeScript.Default.props” wurde nicht gefunden. Vergewissern Sie sich, dass der Pfad in der -Deklaration korrekt und die Datei auf dem Datenträger vorhanden ist.
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
[ERROR] An error occurred while running cordova run windows (exit cod"e 1).
Building project: C:\Users\TStrohschnieder.HANSA\WebAppInonic\platforms\windows\CordovaApp.Windows.jsproj
Configuration : debug
Platform : anycpu
C:\Users\TStrohschnieder.HANSA\WebAppInonic\platforms\windows\CordovaApp.Windows.jsproj(70,3): error MSB4019: Das importierte Projekt “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\TypeScript\Microsoft.TypeScript.Default.props” wurde nicht gefunden. Vergewissern Sie sich, dass der Pfad in der -Deklaration korrekt und die Datei auf dem Datenträger vorhanden ist.
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
[ERROR] An error occurred while running cordova run windows (exit cod"e 1).te
I have, maybe, found a solution. Have you ever changed the path under [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSBuild \ ToolsVersions \ 15.0]?