diff options
author | Joel Martinez <joelmartinez@gmail.com> | 2017-10-31 17:53:17 +0300 |
---|---|---|
committer | Joel Martinez <joelmartinez@gmail.com> | 2017-11-01 18:49:57 +0300 |
commit | 4b6432536f0e37fd3f7fd401f3709bb729ef58e0 (patch) | |
tree | d341b20878b64d82a82b528334f3b8d283896980 /mdoc | |
parent | 7ff462ea9f47f1665df4fa94a5a52c4268194221 (diff) |
mdoc: updates for WSL
Diffstat (limited to 'mdoc')
-rw-r--r-- | mdoc/Makefile | 4 | ||||
-rw-r--r-- | mdoc/Mono.Documentation/MDocUpdater.cs | 3 | ||||
-rw-r--r-- | mdoc/Test/expected_fx_remove_statistics.txt | 4 | ||||
-rw-r--r-- | mdoc/Test/fx-statistics-remove-configuration.xml | 4 |
4 files changed, 8 insertions, 7 deletions
diff --git a/mdoc/Makefile b/mdoc/Makefile index 7cec2399..61cb6e85 100644 --- a/mdoc/Makefile +++ b/mdoc/Makefile @@ -381,7 +381,7 @@ check-monodocer-import-fx-work: Test/DocTest.dll-v1 Test/DocTest-DropNS-classic- $(MONO) $(PROGRAM) update -o Test/en.actual -frameworks Test/fx-import -statistics Test/actual_statistics.txt $(DIFF) Test/expected_statistics.txt Test/actual_statistics.txt - +.PHONY: check-monodocer-fx-statistics-remove check-monodocer-fx-statistics-remove: rm -Rf Test/en.actual rm -Rf Test/fx-import @@ -494,7 +494,7 @@ check-mdoc-validate: check-overwrite-attribute: rm -Rf Test/en.actual $(CSCOMPILE) $(TEST_CSCFLAGS) -target:library Test/test-overwrite-attribute/SomeClass.cs -doc:Test/test-overwrite-attribute/SomeClass.xml - $(MONO) $(PROGRAM) update Test/test-overwrite-attribute/Someclass.dll -o Test/en.actual/ -import Test/test-overwrite-attribute/SomeClass.xml + $(MONO) $(PROGRAM) update Test/test-overwrite-attribute/SomeClass.dll -o Test/en.actual/ -import Test/test-overwrite-attribute/SomeClass.xml cp Test/test-overwrite-attribute/Input_SomeClass.xml Test/en.actual/SomeClass.xml $(MONO) $(PROGRAM) update Test/test-overwrite-attribute/SomeClass.dll -o Test/en.actual/ -import Test/test-overwrite-attribute/SomeClass.xml $(DIFF) Test/test-overwrite-attribute/Expected_SomeClass.xml Test/en.actual/SomeClass.xml diff --git a/mdoc/Mono.Documentation/MDocUpdater.cs b/mdoc/Mono.Documentation/MDocUpdater.cs index a3709962..2e9ba175 100644 --- a/mdoc/Mono.Documentation/MDocUpdater.cs +++ b/mdoc/Mono.Documentation/MDocUpdater.cs @@ -238,7 +238,7 @@ namespace Mono.Documentation configPath = Path.Combine (configPath, "frameworks.xml"); else frameworksDir = Path.GetDirectoryName (configPath); - + Console.WriteLine($"Opening frameworks file '{configPath}'"); var fxconfig = XDocument.Load (configPath); var fxd = fxconfig.Root .Elements ("Framework") @@ -281,6 +281,7 @@ namespace Mono.Documentation )); this.assemblies.AddRange (sets); assemblyPaths.AddRange (sets.SelectMany (s => s.AssemblyPaths)); + Console.WriteLine($"Frameworks Configuration contains {assemblyPaths.Count} assemblies"); // Create a cache of all frameworks, so we can look up // members that may exist only other frameworks before deleting them diff --git a/mdoc/Test/expected_fx_remove_statistics.txt b/mdoc/Test/expected_fx_remove_statistics.txt index 82b80e4d..28b0e6c7 100644 --- a/mdoc/Test/expected_fx_remove_statistics.txt +++ b/mdoc/Test/expected_fx_remove_statistics.txt @@ -1,7 +1,7 @@ -Framework: One +Framework: one -------- Types Added: 0 -Types Removed: 1 +Types Removed: 2 Types Total: 2 Namespaces Added: 0 diff --git a/mdoc/Test/fx-statistics-remove-configuration.xml b/mdoc/Test/fx-statistics-remove-configuration.xml index 47c3a1f5..64da43cf 100644 --- a/mdoc/Test/fx-statistics-remove-configuration.xml +++ b/mdoc/Test/fx-statistics-remove-configuration.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <Frameworks> - <Framework Name="One" Source="One"> - <assemblySearchPath>One</assemblySearchPath> + <Framework Name="One" Source="one"> + <assemblySearchPath>one</assemblySearchPath> </Framework> </Frameworks>
\ No newline at end of file |