Skip to content

Commit

Permalink
BUG/MINOR: Nolonger overwrites existing data files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jwrosewell committed Oct 9, 2015
1 parent 7291a4a commit 0967d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Detector Web Site/Detector Web Site 4.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,6 @@
</VisualStudio>
</ProjectExtensions>
<PropertyGroup>
<PostBuildEvent>copy "$(SolutionDir)data\51Degrees-LiteV3.2.dat" "$(ProjectDir)App_Data\51Degrees.dat"</PostBuildEvent>
<PostBuildEvent>if not exist "$(ProjectDir)App_Data\51Degrees.dat" (copy "$(SolutionDir)data\51Degrees-LiteV3.2.dat" "$(ProjectDir)App_Data\51Degrees.dat")</PostBuildEvent>
</PropertyGroup>
</Project>

0 comments on commit 0967d9e

Please sign in to comment.