-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider altChunk parts in Flat OPC transformation #659
Conversation
@twsouthwick, how can I check why this failed? I don't have access to the Azure DevOps project. All unit tests passed on my local machine, so I don't know what might have happened. |
I might have found another "bug" in
After setting |
So I added a fix for net35 and the solution was built successfully and all unit tests passed. What goes wrong? I don't have access to the details. |
@rominator1983, do you have access to those details which might tell us why the check failed? |
Good point about access. We're building it on the office dev ops instance so we can sign stuff... but we can't give access. I'll look into how we can expose that. |
As for .NET 3.5, I do want to continue to support it, but it does limit some things. What I end up doing is adding stubs for the types to get things working. You can see under the |
Thanks for taking a look at this. A few comments about some of the structure. I tend to avoid too much LINQ as recent profiling I've done has identified it as hot spots. I'm fine with starting off with it for getting correctness, but keeping them in separate methods will help during profiling to identify any specific queries that are problematic. Also, I don't see any tests being added? Can you add some of those? Preferably more unit test style without needing a full file; just build up the components needed and the expected outcome. |
@twsouthwick, thanks for your feedback. Please have a look at the unit test in the |
Must have missed the test - sorry about that. You can disregard that comment. |
168654a
to
287a4e2
Compare
Made the changes requested by @twsouthwick. Rebased on master and fixed up some commits. |
@twsouthwick, can you tell me what went wrong here? Setting |
I have warnings as errors turned on. I recently added some FxCop rules to enforce StringComparer, so that's what's being raised:
Not having access to the build is not good. I may create a separate devops instance for CI builds that I can make public. I'll look into that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking much better. A couple more fixes and it should be good to merge in. Do you mind also updating the Changelog with an entry to this (referencing the PR)? I'm hoping to get a full release of 2.10 soon and would like this to be included
@twsouthwick, is it possible that you turned those FxCop rules on after my previous build? That would explain it because I did not change that line of code with the warning. |
It was sometime yesterday (Pacific time) in the afternoon. Highly possible |
I opened #666 as a tracking item for seeing build failures |
This commit enhances the XDocument OpenXmlPackage.ToFlatOpcDocument(XProcessingInstruction) method to consider "altChunk parts" (AlternativeFormatInputParts), which must have their content rendered in binary form even if it is XML content (e.g., XML, XHTML). Fixes dotnet#525.
This commit firstly refactors the Flat OPC feature. Secondly, it enhances the feature by supporting the round tripping of an OPC document with altChunk parts via a Flat OPC document back to an OPC document (as demonstrated by an additional unit test).
4a2ef30
to
5622aaf
Compare
@twsouthwick, unless you have further input, this would be it for now. I've updated CHANGELOG.md and also beautified the Flat OPC-related partial classes (where I also removed the redundant base type references). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for responding to the feedback :)
This commit enhances the
XDocument OpenXmlPackage.ToFlatOpcDocument(XProcessingInstruction)
method to consider "altChunk parts" (AlternativeFormatInputParts),
which must have their content rendered in binary form even if it is XML
content (e.g., XML, XHTML).
Fixes #525.