-
Notifications
You must be signed in to change notification settings - Fork 548
Description
Apple platform
Mac Catalyst
Framework version
net8.0-* [unsupported, please update to .NET 9+]
Affected platform version
8.0.411
Description
I am attempting to get a MacCatalyst build of our native library for use with a .NET application. I am able to build and link most of the time but I often get a failure:
error MSB4057: The target "_ComputeManagedAssemblyToLink" does not exist in the project.
This happens about 20% of the time when running locally on a MacBook Pro M1 / Sequoia 15.5 and about 75% of the time when running on a MacMini M4 / Max OSX unknown at present.
Building the library we have works 100% of the time. This only occurs when I attempt to build some of our test projects.
Csproj has: <TargetFrameworks>net8.0;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
Build command is:
dotnet publish <csproj> --framework=net8.0-maccatalyst --runtime=maccatalyst-arm64 --self-contained /p:PublishSingleFile:false /p:Configuration=<configuration> --output <path> -bl
I've captured a binlog (attached) if that helps.
Steps to Reproduce
- Build our project
- Randomly the build will fail
Project is open source here: https://github.com/openhome/ohnet
Once cloned....
MacCatalyst-arm64
Build everything + package: PLATFORM=Mac-arm64-maccatalyst python hudson_build.py
Build everything: make [debug=1] Maccatalyst-arm64=1
Mac-arm64
Build everything + run tests + package: PLATFORM=Mac-arm64 python hudson_build.py
Build everything: make [debug=1] Mac-arm64=1
Did you find any workaround?
No response