Hello,
Please add the following in .csproj file:
<Target Name="_LibraryManagerRestoreContentItems" AfterTargets="LibraryManagerRestore">
<ItemGroup>
<Content Remove="@(FilesForPackagingFromProject)" />
<Content Include="@(FilesForPackagingFromProject)" CopyToPublishDirectory="PreserveNewest" />
</ItemGroup>
</Target>
it seems the only option now is to wait for VS 17.11.5, right?
There is a known issue- [Blazor] libman libraries not included in first build · Issue #680 · aspnet/LibraryManager (github.com), please follow the progress, and you could post comments to let them know your concerns.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.