1

I have a solution that has two projects: 1. web project 2. dll project. At its post event, a powershell runs to move, copy and delete the web project files/folders.

When my solution builds, it starts by building the web project and then the dll project.

I want create a pre-build event at the dll project that publishes the web project, is this possible!? how? I don't mind using powershell or command prompt.

Thank you!

4

1 回答 1

3

我在这个链接上得到了答案: http ://forums.asp.net/p/1904236/5386235.aspx/1?Publish+web+project+from+the+build+event+of+another+project

解决方案:

dll 项目 - test11

网络项目 - WebApplication1

发布文件夹 - F:\11\11

对比 2008

"E:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"  "F:\Demo\WebApplication1\WebApplication1.sln"  /build Release /project  "F:\Demo\WebApplication1\Test11\Test11.csproj"
"E:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"  "F:\Demo\WebApplication1\WebApplication1.sln"  /build Release /project  "F:\Demo\WebApplication1\WebApplication1\WebApplication1.csproj"
"C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe"  "F:\Demo\WebApplication1\WebApplication1\WebApplication1.csproj"   /t:ResolveReferences;Compile /t:_CopyWebApplication /p:Configuration=Release /p:WebProjectOutputDir="F:\11\11" /p:OutputPath="F:\11\11\bin"
于 2013-05-07T16:24:06.150 回答