From 8d27ac8bd8eb8ec320714a0bc201b05728da2206 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 18 Dec 2020 17:55:28 -0600 Subject: Enable XML doc. --- src/CSharp.Build.props | 1 + src/Directory.Build.targets | 8 ++++++++ src/WixToolset.Data/Intermediate.cs | 15 ++++++--------- src/WixToolset.Data/WindowsInstaller/ColumnDefinition.cs | 1 + src/WixToolset.Data/WindowsInstaller/Field.cs | 4 ++-- .../WindowsInstaller/Rows/SummaryInfoRowCollection.cs | 2 +- src/WixToolset.Data/WindowsInstaller/TableDefinition.cs | 1 + .../WindowsInstaller/WindowsInstallerData.cs | 3 +-- src/WixToolset.Data/WixOutput.cs | 12 +++++++++--- src/WixToolset.Data/WixToolset.Data.csproj | 6 ++++-- 10 files changed, 34 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/CSharp.Build.props b/src/CSharp.Build.props index bcd47a0c..81d24ad1 100644 --- a/src/CSharp.Build.props +++ b/src/CSharp.Build.props @@ -8,5 +8,6 @@ true true $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)wix.snk)) + false diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index dac7452a..cb988931 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -9,6 +9,11 @@ See the original here: https://github.com/dotnet/sdk/issues/1151#issuecomment-385133284 --> + + false + $(OutputPath)\$(AssemblyName).xml + + true $(SolutionPath) @@ -45,4 +50,7 @@ + + + diff --git a/src/WixToolset.Data/Intermediate.cs b/src/WixToolset.Data/Intermediate.cs index 30a50120..f9d33839 100644 --- a/src/WixToolset.Data/Intermediate.cs +++ b/src/WixToolset.Data/Intermediate.cs @@ -121,7 +121,6 @@ namespace WixToolset.Data /// Loads an intermediate from a WixOutput object. /// /// WixOutput object. - /// ISymbolDefinitionCreator to use when reconstituting the intermediate. /// Suppress checking for wix.dll version mismatches. /// Returns the loaded intermediate. public static Intermediate Load(WixOutput wixOutput, bool suppressVersionCheck = false) @@ -146,7 +145,6 @@ namespace WixToolset.Data /// Loads several intermediates from paths on disk using the same definitions. /// /// Paths to intermediate files saved on disk. - /// Suppress checking for wix.dll version mismatches. /// Returns the loaded intermediates public static IEnumerable Load(IEnumerable intermediateFiles) { @@ -225,9 +223,9 @@ namespace WixToolset.Data } /// - /// Saves an intermediate to a path on disk. + /// Saves an intermediate to a WixOutput. /// - /// Path to save intermediate file to disk. + /// Destination to save. public void Save(WixOutput wixout) { this.SaveEmbedFiles(wixout); @@ -236,10 +234,9 @@ namespace WixToolset.Data } /// - /// Loads an intermediate from a path on disk. + /// Loads an intermediate from a WixOutput. /// - /// Stream to intermediate file. - /// Path name of intermediate file. + /// Source to load from. /// ISymbolDefinitionCreator to use when reconstituting the intermediate. /// Suppress checking for wix.dll version mismatches. /// Returns the loaded intermediate. @@ -254,9 +251,9 @@ namespace WixToolset.Data } /// - /// Loads json form of intermedaite from stream. + /// Loads json form of intermediate. /// - /// Stream to intermediate file. + /// Source to load from. /// Path name of intermediate file. /// Suppress checking for wix.dll version mismatches. /// Returns the loaded json. diff --git a/src/WixToolset.Data/WindowsInstaller/ColumnDefinition.cs b/src/WixToolset.Data/WindowsInstaller/ColumnDefinition.cs index de554fd8..f4dbab34 100644 --- a/src/WixToolset.Data/WindowsInstaller/ColumnDefinition.cs +++ b/src/WixToolset.Data/WindowsInstaller/ColumnDefinition.cs @@ -29,6 +29,7 @@ namespace WixToolset.Data.WindowsInstaller /// Type of modularization for column /// If the column is localizable. /// If whitespace should be preserved in a CDATA node. + /// If not saved to MSI. public ColumnDefinition(string name, ColumnType type, int length, bool primaryKey, bool nullable, ColumnCategory category, long? minValue = null, long? maxValue = null, string keyTable = null, int? keyColumn = null, string possibilities = null, string description = null, ColumnModularizeType? modularizeType = null, bool forceLocalizable = false, bool useCData = false, bool unreal = false) { this.Name = name; diff --git a/src/WixToolset.Data/WindowsInstaller/Field.cs b/src/WixToolset.Data/WindowsInstaller/Field.cs index 84e8d543..e5edd552 100644 --- a/src/WixToolset.Data/WindowsInstaller/Field.cs +++ b/src/WixToolset.Data/WindowsInstaller/Field.cs @@ -64,7 +64,6 @@ namespace WixToolset.Data.WindowsInstaller /// /// Sets the value of a particular field in the row without validating. /// - /// field index. /// Value of a field in the row. /// True if successful, false if validation failed. public bool BestEffortSet(object value) @@ -133,8 +132,9 @@ namespace WixToolset.Data.WindowsInstaller } /// - /// Validate a value for this column. + /// Validate a value for a column. /// + /// The column. /// The value to validate. /// Validated value. internal object ValidateValue(ColumnDefinition column, object value) diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/SummaryInfoRowCollection.cs b/src/WixToolset.Data/WindowsInstaller/Rows/SummaryInfoRowCollection.cs index fc0410e9..4b2ce129 100644 --- a/src/WixToolset.Data/WindowsInstaller/Rows/SummaryInfoRowCollection.cs +++ b/src/WixToolset.Data/WindowsInstaller/Rows/SummaryInfoRowCollection.cs @@ -32,7 +32,7 @@ namespace WixToolset.Data.WindowsInstaller.Rows /// Gets the summary property ID for the . /// /// The row to index. - /// The summary property ID for the . + /// The summary property ID for the . protected override int GetKeyForItem(Row row) { return (int)row[0]; diff --git a/src/WixToolset.Data/WindowsInstaller/TableDefinition.cs b/src/WixToolset.Data/WindowsInstaller/TableDefinition.cs index 504c89ce..a7602d05 100644 --- a/src/WixToolset.Data/WindowsInstaller/TableDefinition.cs +++ b/src/WixToolset.Data/WindowsInstaller/TableDefinition.cs @@ -26,6 +26,7 @@ namespace WixToolset.Data.WindowsInstaller /// Column definitions for the table. /// Flag if table is unreal. /// Whether the primary key is the id of the symbol definition associated with this table. + /// The specialized type for the rows. public TableDefinition(string name, IntermediateSymbolDefinition symbolDefinition, IEnumerable columns, bool unreal = false, bool symbolIdIsPrimaryKey = false, Type strongRowType = null) { this.Name = name; diff --git a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs index cc16bca5..8d69cd08 100644 --- a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs +++ b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs @@ -70,7 +70,6 @@ namespace WixToolset.Data.WindowsInstaller /// Ensure this output contains a particular table. /// /// Definition of the table that should exist. - /// Optional section to use for the table. If one is not provided, the entry section will be used. /// The table in this output. public Table EnsureTable(TableDefinition tableDefinition) { @@ -98,7 +97,7 @@ namespace WixToolset.Data.WindowsInstaller /// /// Saves an output to an XmlWriter. /// - /// XmlWriter to save to. + /// XmlWriter to save to. public void Save(XmlWriter writer) { writer.WriteStartDocument(); diff --git a/src/WixToolset.Data/WixOutput.cs b/src/WixToolset.Data/WixOutput.cs index 969de991..43359f24 100644 --- a/src/WixToolset.Data/WixOutput.cs +++ b/src/WixToolset.Data/WixOutput.cs @@ -24,6 +24,9 @@ namespace WixToolset.Data this.stream = stream; } + /// + /// + /// public Uri Uri { get; } /// @@ -60,8 +63,8 @@ namespace WixToolset.Data /// /// Creates a new file structure. /// + /// /// Stream to write the file structure to. - /// Paths to files to embedd in the file structure. /// Newly created WixOutput. public static WixOutput Create(Uri uri, Stream stream) { @@ -109,9 +112,11 @@ namespace WixToolset.Data } /// - /// Loads a wixout from a assembly resource stream. + /// Loads a wixout from an assembly resource stream. /// - /// Path to wixout file saved on disk. + /// + /// + /// Loaded created WixOutput. public static WixOutput Read(Assembly assembly, string resourceName) { var resourceStream = assembly.GetManifestResourceStream(resourceName); @@ -128,6 +133,7 @@ namespace WixToolset.Data /// /// Reads a file structure from an open stream. /// + /// /// Stream to read from. /// Loaded created WixOutput. public static WixOutput Read(Uri uri, Stream stream) diff --git a/src/WixToolset.Data/WixToolset.Data.csproj b/src/WixToolset.Data/WixToolset.Data.csproj index 19310aea..24b0917b 100644 --- a/src/WixToolset.Data/WixToolset.Data.csproj +++ b/src/WixToolset.Data/WixToolset.Data.csproj @@ -6,10 +6,12 @@ netstandard2.0 $(TargetFrameworks);net461;net472 7.3 - WiX Toolset Data - + WiX Toolset Data embedded true + true + + CS1591 -- cgit v1.2.3-55-g6feb