dotnet / Open-XML-SDK

Open XML SDK by Microsoft
https://www.nuget.org/packages/DocumentFormat.OpenXml/
MIT License
4.05k stars 547 forks source link

Open XML Productivity Tool should normally open files read-only #1221

Open maurymarkowitz opened 2 years ago

maurymarkowitz commented 2 years ago

I mostly use the Open XML Productivity Tool as a diff system, and it's proved very useful in this role. However, the tool appears to open all files read-write, which means I can't run my own Packaging code while I have a diff open in Tool.

This is frustrating because debugging packaging/openxml code often consists of finding a problem in the diff, fixing your code, and then attempting to re-export your file. Since Tool has the file locked, the only way to write a new version is to quit Tool, run your code, quit your code (because it won't open a file open elsewhere), and then go through the entire diff process again.

I don't see any way to change a file using the Tool, so it does not appear there is any need for the files to be opened read-write. Changing this to read-only, even if just in diff, would greatly improve workflow.

tomjebo commented 2 years ago

@maurymarkowitz thanks for the suggestion.

ashahabov commented 2 years ago

@maurymarkowitz, @tomjebo, I thought the Open XML Productivity Tool is no longer supported. Or we can expect its new versions?🙂