diff --git a/MatterControl.csproj b/MatterControl.csproj
index 768b4740d..ea4787076 100644
--- a/MatterControl.csproj
+++ b/MatterControl.csproj
@@ -360,6 +360,10 @@
+
+ packages\Xamarin.Insights.1.10.2.110\lib\portable-win+net40\Xamarin.Insights.dll
+ True
+
diff --git a/MatterControlApplication.cs b/MatterControlApplication.cs
index 2a9954e53..19490f5be 100644
--- a/MatterControlApplication.cs
+++ b/MatterControlApplication.cs
@@ -47,6 +47,7 @@ using System.Globalization;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
+using Xamarin;
namespace MatterHackers.MatterControl
{
@@ -357,11 +358,23 @@ namespace MatterHackers.MatterControl
[STAThread]
public static void Main()
{
- // Make sure we have the right woring directory as we assume everything relative to the executable.
+ // Make sure we have the right working directory as we assume everything relative to the executable.
Directory.SetCurrentDirectory(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location));
Datastore.Instance.Initialize();
+#if !DEBUG
+ // Conditionally spin up Insights reporting if not on the Stable channel
+ string channel = UserSettings.Instance.get("UpdateFeedType");
+ if (string.IsNullOrEmpty(channel) || channel != "release")
+#endif
+ {
+ Insights.Initialize(
+ "2b84bf883521ee8deca1b633b7d33818c20b87cc",
+ string.Format("{0} ({1})", VersionInfo.Instance.ReleaseVersion, VersionInfo.Instance.BuildVersion),
+ "MatterControl Desktop");
+ }
+
MatterControlApplication app = MatterControlApplication.Instance;
}
diff --git a/packages.config b/packages.config
index f4af2d2bc..5302caa34 100644
--- a/packages.config
+++ b/packages.config
@@ -1,5 +1,5 @@
-
+
\ No newline at end of file