You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It would make sense to include this package in a class library so that it can be referenced from other parts of the application. However when trying to install in a netstandard2.1 project, the following error is given: Package DocXToPdfConverter 1.0.3 is not compatible with netstandard2.1 (.NETStandard,Version=v2.0). Package DocXToPdfConverter 1.0.3 supports: netcoreapp2.1
Expected behavior
Is there any reason why this library requires netcoreapp2.1 and cannot support netstandard2.1?
I have found that you can do the following:
DocXToPdfConverter change TargetFramework to netstandard2.1. This requires no code changes.
ExampleApplication target netcoreapp3.1
And then everything will work. Your nuget package will then be a netstandard2.1 package to then be consumed in libraries.
The only reason for netstandard2.1 instead of the more generic netstandard2.0 is due to line 93 in ConvertWithLibreOffice.cs with ProcessStartInfo's ArgumentList. I'm sure there is away around this, but this was just a quick attempt to check compatibility.
The text was updated successfully, but these errors were encountered:
Thank you for your suggestion! Unfortunately, we do not have the time to further look into it, but I'll just leave that here for anyone else, who is interested in using it for netstandard!
:)
Hi! Today I found this awesome library that save me. I convert it to netstandard2.0 (because 2.1 are not supported by .netframework). I can send a merge request?
Describe the bug
It would make sense to include this package in a class library so that it can be referenced from other parts of the application. However when trying to install in a
netstandard2.1
project, the following error is given:Package DocXToPdfConverter 1.0.3 is not compatible with netstandard2.1 (.NETStandard,Version=v2.0). Package DocXToPdfConverter 1.0.3 supports: netcoreapp2.1
Expected behavior
Is there any reason why this library requires
netcoreapp2.1
and cannot supportnetstandard2.1
?I have found that you can do the following:
TargetFramework
tonetstandard2.1
. This requires no code changes.netcoreapp3.1
And then everything will work. Your nuget package will then be a
netstandard2.1
package to then be consumed in libraries.The only reason for
netstandard2.1
instead of the more genericnetstandard2.0
is due to line 93 inConvertWithLibreOffice.cs
with ProcessStartInfo'sArgumentList
. I'm sure there is away around this, but this was just a quick attempt to check compatibility.The text was updated successfully, but these errors were encountered: