Nasser Hadjloo
Nasser Hadjloo

Reputation: 12630

How to Publish Only App_Code in Asp.net

I have a website (not web application) in Visual Studio 2008, Most of my changes belongs to App_Code. Whenever I change it I need to Publish entire solution and resend nre published verion to my customers.

Publish took about 3 hours from me so that I want to publish only App_Code folder.

How to Do this? Ithink it should be something like

MSBuild App_Code // I know this is not valid I mentiond as a way that I think may work with change

Update : will it work if I remove everything else and then publish the website, after that replace published files to previouse versions?

Upvotes: 1

Views: 1289

Answers (1)

Mahesh KP
Mahesh KP

Reputation: 6446

Try to publish like this.

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v / -p "C:\WebSite1\App_Code" -u "C:\TargetPath"

Upvotes: 1

Related Questions