2014-10-31 41 views
1

我試圖用visual studio 2013創建一個BlankCordovaApp,並且據我所知安裝了所有預先請求,但輸出窗口中仍然存在錯誤和警告。 我已經完成了系統環境的配置,所以VS可以找到所有需要的配置。 什麼是這個錯誤,我怎麼找到和指導呢?謝謝BlankCordovaApp首次運行配置

Error 15 The command ""C:\Users\MyPC\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" build --platform "Windows- 

AnyCPU" --configuration "Debug" --projectDir . --projectName "BlankCordovaApp2" --language "en-US" "--AnyCPU"" exited with 

code 1. C:\Users\MyPC\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 96 5 

BlankCordovaApp2

當我在錯誤點擊VS顯示代碼

<Exec Command='"$(AppData)\npm\node_modules\vs-mda\vs-cli" build --platform "$(Platform)" --configuration "$(Configuration)" --projectDir . --projectName "$(ProjectName)" --language "$(LangName)" "--$(Platform.Substring(8))"' Condition=" '@(BuildMDACpuSpecificPlatform)' != '' " CustomErrorRegularExpression="$(MDACustomErrorRegEx)" StdOutEncoding="UTF-8" StdErrEncoding="UTF-8"/> 

回答

6

錯誤代碼的這些線路1幾乎總是表明,Windows SDK的缺失。要解決該問題,請執行以下操作:

在控制面板中,選擇程序和功能。從列表中選擇Visual Studio 2013,然後選擇更改。在Visual Studio安裝窗口中,選擇「修改」。在功能列表中,確保這兩個選項的選中標記爲:

Tools for Maintaining Store apps for Windows 8 

Windows Phone 8.0 SDK 

一旦你完成安裝這些程序包,請嘗試重新構建應用程序,這個問題已經解決了。

+0

我檢查了這兩個項目,他們已被標記。我會嘗試重新安裝它們,可能會解決問題。 – Eftekhari 2014-11-20 20:52:04

+0

VisaulStudio上Cordova編程的好替代品。 www.cshtml5.com – Eftekhari 2014-12-05 16:26:04