Visual Studio资源组项目模板

时间:2015-11-19 22:03:51

标签: azure visual-studio-2013

上午,

我即将使用Azure SDK 2.8资源组项目模板进行演示: enter image description here

我在2014年发现了一篇博文:

https://azure.microsoft.com/en-us/blog/azure-resource-manager-2-5-for-visual-studio/

但新的编辑参数框不同,我无法解决如何使用" MyWebSitePackageFolder"和" MyWebSitePackageFileName":

enter image description here

我知道它们与存储有关: enter image description here

但是我在执行新部署时遇到错误: enter image description here

enter image description here enter image description here

我只是从模板创建一个Web应用程序: enter image description here

任何帮助都会很棒!

2 个答案:

答案 0 :(得分:0)

早上好,

我还没有能够回到这一点,但我会说最好的解决方案是使用VS 2015.显然2013更新了允许你这样做但是2015年,默认情况下,这样做更容易

不是2013年问题的真正解决方案,但我有幸使用2015年。

答案 1 :(得分:0)

这些参数用于与Web App Service一起部署网站文件。这是通过引用解决方案中的Web应用程序项目来完成的。显然,与VS2013的集成似乎很差,因为在VS2017中,只有在正确配置了对Web应用程序项目的引用之后,这些字段才会出现。

在一般情况下,以下两个屏幕应有帮助:

  1. 通知Web应用程序引用属性web application reference properties

  2. ...以及部署参数 deployment properties

Microsoft为此主题here提供了一个非常好的动手实验室,称为“ DT00154:使用Visual Studio编写ARM模板”。