Skip to content

Commit

Permalink
Merge pull request #466 from AndyGerlicher/serializefix
Browse files Browse the repository at this point in the history
ResGen Cache Serialization Fix
  • Loading branch information
AndyGerlicher committed Feb 4, 2016
2 parents 70d9786 + 602201c commit 1a5f05d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/XMakeCommandLine/XMake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,7 @@ private static void StartLocalNode(CommandLineSwitches commandLineSwitches)
#if !STANDALONEBUILD
else
{
StartLocalNodeOldOM(nodeNumber);
StartLocalNodeOldOM(nodeModeNumber);
}
#endif
}
Expand Down
10 changes: 5 additions & 5 deletions src/XMakeTasks/Dependencies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal class Dependencies
/// Hashtable of other dependency files.
/// Key is filename and value is DependencyFile.
/// </summary>
private Hashtable _dependencies = new Hashtable();
private Hashtable dependencies = new Hashtable();

/// <summary>
/// Look up a dependency file. Return null if its not there.
Expand All @@ -35,7 +35,7 @@ internal class Dependencies
/// <returns></returns>
internal DependencyFile GetDependencyFile(string filename)
{
return (DependencyFile)_dependencies[filename];
return (DependencyFile)dependencies[filename];
}


Expand All @@ -46,7 +46,7 @@ internal DependencyFile GetDependencyFile(string filename)
/// <returns></returns>
internal void AddDependencyFile(string filename, DependencyFile file)
{
_dependencies[filename] = file;
dependencies[filename] = file;
}

/// <summary>
Expand All @@ -56,15 +56,15 @@ internal void AddDependencyFile(string filename, DependencyFile file)
/// <returns></returns>
internal void RemoveDependencyFile(string filename)
{
_dependencies.Remove(filename);
dependencies.Remove(filename);
}

/// <summary>
/// Remove all entries from the dependency table.
/// </summary>
internal void Clear()
{
_dependencies.Clear();
dependencies.Clear();
}
}
}
2 changes: 1 addition & 1 deletion src/XMakeTasks/StateFileBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class StateFileBase
// Current version for serialization. This should be changed when breaking changes
// are made to this class.
// Note: Consider that changes can break VS2015 RTM which did not have a version check.
private const byte CurrentSerializationVersion = 2;
private const byte CurrentSerializationVersion = 3;

// Version this instance is serialized with.
private byte _serializedVersion = CurrentSerializationVersion;
Expand Down

0 comments on commit 1a5f05d

Please sign in to comment.