0

I have checked this link: http://webproject.scottgu.com/VisualBasic/UserControls/UserControls.aspx

regarding using usercontrols throughout various projects. But I dont get these part

copy $(SolutionDir)\MyUserControlLibrary\*.ascx $(ProjectDir)\UserControls\

and I always end up in this error: The command "copy $Projects\TestUserControl\TestUserControl\*.ascx $WebApplication1\control\" exited with code 1.

Can anybody explain to me the correct syntax?

Thanks

Rajesh
  • 10,318
  • 16
  • 44
  • 64

3 Answers3

1

Sample Line of code is given here

copy "C:\My Apps\UserControl\UserControl\*.ascx" "C:\My Apps\UserControl\WebApplication1\Controls"
karthikr
  • 97,368
  • 26
  • 197
  • 188
Divya
  • 33
  • 5
  • Greetings, and welcome to stack overflow! The asker is also asking for an explanation of the correct syntax. – Dan Drews Oct 09 '14 at 12:22
0

Look in the build output and see exactly what the error from the copy operation is, some of the path substitutions might not be what you expect

aL3891
  • 6,205
  • 3
  • 33
  • 37
0

Could also use as follows. Notice absence of backslash after SolutionDir and ProjectDir macros:

copy "$(SolutionDir)MyUserControlLibrary\*.ascx" "$(ProjectDir)UserControls\"
Aamir
  • 791
  • 3
  • 15
  • 28