Report error/warning if missing files in project/solution in Visual Studio 2012 / 2013

后端 未结 3 1831
野趣味
野趣味 2021-01-13 03:15

Visual Studio no longer supports macros, so the answer in the following question is only valid for previous releases:

Report error/warning if missing files in projec

3条回答
  •  盖世英雄少女心
    2021-01-13 03:21

    With regards to breaking the build when missing files are detected, the closest I have found is to cancel the build (in conjunction with the OnBuildBegin event) using the following:

    DTE.ExecuteCommand("Build.Cancel")
    

提交回复
热议问题