编译的时候报这个错误,
网上找了半天没找到靠谱的解决方法,所以写个供大家参考
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 The OutputPath property is not set for project ‘WindowsFormsApp2.csproj’. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration=‘Debug’ Platform=‘x64’. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. WindowsFormsApp2
解决方案
1.方案右键卸载编译失败的项目
2.编辑项目文件
3.我这里是X64时候报没有设置路径的错误,所以在X64环境下设置 OutputPath 的变量
我设置为 bin\x64\Debug</OutputPath>
至此完毕,
运行看看效果