Copy to Output Directory copies folder structure but only want to copy files

后端 未结 8 1922
谎友^
谎友^ 2020-11-27 12:05

I have a VS2008 I want to copy certain files from a directory into my /bin/ folder. I have set the files (located in /common/browserhawk/) to \"Co

8条回答
  •  孤独总比滥情好
    2020-11-27 12:42

    If you edit the .csproj / .vbproj in a text editor, you can control where the file is placed in the output directory, and also what name the file will have in the output directory. For example:

    
      someContentInOutputDirectory.txt
      PreserveNewest
    
    

    This will put the file content\someContent.txt into bin\someContentInOutputDirectory.txt. You can also choose a subdirectory in bin if you want; simply add it to the Link element.

提交回复
热议问题