为了账号安全,请及时绑定邮箱和手机立即绑定

asp.net core 2.0

asp.net core 2.0

慕无忌1623718 2018-07-09 07:10:07
dotnet ef  database update  提示 ef.targets is denied 什么情况E:\Resort.Core\Core.Dal>dotnet ef database updateSystem.UnauthorizedAccessException: Access to the path 'E:\Resort.Core\Core.Dal\obj\Core.Dal.csproj.EntityFrameworkCore.targets' is denied.at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,FileShare share, Int32 bufferSize, FileOptions options)at Microsoft.EntityFrameworkCore.Tools.Project.FromFile(String file, String buildExtensionsDir, String framework, String configuration, String runtime)at Microsoft.EntityFrameworkCore.Tools.RootCommand.Execute()at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)Access to the path 'E:\Resort.Core\Core.Dal\obj\Core.Dal.csproj.EntityFrameworkCore.targets' is denied.
查看完整描述

1 回答

?
精慕HU

TA贡献1845条经验 获得超8个赞

截图看看,有可能是要管理员身份运行命令行哦


查看完整回答
反对 回复 2018-08-15
  • 1 回答
  • 0 关注
  • 693 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信