创建Azure程序包时包含/排除文件 [英] Include/Exclude files when creating Azure package

查看:58
本文介绍了创建Azure程序包时包含/排除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio创建一个Azure软件包(右键单击Azure项目->软件包).我想在软件包中包括和排除一些与此类似的文件:

I am creating an azure package using Visual Studio (right click on azure project -> package). I would like to include and exclude some files in the package similar to this: How do you include additional files using VS2010 web deployment packages? What do I need to do to get this working for the azure package function?

推荐答案

即使CSPKG文件实际上是zip文件,Windows Azure部署程序包(CSPKG)文件也不同于常规VS发布程序包.您可以将CSPKG重命名为zip并查看其中的内容,但是您不能以这种方式添加或删除文件,因为您的软件包将损坏.

Windows Azure deployment package (CSPKG) file is different then regular VS publish package even though CSPKG file is actually a zip file. You can rename CSPKG to zip and see what is inside however you can not add or delete files this way as your package will be corrupt.

将文件添加到CSPKG的最佳方法是将这些文件添加到VS项目中,然后在这些文件属性中设置将本地复制为true"意味着将这些文件添加到最终输出中.这样,当您构建CSPKG时,文件将在那里.

The best way to add files to your CSPKG is to add those files in your VS project and then in those file properties set "copy local as true" means add these files to final output. This way when you build the CSPKG the files will be there.

这篇关于创建Azure程序包时包含/排除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆