Copy always to output directory does not work

后端 未结 9 655
-上瘾入骨i
-上瘾入骨i 2020-12-30 18:49

I\'ve got a simple console project where I\'m reading two Excel-files. The Excel-files are included in the project (\"add existing item\") and I\'ve marked them with \"Copy

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-30 19:03

    VS 2015 behaves similarly, not updating the output directory correctly with Content files. What does seem to work, strangely, is to put a text file in the folder with the Content files and make it a Content file also. The text file will get copied to the directory and so will all the other Content files. Stranger still, if you then delete the text file, it will continue to show up in the output directory even though there is no longer an original to be copied.

提交回复
热议问题