diff --git a/src/FlightRecorder.Entities/Db/Sighting.cs b/src/FlightRecorder.Entities/Db/Sighting.cs
index 0e9e545..b08d2f1 100644
--- a/src/FlightRecorder.Entities/Db/Sighting.cs
+++ b/src/FlightRecorder.Entities/Db/Sighting.cs
@@ -30,7 +30,7 @@ public FlattenedSighting Flatten()
SerialNumber = Aircraft.SerialNumber,
Manufacturer = Aircraft.Model.Manufacturer.Name,
Model = Aircraft.Model.Name,
- Age = (Aircraft.Manufactured != null) ? (DateTime.Now.Year - Aircraft.Manufactured).ToString() : "",
+ Age = (Aircraft.Manufactured > 0) ? (DateTime.Now.Year - Aircraft.Manufactured).ToString() : "",
Embarkation = Flight.Embarkation,
Destination = Flight.Destination,
Altitude = Altitude,
diff --git a/src/FlightRecorder.Entities/FlightRecorder.Entities.csproj b/src/FlightRecorder.Entities/FlightRecorder.Entities.csproj
index 1813c12..be675ce 100644
--- a/src/FlightRecorder.Entities/FlightRecorder.Entities.csproj
+++ b/src/FlightRecorder.Entities/FlightRecorder.Entities.csproj
@@ -3,7 +3,7 @@
net7.0
FlightRecorder.Entities
- 1.0.5.0
+ 1.0.6.0
Dave Walker
Copyright (c) Dave Walker 2020, 2021, 2022
Dave Walker
@@ -16,7 +16,7 @@
https://github.com/davewalker5/FlightRecorderDb
MIT
false
- 1.0.5.0
+ 1.0.6.0
diff --git a/src/FlightRecorder.Manager/FlightRecorder.Manager.csproj b/src/FlightRecorder.Manager/FlightRecorder.Manager.csproj
index f3ddf72..1628535 100644
--- a/src/FlightRecorder.Manager/FlightRecorder.Manager.csproj
+++ b/src/FlightRecorder.Manager/FlightRecorder.Manager.csproj
@@ -1,9 +1,11 @@
-
+
Exe
net7.0
- 1.0.5.0
+ 1.0.6.0
+ 1.0.6.0
+ 1.0.6
Release;Debug
diff --git a/src/FlightRecorder.Manager/Program.cs b/src/FlightRecorder.Manager/Program.cs
index 5c2d119..5a3c76d 100644
--- a/src/FlightRecorder.Manager/Program.cs
+++ b/src/FlightRecorder.Manager/Program.cs
@@ -7,6 +7,8 @@
using FlightRecorder.Manager.Entities;
using FlightRecorder.Manager.Logic;
using FlightRecorder.DataExchange;
+using System.Diagnostics;
+using System.Reflection;
namespace FlightRecorder.Manager
{
@@ -14,8 +16,9 @@ static class Program
{
static void Main(string[] args)
{
- string version = typeof(Program).Assembly.GetName().Version.ToString();
- Console.WriteLine($"Flight Recorder Database Management {version}");
+ Assembly assembly = Assembly.GetExecutingAssembly();
+ FileVersionInfo info = FileVersionInfo.GetVersionInfo(assembly.Location);
+ Console.WriteLine($"Flight Recorder Database Management {info.FileVersion}");
Operation op = new CommandParser().ParseCommandLine(args);
if (op.Valid)
diff --git a/src/FlightRecorder.Manager/Properties/launchSettings.json b/src/FlightRecorder.Manager/Properties/launchSettings.json
index a81ead0..eee9b03 100644
--- a/src/FlightRecorder.Manager/Properties/launchSettings.json
+++ b/src/FlightRecorder.Manager/Properties/launchSettings.json
@@ -2,7 +2,7 @@
"profiles": {
"FlightRecorder.Manager": {
"commandName": "Project",
- "commandLineArgs": "update"
+ "commandLineArgs": "export sightings test_export.csv"
}
}
}
\ No newline at end of file