本文介绍了VS 2013错误MSB4175的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我安装了"vs_professional_2013"​​,并且VS2013顺利使用。然后我卸载VS2013,然后安装VS2015,然后我再次卸载VS2015并安装VS2013。

firstly, I install "vs_professional_2013", and the VS2013 is used smoothly. Then I uninstall VS2013, and install VS2015, and after that I uninstall VS2015 again and install VS2013.

通过执行上述操作,我可以成功使用C#编码,但是如果我新建了C ++项目,无论什么样的项目,当我构建这个项目时,它总是报告以下错误:

And by doing the above actions, I can use C# coding successfully, but if I new a C++ project, no matter what kind of projects, when I build this project it always report the following error:

错误 39
错误MSB4175:任务工厂"CodeTaskFactory"无法从程序集中加载"C:\Program Files(x86)\ MSBuild\12.0\bin\Microsoft.Build.Tasks.v12.0.dll"。客户端不保留所需的权限
C:\Program Files(x86)\ MSBuild\Microsoft\VisualStudio \v12 .0\CodeAnalysis\Microsoft.CodeAnalysis.targets。

Error 39 error MSB4175: The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Build.Tasks.v12.0.dll". A required privilege is not held by the clientC:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets.

我将非常感谢你的帮助。谢谢!

I will appreciate your help. Thank you!

推荐答案

欢迎来到MSDN论坛。

Welcome to MSDN forum.

您安装了最新版本的VS2013吗?我建议您可以尝试通过控制面板修复您的vs => programs =>程序和功能=>右键单击vs =>更改为修复。

Have you installed the latest version of VS2013? And I suggest you can try to repair your vs by Control panel=>programs=>programs and features=>right-click vs=>change to repair.

此外,因为此消息表明它可能是访问问题。请尝试以管理员身份运行您的项目或VS以检查它是否有帮助。 

Also, since this message indicates it might be an access issue. Please try to run your project or VS as administrator to check if it helps. 

如有任何更新,请随时与我们联系。期待您的回复:)

Any update please feel free to contact us. Looking forward to your reply:)

最好的问候

Lance


这篇关于VS 2013错误MSB4175的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 09:22