views:

124

answers:

1

Hi all i have an external project and i wnat to build it in the main project fo that i'm using pre-build commands.I want to use multi commands for copying aspx pages and ascx usercontrols to sercontrol folder When i use one command it works but when i write both lines it returns error code 1 and not builds.. I tried to put comma between two commands but not worked.

copy $(SolutionDir)\WebUI.PlugIn.UrlUsage\*.aspx $(ProjectDir)\Pages\Report
copy $(SolutionDir)\WebUI.PlugIn.UrlUsage\*.ascx $(ProjectDir)\UserControls\Report

can you say how to run mlti commands in pre-build events of vs.net?

A: 

A good technique is look at the error produced by Visual Studio when the prebuild fails. Copy that error to the command line and run it. That should allow you to see what the issue is more clearly.

In this case it might be something simple like not having quotes round stuff.

It shouldn't make a difference but you don't need the first \ after the $(SolutionDir).

RichardOD