Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 28, 2010 02:59 AM by XiaoCheng Fan - MSFT
Contributor
5694 Points
1565 Posts
Apr 22, 2010 08:38 PM|LINK
All --
Please help.
I need to know how to add a post build event to a Web Deployment Project.
How can it be done?
Please advise.
Thank you.
-- Mark Kamoski
Web Deployment Project Build Event
All-Star
18102 Points
2841 Posts
Apr 23, 2010 01:14 AM|LINK
I have not done that but if it is possible, you can find reference here.
http://vishaljoshi.blogspot.com/2009/02/web-packaging-creating-web-package.html
Apr 26, 2010 08:49 PM|LINK
Bruce --
I appreciate the reply.
However, I need to know how to do this for VisualStudio 2008?
What do you think?
17743 Points
1414 Posts
Apr 27, 2010 12:12 PM|LINK
Hi,
As far as I know, there is a bit different from VS 2010, you can't modify publish settings in VS2008.
And you can try to use web deployment project:
http://www.microsoft.com/downloads/details.aspx?familyId=0AA30AE8-C73B-4BDD-BB1B-FE697256C459&displaylang=en
I'm looking for ward for your reply.
Apr 27, 2010 12:30 PM|LINK
XiaoCheng Fan - MSFT ...And you can try to use web deployment project...
...And you can try to use web deployment project...
Xiao --
I am already using a Web Deployment Project.
Unfortunately, in VisualStudio 2008 Standard, there are no properties for Build Events in a Web Deployment Project.
I have 2 projects in my Solution-- (1) A Web Application Project and (2) A Web Deployment Project.
I need to write build event logic that runs after the Web Deployment Project builds; but, I cannot find a way to do that right now.
I am wondering-- is there a way to workaround this situation?
Apr 28, 2010 02:59 AM|LINK
You can directly add tasks in WDP. You can open WDP file by right click project -> Open project file.
In the project file you can find <Target Name="AfterBuild"> node, and you can add tasks in it.
For more about MSBuild task:
http://msdn.microsoft.com/en-us/library/7z253716.aspx
I'm looking forward for your test result.
mkamoski
Contributor
5694 Points
1565 Posts
how to add a post build event to a Web Deployment Project
Apr 22, 2010 08:38 PM|LINK
All --
Please help.
I need to know how to add a post build event to a Web Deployment Project.
How can it be done?
Please advise.
Thank you.
-- Mark Kamoski
Web Deployment Project Build Event
Bruce L
All-Star
18102 Points
2841 Posts
Re: how to add a post build event to a Web Deployment Project
Apr 23, 2010 01:14 AM|LINK
I have not done that but if it is possible, you can find reference here.
http://vishaljoshi.blogspot.com/2009/02/web-packaging-creating-web-package.html
http://www.discountASP.NET
mkamoski
Contributor
5694 Points
1565 Posts
Re: how to add a post build event to a Web Deployment Project
Apr 26, 2010 08:49 PM|LINK
Bruce --
I appreciate the reply.
However, I need to know how to do this for VisualStudio 2008?
What do you think?
Please advise.
Thank you.
-- Mark Kamoski
XiaoCheng Fa...
All-Star
17743 Points
1414 Posts
Re: how to add a post build event to a Web Deployment Project
Apr 27, 2010 12:12 PM|LINK
Hi,
As far as I know, there is a bit different from VS 2010, you can't modify publish settings in VS2008.
And you can try to use web deployment project:
http://www.microsoft.com/downloads/details.aspx?familyId=0AA30AE8-C73B-4BDD-BB1B-FE697256C459&displaylang=en
I'm looking for ward for your reply.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
mkamoski
Contributor
5694 Points
1565 Posts
Re: how to add a post build event to a Web Deployment Project
Apr 27, 2010 12:30 PM|LINK
Xiao --
I am already using a Web Deployment Project.
Unfortunately, in VisualStudio 2008 Standard, there are no properties for Build Events in a Web Deployment Project.
I have 2 projects in my Solution-- (1) A Web Application Project and (2) A Web Deployment Project.
I need to write build event logic that runs after the Web Deployment Project builds; but, I cannot find a way to do that right now.
I am wondering-- is there a way to workaround this situation?
Please advise.
Thank you.
-- Mark Kamoski
Web Deployment Project Build Event
XiaoCheng Fa...
All-Star
17743 Points
1414 Posts
Re: how to add a post build event to a Web Deployment Project
Apr 28, 2010 02:59 AM|LINK
Hi,
You can directly add tasks in WDP. You can open WDP file by right click project -> Open project file.
In the project file you can find <Target Name="AfterBuild"> node, and you can add tasks in it.
For more about MSBuild task:
http://msdn.microsoft.com/en-us/library/7z253716.aspx
I'm looking forward for your test result.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework