【问题标题】:Access to the path is denied when trying to build ASP.Net core VS2015 project尝试构建 ASP.Net core VS2015 项目时拒绝访问路径
【发布时间】:2017-01-09 05:38:06
【问题描述】:

我有一个 ASP.NET Core RTM 应用程序,我从 Visual Studio.d 复制并签入 TFS。但是,当我构建它时,我收到以下错误

无法使以下项目可运行:MyApplication (.NETFramework,Version=v4.5.2) 原因:访问路径'C:\Source\MyApplication\MyApplication\b\bin\Debug\net452\win7-x64\ MyApplication.exe.config' 被拒绝。 Mars.Web C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets 262

我尝试过但没有用的方法

  • 以管理员身份运行 Visual Studio 2015

  • 删除bin\Debug\net452\win7-x64\目录的只读属性或将权限设置为all

  • 删除 thr bin 目录

  • 重新启动 Visual Studio 并确保我已连接到 TFS

  • 在我的项目根目录中运行dotnet restore,如this答案中所述

  • 删除objbin目录

【问题讨论】:

    标签: tfs visual-studio-2015 asp.net-core


    【解决方案1】:

    我删除了我的app.configbin 目录

    【讨论】:

    • 为我工作。
    猜你喜欢
    • 2017-12-12
    • 2015-03-19
    • 1970-01-01
    • 2013-12-15
    • 1970-01-01
    • 2018-05-06
    • 2016-04-05
    • 2017-08-05
    • 2021-04-13
    相关资源
    最近更新 更多