.NET: warning : The file '~/.nuget/packages/fsharp.core/6.0.0/contentFiles/any/netstandard2.1/FSharp.Core.xml' does not specify a 'PublishFolderType' metadata, and a default value could not be calculated. The file will not be copied to the app bundle. #14939
Labels
enhancement
The issue or pull request is an enhancement
Milestone
Repro:
Build monotouch-test for macOS:
Binlog: build-2022-05-09-145149.binlog.zip
The reason is that the FSharp.Core NuGet does this in its nuspec:
which seems to come from here: dotnet/fsharp#10579 ("Following this change, build and publish will deploy the FSharp.Core.xml doc comment file to the output directory, without the build author having to do any extra work.")
It seems this could be a workaround (untested, from dotnet/fsharp#11143 (comment))
An alternative solution would be to amend our logic that figures out what to do with files in ResolvedFileToPublish (https://github.com/xamarin/xamarin-macios/blob/main/dotnet/BundleContents.md), to say something like: "If an xml file matches the filename of any assembly, then treat that xml file as
PublishFolderType=Assembly
" - so FSharp.Core.xml would be placed next to FSharp.Core.dll (and no warning produced). The downside is that the app would ship a file it doesn't need.See also #15897 (comment).
The text was updated successfully, but these errors were encountered: