rianjs / ical.net

ical.NET - an open source iCal library for .NET
MIT License
782 stars 230 forks source link

Detected package downgrade: System.Reflection.TypeExtensions from 4.3.0 to 4.1.0 #465

Open seroche opened 5 years ago

seroche commented 5 years ago

Hi,

We are getting an error when we compile our project targeting .NET core 2.1 on VS 16.2.5.

By default, VS creates projects treating warning NU1605 as errors. We could ignore this warning but it does sound like a long term fix. Any idea?

Severity    Code    Description Project File    Line    Suppression State
Error   NU1605  Detected package downgrade: System.Reflection.TypeExtensions from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version. 
 TEC.CoreLambda.BookingInvitationCreated -> Ical.Net 4.1.11 -> NodaTime 2.0.2 -> NETStandard.Library 1.6.1 -> System.Linq.Expressions 4.3.0 -> System.Reflection.TypeExtensions (>= 4.3.0) 
 TEC.CoreLambda.BookingInvitationCreated -> Ical.Net 4.1.11 -> System.Reflection.TypeExtensions (>= 4.1.0)  TEC.CoreLambda.BookingInvitationCreated C:\Repository\core-lambda\src\TEC.CoreLambda.BookingInvitationCreated\TEC.CoreLambda.BookingInvitationCreated.csproj    1   
VILLAN3LL3 commented 5 years ago

Same error in my project (targeting .Net Core 2.2). Workaround: Installing the NuGet package System.Reflection.TypeExtensions (current version 4.5.1) removed the error message.

Pretzu commented 3 years ago

Same error targeting .NET Standard 2.1 (in Visual Studio 16.8.1)