c# - 尝试更改目标框架时从 Visual Studio 收到拒绝访问错误

标签 c# visual-studio-2010 visual-studio

错误读取,

TargetFrameworkMoniker: An error occurred saving the project file 'yadayada.csproj'. Access is denied.

我正在尝试从 .net 3.5 切换到 .net 4.0 或更高版本。

该项目已挂接到 Visual Studio 2010 中的 TFS(也尝试了 VS 2013,同样的错误)。我在 VM 环境中。

关于此错误的任何线索? Google 返回的信息非常少。看起来我可以正确访问该文件,但 VS 如何访问它?

最佳答案

这听起来像是:

1)文件已被标记为只读。通过查看 csproj 的属性来检查这一点。

或者

2)您的用户没有足够的权限更改文件 - 检查 csproj 的安全性。

关于c# - 尝试更改目标框架时从 Visual Studio 收到拒绝访问错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22509303/

相关文章:

c# - 加密 ASP.NET 连接字符串的正确方法是什么?

c# - 选定区域以剪切图像

qt - 从另一个 IDE (Qt Creator) 设置 MSVC 编译器的字符集

c - 包括 DDK header

visual-studio - 使用代理身份验证连接到 Team Foundation Server (TFS)

c# - C# 中的 Ajax 发布等效项

c++ - Visual Studio 外部依赖项符号错误

c++ - Visual Studio - 程序在分析时运行得更快

c++ - Qt VS 工具 : error reading VS project settings

c# - XXE:使用 XDocument 对 XML 外部实体引用的不当限制