In VS2022 when I try to publish my server blazor app to folder I get the following error:
The source file "C:\Users\xxxxx\.nuget\packages\blazorpropertygridcomponents\1.0.0\staticwebassets\css\open-iconic\ICON-LICENSE" is actually a directory. The "Copy" task does not support copying directories.
I have tried to find a solution to this but have not yet found one... as to the error there is a file in the ICON-LICENSE folder called ICON-LICENSE which has no extension but is a text file.
If this possibly a bug with the publish functionality? How do I either work around or correct?
My pubxml file:
<Project>
<PropertyGroup>
<DeleteExistingFiles>true</DeleteExistingFiles>
<ExcludeApp_Data>false</ExcludeApp_Data>
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>C:\Sandbox\My-services\Projects\My.WebApplication\bin\Release\net6.0-windows\publish</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<_TargetId>Folder</_TargetId>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>net6.0-windows</TargetFramework>
<ProjectGuid>e07fe3d5-f8a5-4c79-80c3-df642ecfda76</ProjectGuid>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
