Copy always to output directory does not work

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

    Changes to non-source code files don't cause a rebuild to occur - they aren't considered when the compiler does it's out of date checking.

    Try forcing a complete rebuild by deleting your output directory completely (sometimes doing this from within Visual Studio isn't complete).

    It may be that the files haven't been copied across because a full build hasn't been run.

提交回复
热议问题