Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
478 stars 168 forks source link

Compiler-Error NU1202: Package MsgReader 4.0.1 is not compatible with uap10.0.16299 #275

Closed Hurricane31337 closed 3 years ago

Hurricane31337 commented 3 years ago

Since updating the imported MsgReader NuGet-Package to 4.0.1 of my Xamarin project, I can't compile the UWP project target anymore. I suspect that targeting .NET Framework Core 2.1 is the cause of this issue.

According to Microsoft Docs, I can not increase my UWP target to match this requirement, as it is still TBD by Microsoft: https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support

Would it therefore be possible to decrease the .NET Framework Core target to 2.0 or do you have a specific reason for 2.1?

Edit: The compiler error is as follows (for others googling the error): Error NU1202 Package MsgReader 4.0.1 is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299) / win10-x64. Package MsgReader 4.0.1 supports:

Sicos1977 commented 3 years ago

The only reason I increased it was because visual studio 2019 was complaining that. netstandard 2.0 was out of support. I'll decrease it back to 2.0. I'll try to do it this evening.

Hurricane31337 commented 3 years ago

Very nice, thank you very much!

Numpsy commented 3 years ago

The only reason I increased it was because visual studio 2019 was complaining that. netstandard 2.0 was out of support.

Is that complaining about netstandard2.0 in MsgReader or netcoreapp2.0 in the MsgReaderTests project? (.NET Core 2.0 is out of support (2.1 is the oldest supported version), but I don't think it should report that for netstandard2.0)

Sicos1977 commented 3 years ago

I added support again for .netstandard2.0 and released a new nuget package. Can you try to see if the 4.0.2 version fixes your compile error?

image

Hurricane31337 commented 3 years ago

Yes, now it compiles fine again. Thanks!