-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning in MAUI when referencing a project with GenerateDocumentationFile true #7272
Comments
I've created a workaround. Add this to the <!-- Workaround for https://github.com/dotnet/maui/issues/7272 -->
<Target Name="_SetPublishFolderTypeNoneOnDocFileItems" BeforeTargets="_ComputePublishLocation">
<ItemGroup>
<ResolvedFileToPublish Update="@(DocFileItem)" PublishFolderType="None" />
</ItemGroup>
</Target> That will set the I believe something like this should be done somewhere in |
Just an update, My workaround above did remove the warning, but it also broke everything because I was mistaken in thinking <!-- Workaround for https://github.com/dotnet/maui/issues/7272 -->
<Target Name="_SetPublishFolderTypeNoneOnDocFileItems" BeforeTargets="_ComputePublishLocation">
<ItemGroup>
<ResolvedFileToPublish
Update="@(ResolvedFileToPublish)"
Condition="'%(ResolvedFileToPublish.Extension)' == '.xml' And '%(ResolvedFileToPublish.PublishFolderType)' == ''"
PublishFolderType="None" />
</ItemGroup>
</Target> Though, it does presume that any |
FYI, this happens not just on MAUI, but also with an app made via |
If it also happens on iOS without .NET MAUI involved then yes please move it there. Thanks! |
Description
If you create a project reference from a MAUI project to a class library, and that project is generating XML documentation files, you get the following build warnings - two for each reference (one for iOS, one for maccatalyst):
Steps to Reproduce
dotnet new maui
, etc.)<GenerateDocumentationFile>true</GenerateDocumentationFile>
(per this) in the csproj for the class library projectVersion with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
any
Did you find any workaround?
I think this may be related or similar to xamarin/xamarin-macios#14939, but the workaround there did not work for me, and I'm not sure if this is MAUI specific or not.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: