From 0967d9e7658ee1c3aea7ccc8a5ea5f2556ae19ad Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Fri, 9 Oct 2015 10:50:54 +0100 Subject: [PATCH] BUG/MINOR: Nolonger overwrites existing data files When the project is built the command to copy device data from the root data folder will check for the presence a data file in App_Data and only copy the file if the destination does not exist. This prevents Premium or Enterprise data from being overwritten. Former-commit-id: 72e6c00d1757b2423e918d98640a9181ed66c851 --- Detector Web Site/Detector Web Site 4.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Detector Web Site/Detector Web Site 4.csproj b/Detector Web Site/Detector Web Site 4.csproj index 63db26e..b09cea0 100644 --- a/Detector Web Site/Detector Web Site 4.csproj +++ b/Detector Web Site/Detector Web Site 4.csproj @@ -297,6 +297,6 @@ - copy "$(SolutionDir)data\51Degrees-LiteV3.2.dat" "$(ProjectDir)App_Data\51Degrees.dat" + if not exist "$(ProjectDir)App_Data\51Degrees.dat" (copy "$(SolutionDir)data\51Degrees-LiteV3.2.dat" "$(ProjectDir)App_Data\51Degrees.dat") \ No newline at end of file