开发者

_copywebapplication, missing file

I have a webproject that has an PostBuildEvent like this:

copy "$(ProjectDir)......\myfile.xml" "$(TargetDir)..开发者_C百科"

Everything works fine when I build locally. However when the TFS-server builds the project the copied file are not present in the PublishedWebSites folder.

I know it is not ideal to have a PostBuildEvent like this, but is there a simple workaround? I don't want to have the copied file as a content file in the project folder.


You can add it with relative path.

<Content Include="..\Common\myfile.xml">
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜