2017-02-03 16 views
0

我正在使用AppBuilder創建NativeScript應用程序。我現在需要開始研究環境設置,以便爲QA和生產準備好應用程序。Telerik的AppBuilder不分組文件

我也跟着相應的文章:http://docs.telerik.com/platform/appbuilder/nativescript/build-configurations/application-settings爲了設置config.js文件我有一個包含一些配置信息。我創建了config.debug.js和config.release.js,但Visual Studio只添加了config.js文件組下的調試版本。

所以,當我建立在調試模式下,應用程序拿起config.debug.js,一切都很好。當我嘗試在發佈模式下構建時,應用程序崩潰,因爲它找不到config.js。附件是顯示Visual Studio如何設置文件的截圖。

enter image description here

在我看來,既然發行版本沒有文件組中包含nativescript不會在構建過程中識別它。

我正在使用Visual Studio 2015 Enterprise。應用構建2017.1.202.9

任何建議將高度讚賞。

謝謝。

+0

你能[提交支持票(https://www.telerik.com/account/support-tickets/my-support-tickets),以便我們的支持工程師可以在您的項目看起來更密切?如果沒有您的更多信息,我們無法複製這個問題。謝謝! –

回答

0

如從Telerik的建議通過Preslav,從我的應用程序的根刪除.debug.abproject和還除去MyProject.iceproj的引用。

一旦這樣做,我是能夠創造出.debug.js和.release.js文件沒有任何進一步的問題。