在Visual Studio中编译时如何处理文件权限问题?

时间:2019-02-20 20:41:09

标签: visual-studio

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

这是我在设置所有“参考”之后第一次编译代码。

我收到的错误提示我需要设置AppData或Temp文件夹的权限。

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

这是我遇到的错误的示例。请告知...

Error An error has occurred during compilation. c:\Users\...\AppData\Local\Temp\sd22o3dh\sd22o3dh.0.cs(101,13) : warning CS0162: Unreachable code detected

Error An error has occurred during compilation. error CS1583: 'c:\Users\...\AppData\Local\Temp\sd22o3dh\CSC4522B3A7C0D144688CC27DF8927708.TMP' is not a valid Win32 resource file

Error An error has occurred during compilation. error CVT1101: cannot open 'c:\Users\...\AppData\Local\Temp\sd22o3dh\CSC4522B3A7C0D144688CC27DF8927708.TMP' for reading

Error The source file for this compilation can be found at: "C:\Users\...\AppData\Local\Temp\4f696efb-a270-420e-b197-c8264416dcc9.txt"

Error The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Build.Tasks.Core.dll". The task factory must return a value for the "TaskType" property.

Error An error has occurred during compilation. c:\Users\...\AppData\Local\Temp\f3ldnp4h\f3ldnp4h.0.cs(121,13) : warning CS0162: Unreachable code detected

0 个答案:

没有答案