QuestPDF / QuestPDF

QuestPDF is a modern open-source .NET library for PDF document generation. Offering comprehensive layout engine powered by concise and discoverable C# Fluent API. Easily generate PDF reports, invoices, exports, etc.
https://www.questpdf.com
Other
11.64k stars 604 forks source link

Installed QuestPDF via nuget makes project uncompilable #441

Open JoeMeyer9000 opened 1 year ago

JoeMeyer9000 commented 1 year ago

I found no sulution for this: Compile fails with error NETSDK1022 and the following message:

Duplicate 'Content' items were included. The .NET SDK includes 'Content' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultContentItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'C:\Users\JoachimMeyer.nuget\packages\skiasharp.nativeassets.win32\2.88.3\buildTransitive\net462....\runtimes\win-x86\native\libSkiaSharp.dll'; 'C:\Users\JoachimMeyer.nuget\packages\skiasharp.nativeassets.win32\2.88.3\buildTransitive\net462....\runtimes\win-x64\native\libSkiaSharp.dll'; 'C:\Users\JoachimMeyer.nuget\packages\skiasharp.nativeassets.win32\2.88.3\buildTransitive\net462....\runtimes\win-arm64\native\libSkiaSharp.dll'; 'C:\Users\JoachimMeyer.nuget\packages\harfbuzzsharp.nativeassets.win32\2.8.2.3\buildTransitive\net462....\runtimes\win-x86\native\libHarfBuzzSharp.dll'; 'C:\Users\JoachimMeyer.nuget\packages\harfbuzzsharp.nativeassets.win32\2.8.2.3\buildTransitive\net462....\runtimes\win-x64\native\libHarfBuzzSharp.dll'; 'C:\Users\JoachimMeyer.nuget\packages\harfbuzzsharp.nativeassets.win32\2.8.2.3\buildTransitive\net462....\runtimes\win-arm64\native\libHarfBuzzSharp.dll'

C:\Program Files\dotnet\sdk\7.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.Shared.targets

girlpunk commented 1 year ago

Have you explicitly installed the skiasharp or harfbuzz Nuget packages? If so, try removing these.