English 中文(简体)
MSBuild - Addfile to be “cleaned” in abuilding
原标题:MSBuild - Adding files to be "cleaned" in a build

作为我的一个项目的一部分,“BeforeBuild”的任务最终产生了一些档案。 具体而言,它把一个小的静态类别(在项目中被列为“不汇编”)汇编成自己的可执行类别,然后加以执行,通过外部投入文件,将新产生的类别列入项目。

我计划将中间档案列入项目(OutDir)中,但发现,在“重建”(并最终称为“Clean”)上,这些档案被搁置。 经过一些思考,我认识到,最后的、产生于美元(项目Dir)的类别可能也应删除“Clean”。

对微软公司的一些调查。 通用目标显示,中间道路(objuildassembly)有一些“主人名单”。 要求删除档案的ListAbsolute.txt。

在MSBuild的名单上添加我的新档案,以便清理这些档案,或者这种材料是否更适合“BeforeClean”(或“AfterClean”)的目标?

最佳回答

http://msdn.microsoft.com/en-us/magazine/d419659.aspx#id0093” rel=“norefer” MSBuild article by Hashimi。 查阅。 如果你在下一年再花2个多小时书写字,这本书即为

问题回答

暂无回答




相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

热门标签