Package obsolete #1414
Replies: 3 comments 7 replies
-
We plan to expose IPackage functionality. It's a similar structure to deriving from Package, but has much better composibility. For now, however, the overloads that take Package will remain in place so that you can supply a custom Package - we just don't expose it as we don't use it directly now and changes to it may not be reflected in the OpenXmlPackage. |
Beta Was this translation helpful? Give feedback.
-
Hi there - we've just stumbled across this one and would appreciate your advice. We're using System.IO.Packaging.PackageDigitalSignatureManager, which only takes a Package object. Are you also working with the relevant team to get this upgraded? Also, is there an easy way to suppress this compiler error? I have tried a few options as identified in this article - https://stackoverflow.com/questions/10608309/disabling-obsolete-error-in-c-sharp. It seems like the only option available to us is to access this property through reflection? Without an easy way to suppress this compiler error, it almost breaks semver conventions and requires a bump to the major version. I think, without having a suitable alternative, it's probably too soon to set this as a compiler error. |
Beta Was this translation helpful? Give feedback.
-
@rominator1983 would you be willing/able to submit the implementation you have to operate directly with FlatOpc? We can then help adapt it to the IPackage interfaces. We have an implementation of saving to FlatOpc and opening from, but not operating directly on - I think that would be a great addition! |
Beta Was this translation helpful? Give feedback.
-
We have a rather extensive Support for the XML Word-Format that is known as Flat-OPC.
What we have done is inherit the Package ourself in order to be able to create packages based on XML/String instead of ZIP.
In the wake of the Package-Property getting obsolete I was wondering if there are also plans to drop the creation of fore example WordProcessingDocument based on an already existing package.
If that would be so then we could not work with Flat-OPC and the SDK any more and would need to make major changes to our code base (easily 50 developer days)
Beta Was this translation helpful? Give feedback.
All reactions