asp.net core 2.0

dotnet ef  database update  提示 ef.targets is denied 什么情况

E:\Resort.Core\Core.Dal>dotnet ef database update
System.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, FileOption
s 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 b
uildExtensionsDir, String framework, String configuration, String runtime)
at Microsoft.EntityFrameworkCore.Tools.RootCommand.Execute()
at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] a
rgs)
at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
Access to the path 'E:\Resort.Core\Core.Dal\obj\Core.Dal.csproj.EntityFrameworkC
ore.targets' is denied.


慕无忌1623718
浏览 694回答 1
1回答

精慕HU

截图看看,有可能是要管理员身份运行命令行哦
打开App,查看更多内容
随时随地看视频慕课网APP