Skip to content

Commit

Permalink
Fixes how the file paths can be set dynamically on startup, bumps ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
Shazwazza committed Jan 23, 2018
1 parent 981f866 commit d4f97ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ public class XmlFileMapper : BaseFileMapProvider
{

public const string DefaultName = "XmlFileMap";

private const string MapFileName = "map.xml";
private const string DefaultFileMapFolder = "~/App_Data/ClientDependency";

private XDocument _doc;
private FileInfo _xmlFile;

private static readonly object Locker = new object();
private static string _fileMapFolder = "~/App_Data/ClientDependency";
private static string _fileMapFolder = DefaultFileMapFolder;
private static bool _dynamicallyConfiguredPath = false;

[Obsolete("Use FileMapDefaultFolder instead")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static string FileMapVirtualFolder = _fileMapFolder;
public static string FileMapVirtualFolder = DefaultFileMapFolder;

/// <summary>
/// Specifies the default folder to store the file map in, either absolute or virtual
Expand All @@ -62,7 +62,7 @@ public static string FileMapDefaultFolder
public XmlFileMapper()
{
//here we need to do a backwards compat check
if (FileMapVirtualFolder != _fileMapFolder)
if (FileMapVirtualFolder != DefaultFileMapFolder)
{
//in this case, the legacy FileMapVirtualFolder was updated which means that we need to change
//the non-legacy FileMapDefaultFolder value
Expand Down
6 changes: 3 additions & 3 deletions SolutionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
[assembly: AssemblyCulture("")]


[assembly: AssemblyVersion("1.9.5")]
[assembly: AssemblyFileVersion("1.9.5")]
[assembly: AssemblyInformationalVersion("1.9.5")]
[assembly: AssemblyVersion("1.9.6")]
[assembly: AssemblyFileVersion("1.9.6")]
[assembly: AssemblyInformationalVersion("1.9.6")]

0 comments on commit d4f97ea

Please sign in to comment.