Copying Visual Studio project file(s) to output directory during build

后端 未结 8 2003
梦毁少年i
梦毁少年i 2020-12-03 00:29

When I build a Visual Studio project, the executable is written to the output directory specified in the projects Property Page.

I have a project that has some extra

8条回答
  •  被撕碎了的回忆
    2020-12-03 01:19

    Please try select the file in Solution Explorer. Then you should be able to see its properties in Properties window (press F4 if it is not visible). You will find there two properties:

    • "Build Action" and
    • "Copy to Output Directory"

    Set "Build Action" to "Content", and then - select an appropriate value for "Copy to Output Directory" setting.

    File properties window with "Build Action" and "Copy to Output Directory" settings

    File properties window with

    If the way above doesn't work for you, please read this post "Copy to output directory issue with .inf file". And have a look at this one then "Visual Studio: default build action for non-default file-types"

    Hope that helps

提交回复
热议问题