Skip to content

Support for netstandard2.1 #3

@dylanvdmerwe

Description

@dylanvdmerwe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions