Avatar of wtor
wtorFlag for Denmark

asked on 

Copy ASPX files from one project to another project after build

I have a solution which contains a Web Application Project and a Web Site Project. I want to automate the following tasks:

1 Build the Web App Project

2 Copy the assembly to the bin folder of the Web Site Project from the bin of the Web App Project.

3 Copy all the ASPX files to the Web Site Project from the Web App Project.

Any suggestions would be greatly appreciated.

Thanks
Project Management Software.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
Computer101
Avatar of orbulat
orbulat
Flag of Hong Kong image

i guess you can use "copy website" function
"Website" -> "Copy Website"
http://msdn.microsoft.com/en-us/library/xay0wxbf(VS.80).aspx

since the three actions you mentioned can be done manually in vs.net itself
so i think you can automate the actions by using macro
you can record the action
http://msdn.microsoft.com/en-us/library/7kyhdt1z(VS.80).aspx
Avatar of wtor
wtor
Flag of Denmark image

ASKER

Problem solved using msbuild project properties (AfterBuild section)
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo