忽略Windows Azure中的虚拟应用程序文件 [英] Ignore files in Windows Azure virtual application

查看:157
本文介绍了忽略Windows Azure中的虚拟应用程序文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有一个网站内部的虚拟应用程序。我已经修改我的 ServiceDefinition.csdef中

I want to have a virtual application inside a site. I have modified my ServiceDefinition.csdef as

<Site name="Web">
        <VirtualApplication name="MyVirtualApp" physicalDirectory="[path to my other web app]" />
        <Bindings>
          <Binding name="HttpIn" endpointName="HttpIn" />          
        </Bindings>
      </Site>

当我创建了包,我看到它包含的.cs 文件 OBJ 文件夹了。这是没用的。我不希望被列入我的包文件(.cspkg)这些文件。

When I create the package, I see that it includes .cs files obj folder too. Which is useless. I don't want these files to be included in my package file(.cspkg).

我应该怎么做,这样,当我发布,这种类型的文件不应该包含在包文件?

What should I do so that when I publish, such type of files should not be included in the package file?

推荐答案

作为一种变通方法,我创建了一个<一个href=\"http://www.microsoft.com/downloads/en/details.aspx?FamilyID=89F2C4F5-5D3A-49B6-BCAD-F776C6EDFA63\"相对=nofollow> Web部署项目。要排除在输出文件,你需要把

As a workaround, I created a Web Deployment Project. To exclude files in the output, you need to put

<ExcludeFromPackageFiles Include="[your file]">
    <FromTarget>Project</FromTarget>
</ExcludeFromPackageFiles>

而在 ServiceDefinition.csdef中我指定网络部署项目的输出路径

And in the ServiceDefinition.csdef I specified the output path for web deployment project

<VirtualApplication name="MyVirtualApp" physicalDirectory="[output path of my web deployment project]" />

这篇关于忽略Windows Azure中的虚拟应用程序文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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