Microsoft.aspnetcore.app没有用于指定的Runtime Indentifier' ios-Arm64' App。

发布于 2025-02-03 07:02:36 字数 1280 浏览 5 评论 0原文

我正在使用VS Enterprise 17.3 Preview 1,但我的试验正在到期,因此我下载并安装了社区17.3 Preview 1。我打开了MAUI Project and Build and Build,并且收到了此错误;

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'maccatalyst-x64

我假设我一定错过了安装中的东西,所以我回去,但是所有相关组件均已安装 “已安装组件”

我与Enterprise安装仔细检查,它们匹配。然后,我回去打开VS Enterprise的项目,现在我在那里也会遇到相同的错误!

我尝试删除bin/obj文件夹清洁和重建; 我尝试将其添加到.csproj中,

<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>

我尝试从此更改目标帧工程:

<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>

对此(以及其他一些组合):

<TargetFrameworks>net6.0-android;</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>

因此,我现在无法构建:(帮助pls

I was using VS Enterprise 17.3 preview 1 but my trial was expiring so I download and installed VS Community 17.3 preview 1. I open my MAUI project and build and I get this error;

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'maccatalyst-x64

I assume I must've missed something in the installation so I go back but all the relevant components are installed installed components

I double check with the Enterprise installation and they match. I then go back to opening the project in VS Enterprise and now I get the same error there too!?

I've tried deleting bin/obj folders cleaning and rebuilding;
I've tried adding this to the .csproj

<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>

I've tried changing the TargetFrameworks from this:

<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>

To this (and a few other combinations):

<TargetFrameworks>net6.0-android;</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>

So I'm now stuck unable to build :( help pls

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏佲洛 2025-02-10 07:02:38

事实证明,我在大火文件中遇到了一个错误,即编译器没有引用。 “无运行时包”错误是红鲱鱼,与实际错误无关。

Turns out I had an error in a blazor file that the compiler wasn't referencing. The 'no runtime pack' error was a red herring and unrelated to the actual error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文