Skip to content

Commit 87b788d

Browse files
No more erros on script xml comments
1 parent 68174d2 commit 87b788d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

TConvert/Processing.cs

+8-2
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,10 @@ private static void LoadScriptFolder(XmlElement element, List<PathPair> files, L
877877
string newOutput = output;
878878
bool newCompress = compress;
879879
XmlAttribute attribute;
880-
foreach (XmlElement next in element) {
880+
foreach (XmlNode nextNode in element) {
881+
XmlElement next = nextNode as XmlElement;
882+
if (next == null)
883+
continue;
881884
switch (next.Name) {
882885
case "Compress":
883886
attribute = next.Attributes["Value"];
@@ -1018,7 +1021,10 @@ private static void LoadScriptFile(XmlElement element, List<PathPair> files, str
10181021
string newOutput = output;
10191022
bool newCompress = compress;
10201023
XmlAttribute attribute;
1021-
foreach (XmlElement next in element) {
1024+
foreach (XmlNode nextNode in element) {
1025+
XmlElement next = nextNode as XmlElement;
1026+
if (next == null)
1027+
continue;
10221028
switch (next.Name) {
10231029
case "Compress":
10241030
attribute = next.Attributes["Value"];

TConvert/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
// You can specify all the values or you can default the Build and Revision Numbers
5656
// by using the '*' as shown below:
5757
// [assembly: AssemblyVersion("1.0.*")]
58-
[assembly: AssemblyVersion("1.0.0.3")]
59-
[assembly: AssemblyFileVersion("1.0.0.3")]
58+
[assembly: AssemblyVersion("1.0.0.4")]
59+
[assembly: AssemblyFileVersion("1.0.0.4")]
6060
[assembly: Guid("81FD8C9E-23D9-4CE3-95F7-21B735444371")]
6161
[assembly: NeutralResourcesLanguage("en-US")]
6262

0 commit comments

Comments
 (0)