Closed
Description
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
- Open attached project.
- 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
Labels
Created by mkArtakMSFTBlazor Hybrid / Desktop, BlazorWebViewCreated by mkArtakMSFT to help with planning temporarily. It will be removed after planning is done.Issues related to Blazor and various other SDKs (Razor, iOS, Android, etc.)Issue has been reviewedVerified / Reproducible Issue ready for Engineering TriageSomething isn't working