Does non-build/content file have to be directly under project file? If those files in another folder under Project - not working


i've files should in output dir. included them in c# project , made 'copy output directory' = 'copy always', 'build action' = 'none'

 

this worked fine whenever vs rebuilt project , files automatically copied output dir.

 

however, if created new dir, e.g. samples dir, in project (using solution explorer), moved files samples dir.

 

when rebuilt project, files no longer moved output dir properties same, i.e. still

'copy output directory' = 'copy always', 'build action' = 'none'

 

i.e. currently, if want vs move files me project dir output dir, i've put files directly under project folder (in solution explorer) or have file not found error since files not found in output dir.

 

is design? or did miss anything?

 

thanks.

if create folder 'samples' , copy files , b , set them copy during build 'samples' directory created in output directory , files , b copied it.  files not copied directly under output directory.  if want functionality you'll need create post-build event manually.

 

michael taylor - 2/15/08

http://p3net.mvps.org

 



Archived Forums V  >  Visual C# IDE



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'