Skip to content

Cannot reference MAUI-Blazor project from another MAUI-Blazor project on iOS #3536

Closed
@Dreamescaper

Description

@Dreamescaper

Description

I'd like to use shared library with MAUI-Blazor project. Unfortunately, currently it fails with the following error:

error NETSDK1005: Assets file '...\obj\project.assets.json' doesn't have a target for 'net6.0-ios'.

Note that it works perfectly fine with Android or Windows targets.

Repro:
https://github.com/Dreamescaper/maui-3536-repro

Steps to Reproduce

  1. Open attached project.
  2. Try to build / run MauiApp1 on Remote Simulator.

Version with bug

Preview 10 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 15

Did you find any workaround?

No.

Relevant log output

2>C:\Program Files\dotnet\sdk\6.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(267,5): error NETSDK1005: Assets file 'C:\Users\master\source\repos\MauiAppLib\Lib\obj\project.assets.json' doesn't have a target for 'net6.0-ios'. Ensure that restore has run and that you have included 'net6.0-ios' in the TargetFrameworks for your project.
2>Done building project "Lib.csproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:1Created by mkArtakMSFTarea-blazorBlazor Hybrid / Desktop, BlazorWebViewdiscussedCreated by mkArtakMSFT to help with planning temporarily. It will be removed after planning is done.feature-blazor-sdkIssues related to Blazor and various other SDKs (Razor, iOS, Android, etc.)platform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions