无法从[C:\ Program Files \ Dotnet \ shared \ Microsoft.netcore.app \ 5.0.17 \ hostpolicy.dll加载DLL]
我正在运行Parallels Win11 VM(M1 Pro),Visual Studio 2022,.NET 5.0
尝试运行基本Hello World Template应用程序时,我会得到:
无法从[C:\ Program Files \ dotnet \ shared \ Microsoft.netcore.app \ 5.0.17 \ hostpolicy.dll],Hresult加载DLL:0x800700C1 从[C:\ Program Files \ dotnet \ sharone \ Microsoft.netcore.app \ 5.0.17]
加载所需库hostpolicy.dll时发生错误
c:\ development \ demo \ demoapp \ bin \ debug \ net5.0 \ demoapp.exe(Process 6136)被代码-2147450750退出。 为了在调试停止时自动关闭控制台,请启用工具 - 选项 - > debugging->在调试停止时会自动关闭控制台。 按任何键关闭此窗口。 。 。
文件夹和文件在那里并且可以访问。我尝试更改文件夹上的权限。但这没有影响。
我是.NET的新手,将不胜感激!!
I am running a Parallels Win11 VM (M1 Pro), Visual Studio 2022, .NET 5.0
When trying to run the basic hello world template application, I get:
Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.17\hostpolicy.dll], HRESULT: 0x800700C1
An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.17]
C:\Development\Demo\DemoApp\bin\Debug\net5.0\DemoApp.exe (process 6136) exited with code -2147450750.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .
The folder and file are there and accessible. I have tried changing the permissions on the folder. But that had no effect.
I am new to .NET, help would be greatly appreciated!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论