开发者

Quick Questions about MSBuild copy task

HI Guys, Im newbie to MSBuild so may be some questions could sound stupid.

  1. What are these extra files which gets generated while using aspnetcompiler like App_globa.asax.compiled,default.master.compiled etc....

  2. I w开发者_JAVA技巧as trying to using copy task to copy the consanother iis hosted end points which is not web site(.ashx) files but it was copying all the .cs,.csproj etc.Is there anyway to exclude them. And also can msbuild maintain the foldername as it is while copying. because when Im using copy task. it is combining everything into one.


In the case described in your comment, you are Including files under $(xfolder) and only excluding files under the current directory, since your Exclude doesn't also specify $(xfolder), so basically unless $(xfolder) happens to be the current folder, you aren't excluding anything. Also you are missing a wildcard, so you are only trying to exclude files named ".cs" and not "*.cs". Fix your Exclude to be

Include="$(xfolder)**\*.*" Exclude="$(xfolder)**\*.cs"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜