开发者

References not deployed when using ResolveReferences and _CopyWebApplication in AfterBuild

The following MSBuild invocation works great when used in an independent MSBuild project, LocalPublish.xml.

<MSBuild
Projects="MyProject.Web.csproj"
Targets="ResolveReferences;_CopyWebApplication"
Properties="WebProjectOutputDir=C:\Inetpub\MyProject\Website;OutDir=C:\Inetpub\MyProject\Website\bin\" />

In the past, we have invoked it using a Post-build event command line: $(MSBuildBinPath)\msbuild "$(ProjectDir)LocalPublish.xml"

However I'm now trying to integrate the same into the After开发者_开发技巧Build event of MyProject.Web.csproj, and it fails to copy referenced project DLLs into the bin folder of the publish path. I tried adding BuildingProject=true to the Properties attribute as suggested here but it does not seem to make a difference.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜