Dotnet Maui Blazor应用程序构建使用Razor类图书馆(Android/ios)
根据指南线配置的证书。我们能够在没有剃须刀库的情况下生成构建。当我们尝试使用Razor类生成构建时,会在低于错误的情况下进行构建。
dotnet\sdk\6.0.400-preview.22301.10\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResoluti
on.targets(267,5): error NETSDK1005: Assets file '\Razo
rClassLibrary\obj\project.assets.json' doesn't have a target for 'net6.0-android'. Ensure that restore has run and that
you have included 'net6.0-android' in the TargetFrameworks for your project. [C:/RazorClassLibrary\RazorClassLibrary.csproj]
使用以下选项
- 删除的OBJ文件夹
- 还原
Nuget软件包
- Visual Studio更新
- MSBUILD UPDATE
- 添加了
&lttimeTimeIdentifier> android-arm64</runtime timeIdentifier>
花费两天以上,真正欣赏超过两天,真的很高兴解决此问题的指南。
Certificate configured as per the guide-line. We are able to generate build without razor class library. When we try to generate build with razor class getting below error.
dotnet\sdk\6.0.400-preview.22301.10\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResoluti
on.targets(267,5): error NETSDK1005: Assets file '\Razo
rClassLibrary\obj\project.assets.json' doesn't have a target for 'net6.0-android'. Ensure that restore has run and that
you have included 'net6.0-android' in the TargetFrameworks for your project. [C:/RazorClassLibrary\RazorClassLibrary.csproj]
Tried with below options
- Removed obj folder
- Restore
Nuget Package
- Visual Studio update
- MSBuild update
- Added
<RuntimeIdentifier>android-arm64</RuntimeIdentifier>
Spending more than two days, Really appreciate any guide to resolve this issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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