Exclude .svn from _bin_deployableAssemblies directory?

前端 未结 1 751
孤城傲影
孤城傲影 2021-02-07 13:44

In VS 2010 for ASP.NET MVC 3 project there is an option to add a \"Deployable Dependencies\" folder (_bin_deployableAssemblies) (click right button on web project), files contai

相关标签:
1条回答
  • 2021-02-07 13:57

    Following seems to do the trick:

    1. backup and open file Microsoft.WebApplication.targets (on my computer found in C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications)
    2. find target named _CopyBinDeployableAssemblies
    3. in that task find line:

    .

    <CreateItem 
        Include="$(MSBuildProjectDirectory)\_bin_deployableAssemblies\**\*.*"
        Condition="Exists('$(MSBuildProjectDirectory)\_bin_deployableAssemblies')">
    

    and add Exclude attribute as follows:

    <CreateItem 
        Include="$(MSBuildProjectDirectory)\_bin_deployableAssemblies\**\*.*"
        Condition="Exists('$(MSBuildProjectDirectory)\_bin_deployableAssemblies')"
        Exclude="$(MSBuildProjectDirectory)\_bin_deployableAssemblies\**\.svn\**\*">
    
    0 讨论(0)
提交回复
热议问题