empira / PDFsharp-1.5

A .NET library for processing PDF
MIT License
1.28k stars 589 forks source link

Same identity of DLLs #133

Closed jochenwezel closed 3 years ago

jochenwezel commented 3 years ago

Expected Behavior

There should be no compiler warning

Actual Behavior

I get following warnings in VisualStudio in my project which references PDFsharp and PDFsharp-MigraDoc via NuGet:

3>E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3854,5): warning MSB3112: Mindestens zwei Assemblies besitzen dieselbe Identität "PdfSharp.Charting.resources, Version=1.50.5147.0, Culture=de, PublicKeyToken=F94615AA0424F9EB, ProcessorArchitecture=msil".
3>E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3854,5): warning MSB3112: Mindestens zwei Assemblies besitzen dieselbe Identität "PdfSharp.resources, Version=1.50.5147.0, Culture=de, PublicKeyToken=F94615AA0424F9EB, ProcessorArchitecture=msil".
3>E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3854,5): warning MSB3181: Für mindestens zwei Dateien ist derselbe Zielpfad "C:\Users\user\.nuget\packages\pdfsharp\1.50.5147\lib\net20\de\PdfSharp.Charting.resources.dll" angegeben.
3>E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3854,5): warning MSB3181: Für mindestens zwei Dateien ist derselbe Zielpfad "C:\Users\user\.nuget\packages\pdfsharp\1.50.5147\lib\net20\de\PdfSharp.resources.dll" angegeben.
TH-Soft commented 3 years ago

Remove the PDFsharp NuGet package from your project and the issue is solved.

jochenwezel commented 3 years ago

Thanks, that was the point! 👍