文件权限编译时出现问题......? [英] File Permissions Issue while compiling....?

查看:197
本文介绍了文件权限编译时出现问题......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从TFS下载了一个包含三个项目的解决方案文件。

I have downloaded a solution file with three projects from TFS.

这是我在设置所有'参考文献'后编译代码时的第一次破解。

This is my first crack at compiling the code after I have set up all the 'References".

我得到的错误表明我需要在AppData或Temp文件夹上设置权限。

The errors I am getting suggest that I need to set the permissions on the AppData or the Temp folder.

我想我可能需要一些帮助如何在命令行上执行此操作,因为当我单击打开文件资源管理器时,我没有看到以管理员身份运行它的选项。 我该怎么做?

I think I might need some help on how to do this on the command line since, when I click to open the File Explorer, I do not see an option to run it as Admin.  How do I do that?

以下是我收到的错误示例。 请指教...

Here is the sample of the errors I am getting.  Please advise...

推荐答案

您无需成为管理员即可编译代码。您无需成为管理员即可写入您自己的AppData位置。

You don't need to be an admin to compile code. You don't need to be an admin to write to your own AppData location.

第一条消息是警告。这是无害的。 

The first message is a warning. This is harmless. 

第二个错误似乎是问题,并在此之后导致级联错误。第三个错误来自MSBuild,似乎表明构建框架出了问题。

The second error seems like the issue and causes cascading errors after that. The third error is coming from MSBuild and seems to indicate something is wrong with the build framework.

如果你打开VS并创建一个全新的控制台应用程序,它会编译吗?

If you open VS and create a brand new console application does it compile?

您打开的这个解决方案是针对较旧/较新版本的.NET和VS而不是您所拥有的吗?您可以打开解决方案文件(.sln)并查看它的构建版本。一般情况下,只要您安装了正确的框架
和项目类型,VS就会自动更新解决方案。 

Is this solution you opened targeting an older/newer version of .NET and VS than what you have? You can open the solution file (.sln) and see what version it was built for. In general VS will update solutions automatically provided you have the correct framework and project types installed. 

其他人是否可以成功编译代码?

Can everyone else successfully compile the code?

您使用的是哪个版本的VS? 

What version of VS are you using? 

该解决方案的目标是什么版本的框架?

What version of the framework is the solution targeting?


这篇关于文件权限编译时出现问题......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆