代码之家  ›  专栏  ›  技术社区  ›  rcs

Visual Studio 2015中的生成解决方案出现错误“生成Win32资源时出错:访问被拒绝”

  •  0
  • rcs  · 技术社区  · 6 年前

    我在使用VisualStudio2015构建解决方案时遇到了一个奇怪的错误。 附加错误:

    7>(0,0): error CS1567: Error generating Win32 resource: Access is denied. 
    7>(0,0): warning CS1610: Unable to delete temporary file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\4b1e3fb3\c485404e\CSC4CF967AFEF7848B58432AE4797C64B6E.TMP' used for default Win32 resource -- The system cannot find the file specified. 
    7>Validation Complete
    

    enter image description here

    这是什么错误?如何解决?

    1 回复  |  直到 6 年前
        1
  •  0
  •   rcs    6 年前

    通过给我自己对那个文件夹的写权限来解决 c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\

    c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\ . 也。

        2
  •  0
  •   Raghu J    5 年前

    c:\窗口\微软.NET\框架\v4.0.30319\临时ASP.NET文件夹。