VS2013打开2015的项目报错 The specified task executable location ... csc.exe" is invalid.
来源:互联网 发布:java异常有哪些分类 编辑:程序博客网 时间:2024/06/17 21:47
最近在做mvc WebApi的相关调研,从github上打包下载了个开源代码学习一下。
代码打开,编译报错如下:
1.
D:\WebApi\SlickSafe-master\Source\DLL\Newtonsoft.Json.dll
Error 2 Assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'd:\WebApi\SlickSafe-master\Source\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dllSlickOne.WebUtility
这句报错,大致说 System.Net.Http.Formatting使用的高版本的Newtonsoft.Json.dll,查看引用里面对应该dll确实版本为4.5的,将pack里下的dil放入工程dll项目里解决。
2.
Error 5 The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.D:\WebApi\SlickSafe-master\Source\SlickOne.WebUtility\CookieHelper.cs1713 SlickOne.WebUtility
项目引用 System.Runtime.dll 解决。该dll所在位置
C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Runtime.dll
3.
Error 2 The specified task executable location "D:\WebApi\SlickSafe-master\Source\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools\csc.exe" is invalid.SlickSafe.Web
这个错,最蛋疼,查了半天,知道是vs2015开发项目,我用vs2013打开了引起的,但怎么改Microsoft.Net.Compilers.props配置文件都不成功过,
最后将packages里面的 Microsoft.Net.Compilers.1.0.0目录,全部删除,再重新编译,用nuget下载包,居然解决了
- VS2013打开2015的项目报错 The specified task executable location ... csc.exe" is invalid.
- vs2013 error MSB6003: The specified task executable "cmd.exe" could not be run
- 报错System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid
- 11.laravel项目报错DecryptException:The MAC is invalid.
- 11.laravel项目报错DecryptException:The MAC is invalid.
- CentOS安装Oracle教训之[INS-32015] The location specified for Oracle Base is invalid.
- 打开eclipse.exe出现的对话框提示 1. Invalid Configuration Location
- Error:The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location:
- xcode 编译报错The identity used to sign the executable is no longer valid”
- 真机调试报错:The identity used to sign the executable is no longer valid
- Visual studio csc.exe及"由于未能创建 Microsoft Visual C# 2008 编译器,因此未能打开项目 ..."的解决方法
- The specified JRE installation does not exist m2eclipse build Maven项目报错的问题
- Intellij 启动报错probably the path to GIt executable is not valid
- 运行DevExtreme项目,报错“Local web server executable is not found”
- VMWare报错"指定的文件不是虚拟磁盘"或“The file specified is not a virtual disk”
- Xcode7 真机调试出现错误:The executable was signed with invalid entitlements.(The entitlements specified in y
- The executable was signed with invalid entitlements的问题解决
- The specified executable is not a validapplication for this OS platform.
- linux内核读写文件
- 实践---搭建mybatis框架
- UI——Material Design设计之Toolbar详解
- gerrit install plugin
- HDU 2087剪花布条
- VS2013打开2015的项目报错 The specified task executable location ... csc.exe" is invalid.
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 软件测试报告应该注意哪些事项
- spark点点滴滴 —— 开发运行scala程序
- 非农数据惊人利好 美联储6月加息概率大增,黄金的好日子到头了
- 博客之新增上传文件(包括图片)功能
- myeclipse安装activiti插件(不需要网络)
- jQuery同步Ajax带来的UI线程阻塞问题及解决办法
- filter与servlet的比较