-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Steps to reproduce
I have created a repository with this issue:
https://github.com/mattleibow/XamarinNativeReferencesBug
I have opened an issue on the MSBuild.Sdk.Extras repository as they can add a workaround there as well: novotnyllc/MSBuildSdkExtras#176
Project file
<Project>
<Project Sdk="MSBuild.Sdk.Extras/2.0.31">
<PropertyGroup>
<TargetFrameworks>xamarinios1.0</TargetFrameworks>
<IsBindingProject>true</IsBindingProject>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Compile Remove="ApiDefinition.cs" />
<Compile Remove="StructsAndEnums.cs" />
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
<ObjcBindingCoreSource Include="StructsAndEnums.cs" />
<NativeReference Include="..\native\Aardvark.framework" Kind="Framework" ForceLoad="true" SmarkLink="true" Frameworks="MessageUI" LinkerFlags="-ObjC" />
</ItemGroup>
</Project>
Command line
msbuild /restore /t:pack /bl
Expected behavior
The project builds with two packages as output.
Actual behavior
The project fails with an error:
error : The file '/Users/matthew/Projects/Testing/XamarinNativeReferences/source/Square.Aardvark/bin/Debug/xamarinios1.0/Native.Square.Aardvark.manifest' to be packed was not found on disk.
Environment data
msbuild /version
output:
Microsoft (R) Build Engine version 16.2.0-ci for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
16.200.19.36501
OS info:
macOS Mojave 10.14.5 (18F132)
Redth and nmilcoff