项目编译报错 未配置输出路径
来源:互联网 发布:php开发流程 编辑:程序博客网 时间:2024/06/15 23:57
错误 1 error : The OutputPath property is not set for project 'sortAlgorithm.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='Win32'. 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. C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets6155sortAlgorithm
参考:
一个解决方案 http://blog.csdn.net/chao88552828/article/details/49336661
第二个回答
第三个答案
将自己的配置文件 在 project 后头 后面进行 增加 如下代码 : 无效果。
<PropertyGroup Condition=" '$(Configuration)' == 'MyConfig' ">
<OutputPath>.\Debug\</OutputPath>
</PropertyGroup>
修改myconfig 后 如下, 仍然无效
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<OutputPath>.\Debug\</OutputPath>
</PropertyGroup>
弄了一圈也没有解决好,。
发现 项目属性——配置——常规——输出目录里面 不知道啥时候可能被自己给弄没了, 并且当时 弄没 位置 是属性管理器的 配置。
属性管理器属于 对所有新建项目的最基本的配置,,, 因此把这个弄没了, 那么新建什么项目都会出现上面的问题。
将属性管理器的 通用属性---常规---输出目录 进行设置如下: $(OutDir)$(TargetName)$(TargetExt) 或者 $(SolutionDir)$(ConfigurationName)
报错消失!
参考 官网 说明 :
https://msdn.microsoft.com/zh-cn/library/8x480de8(v=vs.120).aspx
- 项目编译报错 未配置输出路径
- eclipse启动报错,项目路径配置错误问题
- 项目maven依赖成功,但编译一直报错:引用项目的类路径找不到
- notes 报错 未配置引入/引出
- 运行项目编译报错
- maven项目编译报错
- 修改myeclipse下maven项目的文件编译输出路径
- web项目Log4j日志输出路径配置问题
- web项目Log4j日志输出路径配置问题
- 项目修改输出路径
- Ubuntu下编译AndroidNDK项目报arm-linux-androideabi-gcc:命令未找到
- @Override报错,myeclipse配置路径
- Android Studio项目路径中包含中文字符无法编译问题报错Your project path contains non-ASCII characters.
- pdfsharp开源项目编译报错
- ubuntu 12.10 NDK编译项目报错
- BlackBerry 10 cascades项目编译报错
- 编译KlayGE,UniversalDXSDK项目报错
- 使用VS2012编译项目报错如下:
- 视觉直观感受 7 种常用的排序算法
- 双色球中奖
- 入门级RxJava
- 正则表达式 re.findall 用法
- 目前普遍使用的框架是ssm框架,ssh框架基本是以前的项目中用到
- 项目编译报错 未配置输出路径
- CodeForces
- CTreeCtrl基本使用
- Codevs 3304 水果姐逛水果街Ⅰ
- 高级程序员的自我修养
- C# ORM 泛型与反射的交叉应用
- 23种设计模式(4):建造者模式
- 算法竞赛入门经典--训练指南 笔记
- Java线程(一)