Skip to content

Commit 4b24683

Browse files
authored
Update OOXMLValidator (#28)
- Closes #24
1 parent 31bb9db commit 4b24683

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

OOXMLValidator/OOXMLValidatorCLI.deps.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"compilationOptions": {},
77
"targets": {
88
".NETCoreApp,Version=v6.0": {
9-
"OOXMLValidatorCLI/1.2.0": {
9+
"OOXMLValidatorCLI/2.1.3": {
1010
"dependencies": {
1111
"DocumentFormat.OpenXml": "3.0.1",
1212
"MSTest.TestAdapter": "3.1.1",
@@ -351,7 +351,7 @@
351351
}
352352
},
353353
"libraries": {
354-
"OOXMLValidatorCLI/1.2.0": {
354+
"OOXMLValidatorCLI/2.1.3": {
355355
"type": "project",
356356
"serviceable": false,
357357
"sha512": ""
512 Bytes
Binary file not shown.

OOXMLValidator/OOXMLValidatorCLI.runtimeconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"runtimeOptions": {
33
"tfm": "net6.0",
4+
"rollForward": "Major",
45
"framework": {
56
"name": "Microsoft.NETCore.App",
67
"version": "6.0.0"

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ The OOXML Validator validates Office Open XML files (.docx, .docm, .dotm, .dotx,
1313
- Validates Office Open XML files against Office Perpetual 2007, 2010, 2013, 2016, 2019, 2021, or Microsoft 365 Subscription _Defaults to Microsoft 365 Subscription_
1414
- Creates optional CSV or JSON log file of the errors.
1515

16-
## Requirements
17-
18-
The OOXML Validator requires that either the [.NET Install Tool for Extension Authors](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-runtime) VS Code extension be installed or the `ooxml.dotNetPath` must be set in settings.json to the absolute path to the .Net Runtime.
19-
2016
## Usage
2117

2218
To validate an OOXML file, right click on the file to validate and select "Validate OOXML". This displays the validation errors in the VS Code window. If `ooxml.outPutFilePath` is set, a log of the validation errors is created (defaults to .csv).
@@ -33,7 +29,10 @@ This extension contributes the following settings:
3329
- `ooxml.outPutFilePath`:
3430
String that specifies the absolute file path to write the output of the validator. If the file name does not end in ".json" or ".csv", ".csv" will be appended to the filename and saved as a .csv file. Path **MUST** be absolute. If no value is set, no log file will be saved.
3531
- `ooxml.overwriteLogFile`: If true, the new log file will overwrite previous log file of the same name if it exists. If false, a unique timestamp is added to the filename. Default is false.
36-
- `ooxml.dotNetPath`: The absolute path to the .Net Runtime. Path **MUST** be absolute. If not set, the extension will use [.NET Install Tool for Extension Authors](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-runtime) to download the .Net Runtime.
32+
- `ooxml.dotNetPath`: The absolute path to the .Net Runtime. Path **MUST** be absolute. If not set, the extension will download the latest dotnet runtime.
33+
34+
35+
> The path to the dotnet runtime executable will be similar to `"C:\\Program Files\\dotnet\\dotnet.exe"` for Windows and `"/usr/local/share/dotnet/dotnet"` for macos. For more information on finding the path to the dotnet executable, [this Stack Overflow post explains it for Windows](https://stackoverflow.com/questions/42588392/where-is-the-dotnet-command-executable-located-on-windows) and [this post explains how to find it on macos](https://stackoverflow.com/questions/41112054/where-is-the-default-net-core-sdk-path-in-macos).
3736
3837
## Release Notes
3938

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "OOXML Validator",
44
"description": "A VS Code extension for validating Office Open XML files",
55
"icon": "assets/icon.png",
6-
"version": "1.5.3",
6+
"version": "1.5.4",
77
"publisher": "mikeebowen",
88
"homepage": "https://github.com/mikeebowen/ooxml-validator-vscode/blob/master/README.md",
99
"repository": {
@@ -27,6 +27,9 @@
2727
"onCommand:ooxml-validator-vscode.validateOOXML"
2828
],
2929
"main": "./dist/extension.js",
30+
"extensionDependencies": [
31+
"ms-dotnettools.vscode-dotnet-runtime"
32+
],
3033
"contributes": {
3134
"configuration": {
3235
"title": "OOXML",

0 commit comments

Comments
 (0)