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.
精慕HU