Copy always to output directory does not work

后端 未结 9 588
-上瘾入骨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:14

    Did you mark them as content?

    0 讨论(0)
  • 2020-12-30 19:17

    I just had this problem and for some reason choosing "Create application without a manifest" under the project's properties finally copied the linked content file to the build directory.

    0 讨论(0)
  • 2020-12-30 19:19

    In the file properties in Visual Studio, set:

    Build action: None

    Copy to output directory: Copy always

    0 讨论(0)
提交回复
热议问题