问题:
I am trying to run Asp.net MVC project retrieved from TFS source control. 我正在尝试运行从TFS源代码控制检索的Asp.net MVC项目。 I have added all assembly references and I am able to build and compile successfully without any error or warning. 我已经添加了所有程序集引用,并且能够成功构建和编译而没有任何错误或警告。
But I get the following error in the browser: 但是我在浏览器中收到以下错误:
Could not find a part of the path 'C:\\B8akWorkspace\\B8akProject\\B8akSolution\\B8AK.Portal\\bin\\roslyn\\csc.exe'. 找不到路径“ C:\\ B8akWorkspace \\ B8akProject \\ B8akSolution \\ B8AK.Portal \\ bin \\ roslyn \\ csc.exe”的一部分。
Here is a full screenshot of the error page. 这是错误页面的完整屏幕截图。
After few days of research, I understood that Roslyn is .Net compiler platform that offers advance compiling features. 经过几天的研究,我了解到Roslyn是.Net编译器平台,可提供高级编译功能。 However, I do not understand why my build is trying to find \\bin\\roslyn\\csc.exe because I did not configure anything related to Roslyn nor I intend to use Roslyn in my project. 但是,我不明白为什么我的版本试图查找\\ bin \\ roslyn \\ csc.exe,因为我没有配置与Roslyn相关的任何内容,也不打算在项目中使用Roslyn。
解决方案:
参考一: https://stackoom.com/question/2DXel/找不到路径的一部分-bin-roslyn-csc-exe参考二: https://oldbug.net/q/2DXel/Could-not-find-a-part-of-the-path-bin-roslyn-csc-exe
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4377918