You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: XmlSchemaClassGenerator.Console/Program.cs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ static void Main(string[] args)
54
54
varuniqueTypeNamesAcrossNamespaces=false;
55
55
varcreateGeneratedCodeAttributeVersion=true;
56
56
varnetCoreSpecificCode=false;
57
+
varnullableReferenceAttributes=false;
57
58
vargenerateCommandLineArgs=true;
58
59
59
60
varoptions=newOptionSet{
@@ -126,7 +127,8 @@ A file name may be given by appending a pipe sign (|) followed by a file name (l
126
127
v =>commentLanguages=v.Split(',').Select(l =>l.Trim()).ToArray()},
127
128
{"un|uniqueTypeNames","generate type names that are unique across namespaces (default is false)", v =>uniqueTypeNamesAcrossNamespaces=v!=null},
128
129
{"gc|generatedCodeAttribute","add version information to GeneratedCodeAttribute (default is true)", v =>createGeneratedCodeAttributeVersion=v!=null},
129
-
{"nc|netCore","generate .NET Core specific code that might not work with .NET Framework (default is false)", v =>netCoreSpecificCode=v!=null},
130
+
{"nc|netCore","generate .NET Core specific code that might not work with .NET Framework (default is false)", v =>netCoreSpecificCode=v!=null},
131
+
{"nr|nullableReferenceAttributes","generate attributes for nullable references (default is false)", v =>nullableReferenceAttributes=v!=null},
130
132
{"ca|commandArgs","generate a comment with the exact command line arguments that were used to generate the source code (default is true)", v =>generateCommandLineArgs=v!=null},
131
133
};
132
134
@@ -203,6 +205,7 @@ A file name may be given by appending a pipe sign (|) followed by a file name (l
0 commit comments