Copy always to output directory does not work

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

    None of this worked for my WPF project. You need to mark it Content + Copy Always.

    Refer to this page for details on the different Visual Studio file properties.

提交回复
热议问题