无法从[C:\ Program Files \ Dotnet \ shared \ Microsoft.netcore.app \ 5.0.17 \ hostpolicy.dll加载DLL]

发布于 2025-02-10 18:14:24 字数 642 浏览 3 评论 0原文

我正在运行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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文