How to create custom clean (post-clean) event in Visual Studio 2008?

后端 未结 6 414
攒了一身酷
攒了一身酷 2020-12-28 16:34

In our build process, for each project we use Post Build events to copy our executable files into a separate deployment directory. That works just peachy, but the problem i

6条回答
  •  自闭症患者
    2020-12-28 16:56

    You can use the MSBuild target syntax in your csproj file. e.g

      
        
      
    

    There is a neat way to edit your .csproj file directly in the Visual Studio IDE described in the MSBuild team blog, but this is my first post so I can only include one hyperlink. (briefly: Unload the project, then right-click on it to see the entry "Edit [project].csproj" ... your csproj will come up in the IDE as an xml file with intellisense on elements and attributes. Wonderful!)

    A full list of custom Targets is here.

提交回复
热议问题