From df8d3df1dbb90a070afd061a7e56449bed124845 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle Date: Mon, 20 Jun 2016 12:49:12 +1200 Subject: [PATCH 01/15] Use isolated storage in .NET 4 provider --- Mindscape.Raygun4Net4/RaygunClient.cs | 102 +++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) diff --git a/Mindscape.Raygun4Net4/RaygunClient.cs b/Mindscape.Raygun4Net4/RaygunClient.cs index 2eb037ea..3bd83c61 100644 --- a/Mindscape.Raygun4Net4/RaygunClient.cs +++ b/Mindscape.Raygun4Net4/RaygunClient.cs @@ -10,6 +10,8 @@ using System.Reflection; using Mindscape.Raygun4Net.Builders; using System.IO; +using System.IO.IsolatedStorage; +using System.Text; namespace Mindscape.Raygun4Net { @@ -537,7 +539,7 @@ protected WebClient CreateWebClient() return client; } - private void SaveMessage(string message) + /*private void SaveMessage(string message) { try { @@ -622,6 +624,104 @@ private void SendStoredMessages() } } } + }*/ + + private void SaveMessage(string message) + { + try + { + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + { + string directoryName = "RaygunOfflineStorage"; + if (!isolatedStorage.DirectoryExists(directoryName)) + { + isolatedStorage.CreateDirectory(directoryName); + } + + int number = 1; + while (true) + { + bool exists = isolatedStorage.FileExists(directoryName + "\\RaygunErrorMessage" + number + ".txt"); + if (!exists) + { + string nextFileName = directoryName + "\\RaygunErrorMessage" + (number + 1) + ".txt"; + exists = isolatedStorage.FileExists(nextFileName); + if (exists) + { + isolatedStorage.DeleteFile(nextFileName); + } + break; + } + number++; + } + + if (number == 11) + { + string firstFileName = directoryName + "\\RaygunErrorMessage1.txt"; + if (isolatedStorage.FileExists(firstFileName)) + { + isolatedStorage.DeleteFile(firstFileName); + } + } + using (IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream(directoryName + "\\RaygunErrorMessage" + number + ".txt", FileMode.OpenOrCreate, FileAccess.Write, isolatedStorage)) + { + using (StreamWriter writer = new StreamWriter(isoStream, Encoding.Unicode)) + { + writer.Write(message); + writer.Flush(); + writer.Close(); + } + } + System.Diagnostics.Trace.WriteLine("Saved message: " + "RaygunErrorMessage" + number + ".txt"); + } + } + catch (Exception ex) + { + System.Diagnostics.Trace.WriteLine(string.Format("Error saving message to isolated storage {0}", ex.Message)); + } + } + + private void SendStoredMessages() + { + try + { + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + { + string directoryName = "RaygunOfflineStorage"; + if (isolatedStorage.DirectoryExists(directoryName)) + { + string[] fileNames = isolatedStorage.GetFileNames(directoryName + "\\*.txt"); + foreach (string name in fileNames) + { + IsolatedStorageFileStream isoFileStream = isolatedStorage.OpenFile(directoryName + "\\" + name, FileMode.Open); + using (StreamReader reader = new StreamReader(isoFileStream)) + { + string text = reader.ReadToEnd(); + try + { + Send(text); + } + catch + { + // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. + return; + } + System.Diagnostics.Debug.WriteLine("Sent " + name); + } + isolatedStorage.DeleteFile(directoryName + "\\" + name); + } + if (isolatedStorage.GetFileNames(directoryName + "\\*.txt").Length == 0) + { + System.Diagnostics.Debug.WriteLine("Successfully sent all pending messages"); + isolatedStorage.DeleteDirectory(directoryName); + } + } + } + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); + } } } } From 5adce102b67a468c890efe16829a9cd543f3cc13 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle Date: Mon, 20 Jun 2016 15:53:11 +1200 Subject: [PATCH 02/15] Isolated storage support for .NET 3.5 client profile --- .../RaygunClient.cs | 122 +++++++++++++++++- 1 file changed, 121 insertions(+), 1 deletion(-) diff --git a/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs b/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs index 71dc1f76..e4edbf6d 100644 --- a/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs +++ b/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs @@ -9,6 +9,8 @@ using System.Reflection; using Mindscape.Raygun4Net.Builders; using System.IO; +using System.IO.IsolatedStorage; +using System.Text; namespace Mindscape.Raygun4Net { @@ -351,7 +353,7 @@ protected WebClient CreateWebClient() return client; } - private void SaveMessage(string message) + /*private void SaveMessage(string message) { try { @@ -437,6 +439,124 @@ private void SendStoredMessages() } } } + }*/ + + private void SaveMessage(string message) + { + try + { + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + { + string directoryName = "RaygunOfflineStorage"; + string[] directories = isolatedStorage.GetDirectoryNames("*"); + if (!FileExists(directories, directoryName)) + { + isolatedStorage.CreateDirectory(directoryName); + } + + int number = 1; + string[] files = isolatedStorage.GetFileNames(directoryName + "\\*.txt"); + while (true) + { + bool exists = FileExists(files, "RaygunErrorMessage" + number + ".txt"); + if (!exists) + { + string nextFileName = "RaygunErrorMessage" + (number + 1) + ".txt"; + exists = FileExists(files, nextFileName); + if (exists) + { + isolatedStorage.DeleteFile(directoryName + "\\" + nextFileName); + } + break; + } + number++; + } + + if (number == 11) + { + string firstFileName = "RaygunErrorMessage1.txt"; + if (FileExists(files, firstFileName)) + { + isolatedStorage.DeleteFile(directoryName + "\\" + firstFileName); + } + } + using (IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream(directoryName + "\\RaygunErrorMessage" + number + ".txt", FileMode.OpenOrCreate, FileAccess.Write, isolatedStorage)) + { + using (StreamWriter writer = new StreamWriter(isoStream, Encoding.Unicode)) + { + writer.Write(message); + writer.Flush(); + writer.Close(); + } + } + System.Diagnostics.Trace.WriteLine("Saved message: " + "RaygunErrorMessage" + number + ".txt"); + } + } + catch (Exception ex) + { + System.Diagnostics.Trace.WriteLine(string.Format("Error saving message to isolated storage {0}", ex.Message)); + } + } + + private bool FileExists(string[] files, string fileName) + { + foreach (string str in files) + { + if (fileName.Equals(str)) + { + return true; + } + } + return false; + } + + private static object _sendLock = new object(); + + private void SendStoredMessages() + { + lock (_sendLock) + { + try + { + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + { + string directoryName = "RaygunOfflineStorage"; + string[] directories = isolatedStorage.GetDirectoryNames("*"); + if (FileExists(directories, directoryName)) + { + string[] fileNames = isolatedStorage.GetFileNames(directoryName + "\\*.txt"); + foreach (string name in fileNames) + { + IsolatedStorageFileStream isoFileStream = new IsolatedStorageFileStream(directoryName + "\\" + name, FileMode.Open, isolatedStorage); + using (StreamReader reader = new StreamReader(isoFileStream)) + { + string text = reader.ReadToEnd(); + try + { + Send(text); + } + catch + { + // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. + return; + } + System.Diagnostics.Debug.WriteLine("Sent " + name); + } + isolatedStorage.DeleteFile(directoryName + "\\" + name); + } + if (isolatedStorage.GetFileNames(directoryName + "\\*.txt").Length == 0) + { + System.Diagnostics.Debug.WriteLine("Successfully sent all pending messages"); + isolatedStorage.DeleteDirectory(directoryName); + } + } + } + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); + } + } } } } From 6e6dbda2b9e7b71df26171dc8386278641c38656 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle Date: Mon, 20 Jun 2016 15:53:30 +1200 Subject: [PATCH 03/15] Isolated storage support for .NET 3.5 --- Mindscape.Raygun4Net/RaygunClient.cs | 122 ++++++++++++++++++++++++++- 1 file changed, 121 insertions(+), 1 deletion(-) diff --git a/Mindscape.Raygun4Net/RaygunClient.cs b/Mindscape.Raygun4Net/RaygunClient.cs index a9c9e54a..e47483af 100644 --- a/Mindscape.Raygun4Net/RaygunClient.cs +++ b/Mindscape.Raygun4Net/RaygunClient.cs @@ -10,6 +10,8 @@ using System.Reflection; using Mindscape.Raygun4Net.Builders; using System.IO; +using System.IO.IsolatedStorage; +using System.Text; namespace Mindscape.Raygun4Net { @@ -491,7 +493,7 @@ protected WebClient CreateWebClient() return client; } - private void SaveMessage(string message) + /*private void SaveMessage(string message) { try { @@ -577,6 +579,124 @@ private void SendStoredMessages() } } } + }*/ + + private void SaveMessage(string message) + { + try + { + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + { + string directoryName = "RaygunOfflineStorage"; + string[] directories = isolatedStorage.GetDirectoryNames("*"); + if (!FileExists(directories, directoryName)) + { + isolatedStorage.CreateDirectory(directoryName); + } + + int number = 1; + string[] files = isolatedStorage.GetFileNames(directoryName + "\\*.txt"); + while (true) + { + bool exists = FileExists(files, "RaygunErrorMessage" + number + ".txt"); + if (!exists) + { + string nextFileName = "RaygunErrorMessage" + (number + 1) + ".txt"; + exists = FileExists(files, nextFileName); + if (exists) + { + isolatedStorage.DeleteFile(directoryName + "\\" + nextFileName); + } + break; + } + number++; + } + + if (number == 11) + { + string firstFileName = "RaygunErrorMessage1.txt"; + if (FileExists(files, firstFileName)) + { + isolatedStorage.DeleteFile(directoryName + "\\" + firstFileName); + } + } + using (IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream(directoryName + "\\RaygunErrorMessage" + number + ".txt", FileMode.OpenOrCreate, FileAccess.Write, isolatedStorage)) + { + using (StreamWriter writer = new StreamWriter(isoStream, Encoding.Unicode)) + { + writer.Write(message); + writer.Flush(); + writer.Close(); + } + } + System.Diagnostics.Trace.WriteLine("Saved message: " + "RaygunErrorMessage" + number + ".txt"); + } + } + catch (Exception ex) + { + System.Diagnostics.Trace.WriteLine(string.Format("Error saving message to isolated storage {0}", ex.Message)); + } + } + + private bool FileExists(string[] files, string fileName) + { + foreach (string str in files) + { + if (fileName.Equals(str)) + { + return true; + } + } + return false; + } + + private static object _sendLock = new object(); + + private void SendStoredMessages() + { + lock (_sendLock) + { + try + { + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + { + string directoryName = "RaygunOfflineStorage"; + string[] directories = isolatedStorage.GetDirectoryNames("*"); + if (FileExists(directories, directoryName)) + { + string[] fileNames = isolatedStorage.GetFileNames(directoryName + "\\*.txt"); + foreach (string name in fileNames) + { + IsolatedStorageFileStream isoFileStream = new IsolatedStorageFileStream(directoryName + "\\" + name, FileMode.Open, isolatedStorage); + using (StreamReader reader = new StreamReader(isoFileStream)) + { + string text = reader.ReadToEnd(); + try + { + Send(text); + } + catch + { + // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. + return; + } + System.Diagnostics.Debug.WriteLine("Sent " + name); + } + isolatedStorage.DeleteFile(directoryName + "\\" + name); + } + if (isolatedStorage.GetFileNames(directoryName + "\\*.txt").Length == 0) + { + System.Diagnostics.Debug.WriteLine("Successfully sent all pending messages"); + isolatedStorage.DeleteDirectory(directoryName); + } + } + } + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); + } + } } } } From a66f0e93ec39ecd9c543364af383974da2af3e3b Mon Sep 17 00:00:00 2001 From: Jason Fauchelle Date: Mon, 20 Jun 2016 15:53:51 +1200 Subject: [PATCH 04/15] Isolated storage support for .NET 4.x client profile --- .../RaygunClient.cs | 107 +++++++++++++++++- 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs b/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs index 1099232e..492e2631 100644 --- a/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs +++ b/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs @@ -9,6 +9,8 @@ using System.Reflection; using Mindscape.Raygun4Net.Builders; using System.IO; +using System.IO.IsolatedStorage; +using System.Text; namespace Mindscape.Raygun4Net { @@ -370,7 +372,7 @@ protected WebClient CreateWebClient() return client; } - private void SaveMessage(string message) + /*private void SaveMessage(string message) { try { @@ -455,6 +457,109 @@ private void SendStoredMessages() } } } + }*/ + + private void SaveMessage(string message) + { + try + { + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + { + string directoryName = "RaygunOfflineStorage"; + if (!isolatedStorage.DirectoryExists(directoryName)) + { + isolatedStorage.CreateDirectory(directoryName); + } + + int number = 1; + while (true) + { + bool exists = isolatedStorage.FileExists(directoryName + "\\RaygunErrorMessage" + number + ".txt"); + if (!exists) + { + string nextFileName = directoryName + "\\RaygunErrorMessage" + (number + 1) + ".txt"; + exists = isolatedStorage.FileExists(nextFileName); + if (exists) + { + isolatedStorage.DeleteFile(nextFileName); + } + break; + } + number++; + } + + if (number == 11) + { + string firstFileName = directoryName + "\\RaygunErrorMessage1.txt"; + if (isolatedStorage.FileExists(firstFileName)) + { + isolatedStorage.DeleteFile(firstFileName); + } + } + using (IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream(directoryName + "\\RaygunErrorMessage" + number + ".txt", FileMode.OpenOrCreate, FileAccess.Write, isolatedStorage)) + { + using (StreamWriter writer = new StreamWriter(isoStream, Encoding.Unicode)) + { + writer.Write(message); + writer.Flush(); + writer.Close(); + } + } + System.Diagnostics.Trace.WriteLine("Saved message: " + "RaygunErrorMessage" + number + ".txt"); + } + } + catch (Exception ex) + { + System.Diagnostics.Trace.WriteLine(string.Format("Error saving message to isolated storage {0}", ex.Message)); + } + } + + private static object _sendLock = new object(); + + private void SendStoredMessages() + { + lock (_sendLock) + { + try + { + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + { + string directoryName = "RaygunOfflineStorage"; + if (isolatedStorage.DirectoryExists(directoryName)) + { + string[] fileNames = isolatedStorage.GetFileNames(directoryName + "\\*.txt"); + foreach (string name in fileNames) + { + IsolatedStorageFileStream isoFileStream = isolatedStorage.OpenFile(directoryName + "\\" + name, FileMode.Open); + using (StreamReader reader = new StreamReader(isoFileStream)) + { + string text = reader.ReadToEnd(); + try + { + Send(text); + } + catch + { + // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. + return; + } + System.Diagnostics.Debug.WriteLine("Sent " + name); + } + isolatedStorage.DeleteFile(directoryName + "\\" + name); + } + if (isolatedStorage.GetFileNames(directoryName + "\\*.txt").Length == 0) + { + System.Diagnostics.Debug.WriteLine("Successfully sent all pending messages"); + isolatedStorage.DeleteDirectory(directoryName); + } + } + } + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); + } + } } } } From c188de4f92fed1743d0adafd3855b0c140dd12af Mon Sep 17 00:00:00 2001 From: Jason Fauchelle Date: Mon, 20 Jun 2016 15:54:07 +1200 Subject: [PATCH 05/15] Added send lock --- Mindscape.Raygun4Net4/RaygunClient.cs | 59 +++++++++++++++------------ 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/Mindscape.Raygun4Net4/RaygunClient.cs b/Mindscape.Raygun4Net4/RaygunClient.cs index 3bd83c61..27dcf902 100644 --- a/Mindscape.Raygun4Net4/RaygunClient.cs +++ b/Mindscape.Raygun4Net4/RaygunClient.cs @@ -681,46 +681,51 @@ private void SaveMessage(string message) } } + private static object _sendLock = new object(); + private void SendStoredMessages() { - try + lock (_sendLock) { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + try { - string directoryName = "RaygunOfflineStorage"; - if (isolatedStorage.DirectoryExists(directoryName)) + using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) { - string[] fileNames = isolatedStorage.GetFileNames(directoryName + "\\*.txt"); - foreach (string name in fileNames) + string directoryName = "RaygunOfflineStorage"; + if (isolatedStorage.DirectoryExists(directoryName)) { - IsolatedStorageFileStream isoFileStream = isolatedStorage.OpenFile(directoryName + "\\" + name, FileMode.Open); - using (StreamReader reader = new StreamReader(isoFileStream)) + string[] fileNames = isolatedStorage.GetFileNames(directoryName + "\\*.txt"); + foreach (string name in fileNames) { - string text = reader.ReadToEnd(); - try + IsolatedStorageFileStream isoFileStream = isolatedStorage.OpenFile(directoryName + "\\" + name, FileMode.Open); + using (StreamReader reader = new StreamReader(isoFileStream)) { - Send(text); + string text = reader.ReadToEnd(); + try + { + Send(text); + } + catch + { + // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. + return; + } + System.Diagnostics.Debug.WriteLine("Sent " + name); } - catch - { - // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. - return; - } - System.Diagnostics.Debug.WriteLine("Sent " + name); + isolatedStorage.DeleteFile(directoryName + "\\" + name); + } + if (isolatedStorage.GetFileNames(directoryName + "\\*.txt").Length == 0) + { + System.Diagnostics.Debug.WriteLine("Successfully sent all pending messages"); + isolatedStorage.DeleteDirectory(directoryName); } - isolatedStorage.DeleteFile(directoryName + "\\" + name); - } - if (isolatedStorage.GetFileNames(directoryName + "\\*.txt").Length == 0) - { - System.Diagnostics.Debug.WriteLine("Successfully sent all pending messages"); - isolatedStorage.DeleteDirectory(directoryName); } } } - } - catch (Exception ex) - { - System.Diagnostics.Debug.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); + } } } } From 07a323d2063dc3c5560174739d613d7d82215f3f Mon Sep 17 00:00:00 2001 From: Jason Fauchelle Date: Mon, 20 Jun 2016 15:58:03 +1200 Subject: [PATCH 06/15] Clean up --- .../RaygunClient.cs | 88 ------------------- Mindscape.Raygun4Net/RaygunClient.cs | 88 ------------------- .../RaygunClient.cs | 87 ------------------ Mindscape.Raygun4Net4/RaygunClient.cs | 87 ------------------ 4 files changed, 350 deletions(-) diff --git a/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs b/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs index e4edbf6d..b11c9d54 100644 --- a/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs +++ b/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs @@ -353,94 +353,6 @@ protected WebClient CreateWebClient() return client; } - /*private void SaveMessage(string message) - { - try - { - string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\RaygunOfflineStorage"; - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } - int number = 1; - while (true) - { - bool exists = File.Exists(path + "\\RaygunErrorMessage" + number + ".txt"); - if (!exists) - { - string nextFileName = path + "\\RaygunErrorMessage" + (number + 1) + ".txt"; - exists = File.Exists(nextFileName); - if (exists) - { - File.Delete(nextFileName); - } - break; - } - number++; - } - if (number == 11) - { - string firstFileName = path + "\\RaygunErrorMessage1.txt"; - if (File.Exists(firstFileName)) - { - File.Delete(firstFileName); - } - } - File.WriteAllText(path + "\\RaygunErrorMessage" + number + ".txt", message); - System.Diagnostics.Debug.WriteLine("Saved message: " + "RaygunErrorMessage" + number + ".txt"); - } - catch (Exception ex) - { - System.Diagnostics.Debug.WriteLine(string.Format("Error saving message to offline storage {0}", ex.Message)); - if (RaygunSettings.Settings.ThrowOnError) - { - throw; - } - } - } - - private static object _sendLock = new object(); - - private void SendStoredMessages() - { - lock (_sendLock) - { - try - { - string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\RaygunOfflineStorage"; - if (Directory.Exists(path)) - { - string[] files = Directory.GetFiles(path); - foreach (string name in files) - { - string text = File.ReadAllText(name); - - try - { - Send(text); - } - catch - { - // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. - return; - } - System.Diagnostics.Debug.WriteLine("Sent " + name); - - File.Delete(name); - } - } - } - catch (Exception ex) - { - System.Diagnostics.Debug.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); - if (RaygunSettings.Settings.ThrowOnError) - { - throw; - } - } - } - }*/ - private void SaveMessage(string message) { try diff --git a/Mindscape.Raygun4Net/RaygunClient.cs b/Mindscape.Raygun4Net/RaygunClient.cs index e47483af..5c469da3 100644 --- a/Mindscape.Raygun4Net/RaygunClient.cs +++ b/Mindscape.Raygun4Net/RaygunClient.cs @@ -493,94 +493,6 @@ protected WebClient CreateWebClient() return client; } - /*private void SaveMessage(string message) - { - try - { - string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\RaygunOfflineStorage"; - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } - int number = 1; - while (true) - { - bool exists = File.Exists(path + "\\RaygunErrorMessage" + number + ".txt"); - if (!exists) - { - string nextFileName = path + "\\RaygunErrorMessage" + (number + 1) + ".txt"; - exists = File.Exists(nextFileName); - if (exists) - { - File.Delete(nextFileName); - } - break; - } - number++; - } - if (number == 11) - { - string firstFileName = path + "\\RaygunErrorMessage1.txt"; - if (File.Exists(firstFileName)) - { - File.Delete(firstFileName); - } - } - File.WriteAllText(path + "\\RaygunErrorMessage" + number + ".txt", message); - System.Diagnostics.Trace.WriteLine("Saved message: " + "RaygunErrorMessage" + number + ".txt"); - } - catch (Exception ex) - { - System.Diagnostics.Trace.WriteLine(string.Format("Error saving message to offline storage {0}", ex.Message)); - if (RaygunSettings.Settings.ThrowOnError) - { - throw; - } - } - } - - private static object _sendLock = new object(); - - private void SendStoredMessages() - { - lock (_sendLock) - { - try - { - string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\RaygunOfflineStorage"; - if (Directory.Exists(path)) - { - string[] files = Directory.GetFiles(path); - foreach (string name in files) - { - string text = File.ReadAllText(name); - - try - { - Send(text); - } - catch - { - // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. - return; - } - System.Diagnostics.Trace.WriteLine("Sent " + name); - - File.Delete(name); - } - } - } - catch (Exception ex) - { - System.Diagnostics.Trace.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); - if (RaygunSettings.Settings.ThrowOnError) - { - throw; - } - } - } - }*/ - private void SaveMessage(string message) { try diff --git a/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs b/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs index 492e2631..b9dd4c62 100644 --- a/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs +++ b/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs @@ -372,93 +372,6 @@ protected WebClient CreateWebClient() return client; } - /*private void SaveMessage(string message) - { - try - { - string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\RaygunOfflineStorage"; - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } - int number = 1; - while (true) - { - bool exists = File.Exists(path + "\\RaygunErrorMessage" + number + ".txt"); - if (!exists) - { - string nextFileName = path + "\\RaygunErrorMessage" + (number + 1) + ".txt"; - exists = File.Exists(nextFileName); - if (exists) - { - File.Delete(nextFileName); - } - break; - } - number++; - } - if (number == 11) - { - string firstFileName = path + "\\RaygunErrorMessage1.txt"; - if (File.Exists(firstFileName)) - { - File.Delete(firstFileName); - } - } - File.WriteAllText(path + "\\RaygunErrorMessage" + number + ".txt", message); - System.Diagnostics.Debug.WriteLine("Saved message: " + "RaygunErrorMessage" + number + ".txt"); - } - catch (Exception ex) - { - System.Diagnostics.Debug.WriteLine(string.Format("Error saving message to offline storage {0}", ex.Message)); - if (RaygunSettings.Settings.ThrowOnError) - { - throw; - } - } - } - - private static object _sendLock = new object(); - - private void SendStoredMessages() - { - lock (_sendLock) - { - try - { - string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\RaygunOfflineStorage"; - if (Directory.Exists(path)) - { - foreach (string name in Directory.EnumerateFiles(path)) - { - string text = File.ReadAllText(name); - - try - { - Send(text); - } - catch - { - // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. - return; - } - System.Diagnostics.Debug.WriteLine("Sent " + name); - - File.Delete(name); - } - } - } - catch (Exception ex) - { - System.Diagnostics.Debug.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); - if (RaygunSettings.Settings.ThrowOnError) - { - throw; - } - } - } - }*/ - private void SaveMessage(string message) { try diff --git a/Mindscape.Raygun4Net4/RaygunClient.cs b/Mindscape.Raygun4Net4/RaygunClient.cs index 27dcf902..57cc5511 100644 --- a/Mindscape.Raygun4Net4/RaygunClient.cs +++ b/Mindscape.Raygun4Net4/RaygunClient.cs @@ -539,93 +539,6 @@ protected WebClient CreateWebClient() return client; } - /*private void SaveMessage(string message) - { - try - { - string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\RaygunOfflineStorage"; - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } - int number = 1; - while (true) - { - bool exists = File.Exists(path + "\\RaygunErrorMessage" + number + ".txt"); - if (!exists) - { - string nextFileName = path + "\\RaygunErrorMessage" + (number + 1) + ".txt"; - exists = File.Exists(nextFileName); - if (exists) - { - File.Delete(nextFileName); - } - break; - } - number++; - } - if (number == 11) - { - string firstFileName = path + "\\RaygunErrorMessage1.txt"; - if (File.Exists(firstFileName)) - { - File.Delete(firstFileName); - } - } - File.WriteAllText(path + "\\RaygunErrorMessage" + number + ".txt", message); - System.Diagnostics.Trace.WriteLine("Saved message: " + "RaygunErrorMessage" + number + ".txt"); - } - catch (Exception ex) - { - System.Diagnostics.Trace.WriteLine(string.Format("Error saving message to offline storage {0}", ex.Message)); - if (RaygunSettings.Settings.ThrowOnError) - { - throw; - } - } - } - - private static object _sendLock = new object(); - - private void SendStoredMessages() - { - lock (_sendLock) - { - try - { - string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\RaygunOfflineStorage"; - if (Directory.Exists(path)) - { - foreach (string name in Directory.EnumerateFiles(path)) - { - string text = File.ReadAllText(name); - - try - { - Send(text); - } - catch - { - // If just one message fails to send, then don't delete the message, and don't attempt sending anymore until later. - return; - } - System.Diagnostics.Trace.WriteLine("Sent " + name); - - File.Delete(name); - } - } - } - catch (Exception ex) - { - System.Diagnostics.Trace.WriteLine(string.Format("Error sending stored messages to Raygun.io {0}", ex.Message)); - if (RaygunSettings.Settings.ThrowOnError) - { - throw; - } - } - } - }*/ - private void SaveMessage(string message) { try From a737b7f27106bdd982cb49e29739f5ea14f6b6c3 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle Date: Mon, 20 Jun 2016 16:12:55 +1200 Subject: [PATCH 07/15] Increased version --- AssemblyVersionInfo.cs | 4 ++-- Mindscape.Raygun4Net.Core.nuspec | 2 +- Mindscape.Raygun4Net.Mvc.nuspec | 4 ++-- Mindscape.Raygun4Net.Signed.nuspec | 2 +- Mindscape.Raygun4Net.WebApi.nuspec | 4 ++-- Mindscape.Raygun4Net.nuspec | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/AssemblyVersionInfo.cs b/AssemblyVersionInfo.cs index 7fc10f30..a43f1dcd 100644 --- a/AssemblyVersionInfo.cs +++ b/AssemblyVersionInfo.cs @@ -12,5 +12,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("5.3.0.0")] -[assembly: AssemblyFileVersion("5.3.0.0")] +[assembly: AssemblyVersion("5.3.1.0")] +[assembly: AssemblyFileVersion("5.3.1.0")] diff --git a/Mindscape.Raygun4Net.Core.nuspec b/Mindscape.Raygun4Net.Core.nuspec index d66a7cad..fc6c064f 100644 --- a/Mindscape.Raygun4Net.Core.nuspec +++ b/Mindscape.Raygun4Net.Core.nuspec @@ -2,7 +2,7 @@ Mindscape.Raygun4Net.Core - 5.3.0 + 5.3.1 <authors>Raygun</authors> <owners /> diff --git a/Mindscape.Raygun4Net.Mvc.nuspec b/Mindscape.Raygun4Net.Mvc.nuspec index 747e58f4..536c1d04 100644 --- a/Mindscape.Raygun4Net.Mvc.nuspec +++ b/Mindscape.Raygun4Net.Mvc.nuspec @@ -2,7 +2,7 @@ <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata minClientVersion="2.5"> <id>Mindscape.Raygun4Net.Mvc</id> - <version>5.3.0</version> + <version>5.3.1</version> <title /> <authors>Raygun</authors> <owners /> @@ -12,7 +12,7 @@ <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> <dependencies> - <dependency id="Mindscape.Raygun4Net.Core" version="5.3.0" /> + <dependency id="Mindscape.Raygun4Net.Core" version="5.3.1" /> </dependencies> </metadata> <files> diff --git a/Mindscape.Raygun4Net.Signed.nuspec b/Mindscape.Raygun4Net.Signed.nuspec index ee23b26a..69e27158 100644 --- a/Mindscape.Raygun4Net.Signed.nuspec +++ b/Mindscape.Raygun4Net.Signed.nuspec @@ -2,7 +2,7 @@ <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata minClientVersion="2.5"> <id>Mindscape.Raygun4Net.Signed</id> - <version>5.3.0</version> + <version>5.3.1</version> <title /> <authors>Raygun</authors> <owners /> diff --git a/Mindscape.Raygun4Net.WebApi.nuspec b/Mindscape.Raygun4Net.WebApi.nuspec index a140c209..6a1e55ba 100644 --- a/Mindscape.Raygun4Net.WebApi.nuspec +++ b/Mindscape.Raygun4Net.WebApi.nuspec @@ -2,7 +2,7 @@ <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata minClientVersion="2.5"> <id>Mindscape.Raygun4Net.WebApi</id> - <version>5.3.0</version> + <version>5.3.1</version> <title /> <authors>Raygun</authors> <owners /> @@ -12,7 +12,7 @@ <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> <dependencies> - <dependency id="Mindscape.Raygun4Net.Core" version="5.3.0" /> + <dependency id="Mindscape.Raygun4Net.Core" version="5.3.1" /> </dependencies> </metadata> <files> diff --git a/Mindscape.Raygun4Net.nuspec b/Mindscape.Raygun4Net.nuspec index 5455308c..ca0e6be1 100644 --- a/Mindscape.Raygun4Net.nuspec +++ b/Mindscape.Raygun4Net.nuspec @@ -2,7 +2,7 @@ <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata minClientVersion="2.5"> <id>Mindscape.Raygun4Net</id> - <version>5.3.0</version> + <version>5.3.1</version> <title /> <authors>Raygun</authors> <owners /> From 815e65e7612a0545f6f1d456f60cadfb6046a4a3 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle <jfauchelle@raygun.io> Date: Mon, 20 Jun 2016 16:45:39 +1200 Subject: [PATCH 08/15] Support for ClickOnce isolated storage --- .../RaygunClient.cs | 16 ++++++++++++++-- Mindscape.Raygun4Net/RaygunClient.cs | 16 ++++++++++++++-- .../RaygunClient.cs | 16 ++++++++++++++-- Mindscape.Raygun4Net4/RaygunClient.cs | 16 ++++++++++++++-- 4 files changed, 56 insertions(+), 8 deletions(-) diff --git a/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs b/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs index b11c9d54..21358125 100644 --- a/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs +++ b/Mindscape.Raygun4Net.ClientProfile/RaygunClient.cs @@ -357,7 +357,7 @@ private void SaveMessage(string message) { try { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + using (IsolatedStorageFile isolatedStorage = GetIsolatedStorageScope()) { string directoryName = "RaygunOfflineStorage"; string[] directories = isolatedStorage.GetDirectoryNames("*"); @@ -430,7 +430,7 @@ private void SendStoredMessages() { try { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + using (IsolatedStorageFile isolatedStorage = GetIsolatedStorageScope()) { string directoryName = "RaygunOfflineStorage"; string[] directories = isolatedStorage.GetDirectoryNames("*"); @@ -470,5 +470,17 @@ private void SendStoredMessages() } } } + + private IsolatedStorageFile GetIsolatedStorageScope() + { + if (AppDomain.CurrentDomain != null && AppDomain.CurrentDomain.ActivationContext != null) + { + return IsolatedStorageFile.GetUserStoreForApplication(); + } + else + { + return IsolatedStorageFile.GetUserStoreForAssembly(); + } + } } } diff --git a/Mindscape.Raygun4Net/RaygunClient.cs b/Mindscape.Raygun4Net/RaygunClient.cs index 5c469da3..9ae15baf 100644 --- a/Mindscape.Raygun4Net/RaygunClient.cs +++ b/Mindscape.Raygun4Net/RaygunClient.cs @@ -497,7 +497,7 @@ private void SaveMessage(string message) { try { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + using (IsolatedStorageFile isolatedStorage = GetIsolatedStorageScope()) { string directoryName = "RaygunOfflineStorage"; string[] directories = isolatedStorage.GetDirectoryNames("*"); @@ -570,7 +570,7 @@ private void SendStoredMessages() { try { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + using (IsolatedStorageFile isolatedStorage = GetIsolatedStorageScope()) { string directoryName = "RaygunOfflineStorage"; string[] directories = isolatedStorage.GetDirectoryNames("*"); @@ -610,5 +610,17 @@ private void SendStoredMessages() } } } + + private IsolatedStorageFile GetIsolatedStorageScope() + { + if (AppDomain.CurrentDomain != null && AppDomain.CurrentDomain.ActivationContext != null) + { + return IsolatedStorageFile.GetUserStoreForApplication(); + } + else + { + return IsolatedStorageFile.GetUserStoreForAssembly(); + } + } } } diff --git a/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs b/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs index b9dd4c62..b708d266 100644 --- a/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs +++ b/Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs @@ -376,7 +376,7 @@ private void SaveMessage(string message) { try { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + using (IsolatedStorageFile isolatedStorage = GetIsolatedStorageScope()) { string directoryName = "RaygunOfflineStorage"; if (!isolatedStorage.DirectoryExists(directoryName)) @@ -435,7 +435,7 @@ private void SendStoredMessages() { try { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + using (IsolatedStorageFile isolatedStorage = GetIsolatedStorageScope()) { string directoryName = "RaygunOfflineStorage"; if (isolatedStorage.DirectoryExists(directoryName)) @@ -474,5 +474,17 @@ private void SendStoredMessages() } } } + + private IsolatedStorageFile GetIsolatedStorageScope() + { + if (AppDomain.CurrentDomain != null && AppDomain.CurrentDomain.ActivationContext != null) + { + return IsolatedStorageFile.GetUserStoreForApplication(); + } + else + { + return IsolatedStorageFile.GetUserStoreForAssembly(); + } + } } } diff --git a/Mindscape.Raygun4Net4/RaygunClient.cs b/Mindscape.Raygun4Net4/RaygunClient.cs index 57cc5511..b14f3429 100644 --- a/Mindscape.Raygun4Net4/RaygunClient.cs +++ b/Mindscape.Raygun4Net4/RaygunClient.cs @@ -543,7 +543,7 @@ private void SaveMessage(string message) { try { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + using (IsolatedStorageFile isolatedStorage = GetIsolatedStorageScope()) { string directoryName = "RaygunOfflineStorage"; if (!isolatedStorage.DirectoryExists(directoryName)) @@ -602,7 +602,7 @@ private void SendStoredMessages() { try { - using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetMachineStoreForAssembly()) + using (IsolatedStorageFile isolatedStorage = GetIsolatedStorageScope()) { string directoryName = "RaygunOfflineStorage"; if (isolatedStorage.DirectoryExists(directoryName)) @@ -641,5 +641,17 @@ private void SendStoredMessages() } } } + + private IsolatedStorageFile GetIsolatedStorageScope() + { + if (AppDomain.CurrentDomain != null && AppDomain.CurrentDomain.ActivationContext != null) + { + return IsolatedStorageFile.GetUserStoreForApplication(); + } + else + { + return IsolatedStorageFile.GetUserStoreForAssembly(); + } + } } } From f83adf1e74490ee53a66a3fa7b4b476624c027e8 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle <jfauchelle@raygun.io> Date: Wed, 22 Jun 2016 11:39:07 +1200 Subject: [PATCH 09/15] Add Xamarin.Mac.Unified to NuGet package --- Mindscape.Raygun4Net.Signed.nuspec | 2 ++ Mindscape.Raygun4Net.nuspec | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Mindscape.Raygun4Net.Signed.nuspec b/Mindscape.Raygun4Net.Signed.nuspec index 69e27158..74574063 100644 --- a/Mindscape.Raygun4Net.Signed.nuspec +++ b/Mindscape.Raygun4Net.Signed.nuspec @@ -31,6 +31,8 @@ <file src="build\Mindscape.Raygun4Net.Xamarin.iOS.dll" target="lib\MonoTouch4.0\Mindscape.Raygun4Net.Xamarin.iOS.dll" /> <file src="build\Mindscape.Raygun4Net.Xamarin.iOS.dll" target="lib\MonoTouch\Mindscape.Raygun4Net.Xamarin.iOS.dll" /> <file src="build\Mindscape.Raygun4Net.Xamarin.iOS.Unified.dll" target="lib\Xamarin.iOS10\Mindscape.Raygun4Net.Xamarin.iOS.Unified.dll" /> + <!-- Xamarin.Mac --> + <file src="build\Mindscape.Raygun4Net.Xamarin.Mac.Unified.dll" target="lib\Xamarin.Mac20\Mindscape.Raygun4Net.Xamarin.Mac.Unified.dll" /> <!-- Windows Store universal apps (Windows 8.1 and Windows Phone 8.1) --> <file src="build\signed\Mindscape.Raygun4Net.WindowsStore.dll" target="lib\portable-net45+win81+wpa81+windows81\Mindscape.Raygun4Net.WindowsStore.dll" /> <!-- WinRT and Windows 8 --> diff --git a/Mindscape.Raygun4Net.nuspec b/Mindscape.Raygun4Net.nuspec index ca0e6be1..beb8dc45 100644 --- a/Mindscape.Raygun4Net.nuspec +++ b/Mindscape.Raygun4Net.nuspec @@ -37,6 +37,8 @@ <file src="build\Mindscape.Raygun4Net.Xamarin.iOS.dll" target="lib\MonoTouch4.0\Mindscape.Raygun4Net.Xamarin.iOS.dll" /> <file src="build\Mindscape.Raygun4Net.Xamarin.iOS.dll" target="lib\MonoTouch\Mindscape.Raygun4Net.Xamarin.iOS.dll" /> <file src="build\Mindscape.Raygun4Net.Xamarin.iOS.Unified.dll" target="lib\Xamarin.iOS10\Mindscape.Raygun4Net.Xamarin.iOS.Unified.dll" /> + <!-- Xamarin.Mac --> + <file src="build\Mindscape.Raygun4Net.Xamarin.Mac.Unified.dll" target="lib\Xamarin.Mac20\Mindscape.Raygun4Net.Xamarin.Mac.Unified.dll" /> <!-- Windows Store universal apps (Windows 8.1 and Windows Phone 8.1) --> <file src="build\Mindscape.Raygun4Net.WindowsStore.dll" target="lib\portable-net45+win81+wpa81+windows81\Mindscape.Raygun4Net.WindowsStore.dll" /> <file src="build\Mindscape.Raygun4Net.WindowsStore.pdb" target="lib\portable-net45+win81+wpa81+windows81\Mindscape.Raygun4Net.WindowsStore.pdb" /> From aa590ddac4a45bb2c7e3c25805039c58124b2955 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle <jfauchelle@raygun.io> Date: Wed, 22 Jun 2016 14:17:00 +1200 Subject: [PATCH 10/15] NuSpec wording updates --- Mindscape.Raygun4Net.Core.nuspec | 2 +- Mindscape.Raygun4Net.Mvc.nuspec | 4 ++-- Mindscape.Raygun4Net.Signed.nuspec | 4 ++-- Mindscape.Raygun4Net.WebApi.nuspec | 5 +++-- Mindscape.Raygun4Net.nuspec | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Mindscape.Raygun4Net.Core.nuspec b/Mindscape.Raygun4Net.Core.nuspec index fc6c064f..91210510 100644 --- a/Mindscape.Raygun4Net.Core.nuspec +++ b/Mindscape.Raygun4Net.Core.nuspec @@ -8,7 +8,7 @@ <owners /> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description>Core library for MVC and WebApi Raygun providers</description> - <iconUrl>https://app.raygun.io/Content/Images/nuget-icon.png</iconUrl> + <iconUrl>https://app.raygun.com/Content/Images/nuget-icon.png</iconUrl> <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> </metadata> diff --git a/Mindscape.Raygun4Net.Mvc.nuspec b/Mindscape.Raygun4Net.Mvc.nuspec index 536c1d04..ee02ee8d 100644 --- a/Mindscape.Raygun4Net.Mvc.nuspec +++ b/Mindscape.Raygun4Net.Mvc.nuspec @@ -7,8 +7,8 @@ <authors>Raygun</authors> <owners /> <requireLicenseAcceptance>false</requireLicenseAcceptance> - <description>Raygun.io Provider for ASP.NET MVC projects</description> - <iconUrl>https://app.raygun.io/Content/Images/nuget-icon.png</iconUrl> + <description>Raygun provider for ASP.NET MVC projects</description> + <iconUrl>https://app.raygun.com/Content/Images/nuget-icon.png</iconUrl> <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> <dependencies> diff --git a/Mindscape.Raygun4Net.Signed.nuspec b/Mindscape.Raygun4Net.Signed.nuspec index 74574063..5cf808ff 100644 --- a/Mindscape.Raygun4Net.Signed.nuspec +++ b/Mindscape.Raygun4Net.Signed.nuspec @@ -7,8 +7,8 @@ <authors>Raygun</authors> <owners /> <requireLicenseAcceptance>false</requireLicenseAcceptance> - <description>Raygun.io provider for signed projects built with .NET Framework + Windows Store apps, Windows Phone, Xamarin, Windows 8 and WinRT.</description> - <iconUrl>https://app.raygun.io/Content/Images/nuget-icon.png</iconUrl> + <description>Raygun provider for signed projects built with .NET Framework + Windows Store apps, Windows Phone, Xamarin, Windows 8 and WinRT.</description> + <iconUrl>https://app.raygun.com/Content/Images/nuget-icon.png</iconUrl> <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> </metadata> diff --git a/Mindscape.Raygun4Net.WebApi.nuspec b/Mindscape.Raygun4Net.WebApi.nuspec index 6a1e55ba..2ecbc3f5 100644 --- a/Mindscape.Raygun4Net.WebApi.nuspec +++ b/Mindscape.Raygun4Net.WebApi.nuspec @@ -7,8 +7,8 @@ <authors>Raygun</authors> <owners /> <requireLicenseAcceptance>false</requireLicenseAcceptance> - <description>Raygun.io Provider for ASP.NET WebApi projects</description> - <iconUrl>https://app.raygun.io/Content/Images/nuget-icon.png</iconUrl> + <description>Raygun provider for ASP.NET WebApi projects</description> + <iconUrl>https://app.raygun.com/Content/Images/nuget-icon.png</iconUrl> <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> <dependencies> @@ -18,6 +18,7 @@ <files> <file src="build\WebApi\Mindscape.Raygun4Net.WebApi.dll" target="lib\net45\Mindscape.Raygun4Net.WebApi.dll" /> <file src="build\WebApi\Mindscape.Raygun4Net.WebApi.pdb" target="lib\net45\Mindscape.Raygun4Net.WebApi.pdb" /> + <file src="Mindscape.Raygun4Net.WebApi\readme.txt" /> </files> </package> diff --git a/Mindscape.Raygun4Net.nuspec b/Mindscape.Raygun4Net.nuspec index beb8dc45..f1a22a3f 100644 --- a/Mindscape.Raygun4Net.nuspec +++ b/Mindscape.Raygun4Net.nuspec @@ -7,8 +7,8 @@ <authors>Raygun</authors> <owners /> <requireLicenseAcceptance>false</requireLicenseAcceptance> - <description>Raygun.io Provider for .NET Framework + Windows Store apps, WinRT, Windows Phone and Xamarin</description> - <iconUrl>https://app.raygun.io/Content/Images/nuget-icon.png</iconUrl> + <description>Raygun provider for .NET Framework + Windows Store apps, WinRT, Windows Phone and Xamarin</description> + <iconUrl>https://app.raygun.com/Content/Images/nuget-icon.png</iconUrl> <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> </metadata> From 1cd4a28d7c0520b8c868fc946d5b8c414ca0c9f5 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle <jfauchelle@raygun.io> Date: Wed, 22 Jun 2016 14:17:32 +1200 Subject: [PATCH 11/15] Added Sign configuration to Mvc and WebApi projects --- Mindscape.Raygun4Net.Mvc.sln | 8 +++++--- .../Mindscape.Raygun4Net.Mvc.csproj | 16 ++++++++++++++++ Mindscape.Raygun4Net.WebApi.sln | 11 ++++++++++- .../Mindscape.Raygun4Net.WebApi.csproj | 16 ++++++++++++++++ 4 files changed, 47 insertions(+), 4 deletions(-) diff --git a/Mindscape.Raygun4Net.Mvc.sln b/Mindscape.Raygun4Net.Mvc.sln index 8538fd68..59d9c053 100644 --- a/Mindscape.Raygun4Net.Mvc.sln +++ b/Mindscape.Raygun4Net.Mvc.sln @@ -1,6 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mindscape.Raygun4Net.Mvc", "Mindscape.Raygun4Net.Mvc\Mindscape.Raygun4Net.Mvc.csproj", "{2CF1FE1F-AD2D-40BD-9F99-57FF00445A9D}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mindscape.Raygun4Net.Mvc.Tests", "Mindscape.Raygun4Net.Mvc.Tests\Mindscape.Raygun4Net.Mvc.Tests.csproj", "{69BFF5D8-7B18-4685-B828-8DF2AADEA20D}" @@ -20,8 +22,8 @@ Global {2CF1FE1F-AD2D-40BD-9F99-57FF00445A9D}.Debug|Any CPU.Build.0 = Debug|Any CPU {2CF1FE1F-AD2D-40BD-9F99-57FF00445A9D}.Release|Any CPU.ActiveCfg = Release|Any CPU {2CF1FE1F-AD2D-40BD-9F99-57FF00445A9D}.Release|Any CPU.Build.0 = Release|Any CPU - {2CF1FE1F-AD2D-40BD-9F99-57FF00445A9D}.Sign|Any CPU.ActiveCfg = Release|Any CPU - {2CF1FE1F-AD2D-40BD-9F99-57FF00445A9D}.Sign|Any CPU.Build.0 = Release|Any CPU + {2CF1FE1F-AD2D-40BD-9F99-57FF00445A9D}.Sign|Any CPU.ActiveCfg = Sign|Any CPU + {2CF1FE1F-AD2D-40BD-9F99-57FF00445A9D}.Sign|Any CPU.Build.0 = Sign|Any CPU {69BFF5D8-7B18-4685-B828-8DF2AADEA20D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {69BFF5D8-7B18-4685-B828-8DF2AADEA20D}.Debug|Any CPU.Build.0 = Debug|Any CPU {69BFF5D8-7B18-4685-B828-8DF2AADEA20D}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/Mindscape.Raygun4Net.Mvc/Mindscape.Raygun4Net.Mvc.csproj b/Mindscape.Raygun4Net.Mvc/Mindscape.Raygun4Net.Mvc.csproj index 5927bb87..ba37e90c 100644 --- a/Mindscape.Raygun4Net.Mvc/Mindscape.Raygun4Net.Mvc.csproj +++ b/Mindscape.Raygun4Net.Mvc/Mindscape.Raygun4Net.Mvc.csproj @@ -31,6 +31,22 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Sign|AnyCPU' "> + <SignAssembly>true</SignAssembly> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Sign|AnyCPU' "> + <AssemblyOriginatorKeyFile>Raygun4Net.Mvc.snk</AssemblyOriginatorKeyFile> + <OutputPath>bin\Sign\</OutputPath> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Sign|AnyCPU'"> + <OutputPath>bin\Sign\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <Optimize>true</Optimize> + <DebugType>pdbonly</DebugType> + <PlatformTarget>AnyCPU</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> + </PropertyGroup> <ItemGroup> <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> <Private>True</Private> diff --git a/Mindscape.Raygun4Net.WebApi.sln b/Mindscape.Raygun4Net.WebApi.sln index 10a88c2d..3010095a 100644 --- a/Mindscape.Raygun4Net.WebApi.sln +++ b/Mindscape.Raygun4Net.WebApi.sln @@ -1,6 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mindscape.Raygun4Net.WebApi", "Mindscape.Raygun4Net.WebApi\Mindscape.Raygun4Net.WebApi.csproj", "{5F72C401-B09D-46C4-873B-65F1B4B1AE09}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mindscape.Raygun4Net.Core", "Mindscape.Raygun4Net.Core\Mindscape.Raygun4Net.Core.csproj", "{6435C84C-1DAC-41FE-AA51-FAA8E9A7F090}" @@ -11,20 +13,27 @@ Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU + Sign|Any CPU = Sign|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {5F72C401-B09D-46C4-873B-65F1B4B1AE09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5F72C401-B09D-46C4-873B-65F1B4B1AE09}.Debug|Any CPU.Build.0 = Debug|Any CPU {5F72C401-B09D-46C4-873B-65F1B4B1AE09}.Release|Any CPU.ActiveCfg = Release|Any CPU {5F72C401-B09D-46C4-873B-65F1B4B1AE09}.Release|Any CPU.Build.0 = Release|Any CPU + {5F72C401-B09D-46C4-873B-65F1B4B1AE09}.Sign|Any CPU.ActiveCfg = Sign|Any CPU + {5F72C401-B09D-46C4-873B-65F1B4B1AE09}.Sign|Any CPU.Build.0 = Sign|Any CPU {6435C84C-1DAC-41FE-AA51-FAA8E9A7F090}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6435C84C-1DAC-41FE-AA51-FAA8E9A7F090}.Debug|Any CPU.Build.0 = Debug|Any CPU {6435C84C-1DAC-41FE-AA51-FAA8E9A7F090}.Release|Any CPU.ActiveCfg = Release|Any CPU {6435C84C-1DAC-41FE-AA51-FAA8E9A7F090}.Release|Any CPU.Build.0 = Release|Any CPU + {6435C84C-1DAC-41FE-AA51-FAA8E9A7F090}.Sign|Any CPU.ActiveCfg = Sign|Any CPU + {6435C84C-1DAC-41FE-AA51-FAA8E9A7F090}.Sign|Any CPU.Build.0 = Sign|Any CPU {80C7BB59-C753-4E64-9C8D-79B8D57C8215}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {80C7BB59-C753-4E64-9C8D-79B8D57C8215}.Debug|Any CPU.Build.0 = Debug|Any CPU {80C7BB59-C753-4E64-9C8D-79B8D57C8215}.Release|Any CPU.ActiveCfg = Release|Any CPU {80C7BB59-C753-4E64-9C8D-79B8D57C8215}.Release|Any CPU.Build.0 = Release|Any CPU + {80C7BB59-C753-4E64-9C8D-79B8D57C8215}.Sign|Any CPU.ActiveCfg = Release|Any CPU + {80C7BB59-C753-4E64-9C8D-79B8D57C8215}.Sign|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Mindscape.Raygun4Net.WebApi/Mindscape.Raygun4Net.WebApi.csproj b/Mindscape.Raygun4Net.WebApi/Mindscape.Raygun4Net.WebApi.csproj index 9c30c8e2..2c8b52f7 100644 --- a/Mindscape.Raygun4Net.WebApi/Mindscape.Raygun4Net.WebApi.csproj +++ b/Mindscape.Raygun4Net.WebApi/Mindscape.Raygun4Net.WebApi.csproj @@ -34,6 +34,22 @@ <WarningLevel>4</WarningLevel> <Prefer32Bit>false</Prefer32Bit> </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Sign|AnyCPU' "> + <SignAssembly>true</SignAssembly> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Sign|AnyCPU' "> + <AssemblyOriginatorKeyFile>Raygun4Net.WebApi.snk</AssemblyOriginatorKeyFile> + <OutputPath>bin\Sign\</OutputPath> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Sign|AnyCPU'"> + <OutputPath>bin\Sign\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <Optimize>true</Optimize> + <DebugType>pdbonly</DebugType> + <PlatformTarget>AnyCPU</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> + </PropertyGroup> <ItemGroup> <Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <HintPath>..\packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll</HintPath> From 2178f84f036c341e031d72cb68aa81ba44c007aa Mon Sep 17 00:00:00 2001 From: Jason Fauchelle <jfauchelle@raygun.io> Date: Wed, 22 Jun 2016 14:17:48 +1200 Subject: [PATCH 12/15] New Signed NuGet packages --- Mindscape.Raygun4Net.Core.Signed.nuspec | 19 +++++++++++++++ Mindscape.Raygun4Net.Mvc.Signed.nuspec | 29 +++++++++++++++++++++++ Mindscape.Raygun4Net.WebApi.Signed.nuspec | 24 +++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 Mindscape.Raygun4Net.Core.Signed.nuspec create mode 100644 Mindscape.Raygun4Net.Mvc.Signed.nuspec create mode 100644 Mindscape.Raygun4Net.WebApi.Signed.nuspec diff --git a/Mindscape.Raygun4Net.Core.Signed.nuspec b/Mindscape.Raygun4Net.Core.Signed.nuspec new file mode 100644 index 00000000..4ab80885 --- /dev/null +++ b/Mindscape.Raygun4Net.Core.Signed.nuspec @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> + <metadata minClientVersion="2.5"> + <id>Mindscape.Raygun4Net.Core.Signed</id> + <version>5.3.1</version> + <title /> + <authors>Raygun</authors> + <owners /> + <requireLicenseAcceptance>false</requireLicenseAcceptance> + <description>Core library for signed MVC and WebApi Raygun providers</description> + <iconUrl>https://app.raygun.com/Content/Images/nuget-icon.png</iconUrl> + <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> + <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> + </metadata> + <files> + <file src="build\signed\Net4\Mindscape.Raygun4Net.dll" target="lib\net40\Mindscape.Raygun4Net.dll" /> + <file src="build\signed\Net4\Mindscape.Raygun4Net.pdb" target="lib\net40\Mindscape.Raygun4Net.pdb" /> + </files> +</package> diff --git a/Mindscape.Raygun4Net.Mvc.Signed.nuspec b/Mindscape.Raygun4Net.Mvc.Signed.nuspec new file mode 100644 index 00000000..c100e76f --- /dev/null +++ b/Mindscape.Raygun4Net.Mvc.Signed.nuspec @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> + <metadata minClientVersion="2.5"> + <id>Mindscape.Raygun4Net.Mvc.Signed</id> + <version>5.3.1</version> + <title /> + <authors>Raygun</authors> + <owners /> + <requireLicenseAcceptance>false</requireLicenseAcceptance> + <description>Raygun provider for signed ASP.NET MVC projects</description> + <iconUrl>https://app.raygun.com/Content/Images/nuget-icon.png</iconUrl> + <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> + <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> + <dependencies> + <dependency id="Mindscape.Raygun4Net.Core.Signed" version="5.3.1" /> + </dependencies> + </metadata> + <files> + <!-- .NET 3.5 --> + <file src="build\signed\Mindscape.Raygun4Net.dll" target="lib\net35\Mindscape.Raygun4Net.dll" /> + <!-- .NET 4.0+ --> + <file src="build\signed\Mvc\Mindscape.Raygun4Net.Mvc.dll" target="lib\net40\Mindscape.Raygun4Net.Mvc.dll" /> + <file src="build\signed\Mvc\Mindscape.Raygun4Net.Mvc.pdb" target="lib\net40\Mindscape.Raygun4Net.Mvc.pdb" /> + <file src="build\signed\Mvc\Mindscape.Raygun4Net4.dll" target="lib\net40\Mindscape.Raygun4Net4.dll" /> + <file src="build\signed\Mvc\Mindscape.Raygun4Net4.pdb" target="lib\net40\Mindscape.Raygun4Net4.pdb" /> + + <file src="Mindscape.Raygun4Net.Mvc\readme.txt" /> + </files> +</package> diff --git a/Mindscape.Raygun4Net.WebApi.Signed.nuspec b/Mindscape.Raygun4Net.WebApi.Signed.nuspec new file mode 100644 index 00000000..b548095b --- /dev/null +++ b/Mindscape.Raygun4Net.WebApi.Signed.nuspec @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> + <metadata minClientVersion="2.5"> + <id>Mindscape.Raygun4Net.WebApi.Signed</id> + <version>5.3.1</version> + <title /> + <authors>Raygun</authors> + <owners /> + <requireLicenseAcceptance>false</requireLicenseAcceptance> + <description>Raygun provider for signed ASP.NET WebApi projects</description> + <iconUrl>https://app.raygun.com/Content/Images/nuget-icon.png</iconUrl> + <projectUrl>https://github.com/MindscapeHQ/raygun4net</projectUrl> + <licenseUrl>https://raw.github.com/MindscapeHQ/raygun4net/master/LICENSE</licenseUrl> + <dependencies> + <dependency id="Mindscape.Raygun4Net.Core.Signed" version="5.3.1" /> + </dependencies> + </metadata> + <files> + <file src="build\signed\WebApi\Mindscape.Raygun4Net.WebApi.dll" target="lib\net45\Mindscape.Raygun4Net.WebApi.dll" /> + <file src="build\signed\WebApi\Mindscape.Raygun4Net.WebApi.pdb" target="lib\net45\Mindscape.Raygun4Net.WebApi.pdb" /> + + <file src="Mindscape.Raygun4Net.WebApi\readme.txt" /> + </files> +</package> From 210ddb6d5186950cac3034cce728ec5bf7548026 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle <jfauchelle@raygun.io> Date: Wed, 22 Jun 2016 14:19:58 +1200 Subject: [PATCH 13/15] Build signed version of Mvc and WebApi projects --- buildSigned.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildSigned.ps1 b/buildSigned.ps1 index 9877aff5..0eb93394 100644 --- a/buildSigned.ps1 +++ b/buildSigned.ps1 @@ -6,6 +6,8 @@ properties { $solution_file4 = "$root/Mindscape.Raygun4Net4.sln" $solution_file4_client_profile = "$root/Mindscape.Raygun4Net4.ClientProfile.sln" $solution_file_winrt = "$root/Mindscape.Raygun4Net.WinRT.sln" + $solution_file_mvc = "$root/Mindscape.Raygun4Net.Mvc.sln" + $solution_file_webapi = "$root/Mindscape.Raygun4Net.WebApi.sln" $configuration = "Sign" $build_dir = "$root\build\" $signed_build_dir = "$build_dir\signed" @@ -13,6 +15,8 @@ properties { $signed_build_dir2 = "$build_dir\signed\Net2" $signed_build_dir4 = "$build_dir\signed\Net4" $signed_build_dir4_client_profile = "$build_dir\signed\Net4.ClientProfile" + $signed_build_mvc = "$build_dir\signed\Mvc" + $signed_build_webapi = "$build_dir\signed\WebApi" $nuget_dir = "$root\.nuget" $env:Path += ";$nuget_dir" } @@ -34,6 +38,9 @@ task Compile -depends Init { exec { msbuild "$solution_file_client_profile" /m /p:OutDir=$signed_build_dir_client_profile /p:Configuration=$configuration } exec { msbuild "$solution_file4_client_profile" /m /p:OutDir=$signed_build_dir4_client_profile /p:Configuration=$configuration } + + exec { msbuild "$solution_file_mvc" /m /p:OutDir=$signed_build_mvc /p:Configuration=$configuration } + exec { msbuild "$solution_file_webapi" /m /p:OutDir=$signed_build_webapi /p:Configuration=$configuration } } task CompileWinRT -depends Init { From 717937e5b842c9ee26fe54ba07a7249aa0b53780 Mon Sep 17 00:00:00 2001 From: Jason Fauchelle <jfauchelle@raygun.io> Date: Wed, 22 Jun 2016 14:20:49 +1200 Subject: [PATCH 14/15] Updated package script --- package.ps1 | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/package.ps1 b/package.ps1 index 0ea233fc..21612cd8 100644 --- a/package.ps1 +++ b/package.ps1 @@ -1,10 +1,13 @@ properties { $root = $psake.build_script_dir - $nugetspec = "$root/Mindscape.Raygun4Net.nuspec" - $nugetspec_signed = "$root/Mindscape.Raygun4Net.signed.nuspec" - $nugetspec_core = "$root/Mindscape.Raygun4Net.Core.nuspec" - $nugetspec_mvc = "$root/Mindscape.Raygun4Net.Mvc.nuspec" - $nugetspec_webapi = "$root/Mindscape.Raygun4Net.WebApi.nuspec" + $nugetspec = "$root\Mindscape.Raygun4Net.nuspec" + $nugetspec_signed = "$root\Mindscape.Raygun4Net.signed.nuspec" + $nugetspec_core = "$root\Mindscape.Raygun4Net.Core.nuspec" + $nugetspec_mvc = "$root\Mindscape.Raygun4Net.Mvc.nuspec" + $nugetspec_webapi = "$root\Mindscape.Raygun4Net.WebApi.nuspec" + $nugetspec_signed_core = "$root\Mindscape.Raygun4Net.Core.Signed.nuspec" + $nugetspec_signed_mvc = "$root\Mindscape.Raygun4Net.Mvc.Signed.nuspec" + $nugetspec_signed_webapi = "$root\Mindscape.Raygun4Net.WebApi.Signed.nuspec" $build_dir = "$root\build\" $build_dir2 = "$build_dir\Net2" $build_dir3_client_profile = "$build_dir\Net3.ClientProfile" @@ -17,6 +20,8 @@ properties { $signed_build_dir3_client_profile = "$build_dir\signed\Net3.ClientProfile" $signed_build_dir4 = "$build_dir\signed\Net4" $signed_build_dir4_client_profile = "$build_dir\signed\Net4.ClientProfile" + $signed_build_dir_mvc = "$build_dir\signed\Mvc" + $signed_build_dir_webapi = "$build_dir\signed\WebApi" $release_dir = "$root\release\" $nuget_dir = "$root\.nuget" $env:Path += ";$nuget_dir" @@ -38,6 +43,9 @@ task Package -depends Init { exec { nuget pack $nugetspec_core -OutputDirectory $release_dir } exec { nuget pack $nugetspec_mvc -OutputDirectory $release_dir } exec { nuget pack $nugetspec_webapi -OutputDirectory $release_dir } + exec { nuget pack $nugetspec_signed_core -OutputDirectory $release_dir } + exec { nuget pack $nugetspec_signed_mvc -OutputDirectory $release_dir } + exec { nuget pack $nugetspec_signed_webapi -OutputDirectory $release_dir } } task Zip -depends Package { @@ -70,6 +78,8 @@ task Zip -depends Package { $signedfolder4clientprofile = $signedfolder + "\Net4.ClientProfile" $signedfolderwindowsstore = $signedfolder + "\WindowsStore" $signedfolderwinrt = $signedfolder + "\WinRT" + $signedfoldermvc = $signedfolder + "\Mvc" + $signedfolderwebapi = $signedfolder + "\WebApi" new-item $versionfolder -itemType directory | Out-Null new-item $versionfolder2 -itemType directory | Out-Null @@ -94,6 +104,8 @@ task Zip -depends Package { new-item $signedfolder4clientprofile -itemType directory | Out-Null new-item $signedfolderwindowsstore -itemType directory | Out-Null new-item $signedfolderwinrt -itemType directory | Out-Null + new-item $signedfoldermvc -itemType directory | Out-Null + new-item $signedfolderwebapi -itemType directory | Out-Null # .Net 3.5 copy-item $build_dir/Mindscape.Raygun4Net.dll $versionfolder3 @@ -151,6 +163,18 @@ task Zip -depends Package { copy-item $signed_build_dir4/Mindscape.Raygun4Net.dll $signedfolder4 copy-item $signed_build_dir4/Mindscape.Raygun4Net4.dll $signedfolder4 copy-item $signed_build_dir4_client_profile/Mindscape.Raygun4Net.dll $signedfolder4clientprofile + # Signed MVC + copy-item $signed_build_dir_mvc/Mindscape.Raygun4Net.dll $signedfoldermvc + copy-item $signed_build_dir_mvc/Mindscape.Raygun4Net.pdb $signedfoldermvc + copy-item $signed_build_dir_mvc/Mindscape.Raygun4Net.Mvc.dll $signedfoldermvc + copy-item $signed_build_dir_mvc/Mindscape.Raygun4Net.Mvc.pdb $signedfoldermvc + copy-item $signed_build_dir_mvc/Mindscape.Raygun4Net4.dll $signedfoldermvc + copy-item $signed_build_dir_mvc/Mindscape.Raygun4Net4.pdb $signedfoldermvc + #Signed WebApi + copy-item $signed_build_dir_webapi/Mindscape.Raygun4Net.WebApi.dll $signedfolderwebapi + copy-item $signed_build_dir_webapi/Mindscape.Raygun4Net.WebApi.pdb $signedfolderwebapi + copy-item $signed_build_dir_webapi/Mindscape.Raygun4Net.dll $signedfolderwebapi + copy-item $signed_build_dir_webapi/Mindscape.Raygun4Net.pdb $signedfolderwebapi $zipFullName = $release_dir + $version + ".zip" Get-ChildItem $outerfolder | Add-Zip $zipFullName From 93e271539b6af7c8889de4b96d315732b1f1e37c Mon Sep 17 00:00:00 2001 From: Jason Fauchelle <jfauchelle@raygun.io> Date: Wed, 22 Jun 2016 14:28:29 +1200 Subject: [PATCH 15/15] Remove .io from readme files --- Mindscape.Raygun4Net.Mvc/readme.txt | 8 ++++---- Mindscape.Raygun4Net.WebApi/readme.txt | 8 ++++---- README.md | 14 +++++++------- readme.txt | 14 +++++++------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Mindscape.Raygun4Net.Mvc/readme.txt b/Mindscape.Raygun4Net.Mvc/readme.txt index e2fe0095..d1b8473d 100644 --- a/Mindscape.Raygun4Net.Mvc/readme.txt +++ b/Mindscape.Raygun4Net.Mvc/readme.txt @@ -1,10 +1,10 @@ -Raygun4Net.Mvc - Raygun.io Provider for ASP .NET MVC projects +Raygun4Net.Mvc - Raygun Provider for ASP .NET MVC projects ============================================================= Where is my app API key? ======================== -When you create a new application on your Raygun.io dashboard, your app API key is displayed at the top of the instructions page. -You can also find the API key by clicking the "Application Settings" button in the side bar of the Raygun.io dashboard. +When you create a new application in your Raygun dashboard, your app API key is displayed at the top of the instructions page. +You can also find the API key by clicking the "Application Settings" button in the side bar of the Raygun dashboard. Namespace ========= @@ -72,7 +72,7 @@ For example if you wanted to exclude errors that return the "I'm a teapot" respo Exclude errors that originate from a local origin ------------------------------------------------- -Toggle this boolean and the HTTP module will not send errors to Raygun.io if the request originated from a local origin. +Toggle this boolean and the HTTP module will not send errors to Raygun if the request originated from a local origin. i.e. A way to prevent local debug/development from notifying Raygun without having to resort to Web.config transforms. <RaygunSettings apikey="YOUR_APP_API_KEY" excludeErrorsFromLocal="true" /> diff --git a/Mindscape.Raygun4Net.WebApi/readme.txt b/Mindscape.Raygun4Net.WebApi/readme.txt index 700ede01..7e546690 100644 --- a/Mindscape.Raygun4Net.WebApi/readme.txt +++ b/Mindscape.Raygun4Net.WebApi/readme.txt @@ -1,10 +1,10 @@ -Raygun4Net.WebApi - Raygun.io Provider for ASP .NET WebApi projects +Raygun4Net.WebApi - Raygun Provider for ASP .NET WebApi projects =================================================================== Where is my app API key? ======================== -When you create a new application on your Raygun.io dashboard, your app API key is displayed at the top of the instructions page. -You can also find the API key by clicking the "Application Settings" button in the side bar of the Raygun.io dashboard. +When you create a new application on your Raygun dashboard, your app API key is displayed at the top of the instructions page. +You can also find the API key by clicking the "Application Settings" button in the side bar of the Raygun dashboard. Namespace ========= @@ -74,7 +74,7 @@ For example if you wanted to exclude errors that return the "I'm a teapot" respo Exclude errors that originate from a local origin ------------------------------------------------- -Toggle this boolean and Raygun will not send errors to Raygun.io if the request originated from a local origin. +Toggle this boolean and Raygun will not send errors to Raygun if the request originated from a local origin. i.e. A way to prevent local debug/development from notifying Raygun without having to resort to Web.config transforms. <RaygunSettings apikey="YOUR_APP_API_KEY" excludeErrorsFromLocal="true" /> diff --git a/README.md b/README.md index 2c6476bc..44e18777 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Raygun4Net ========== -[Raygun.io](http://raygun.io) Provider for .NET Framework +[Raygun](http://raygun.com) provider for .NET Framework ! IMPORTANT CHANGE IN 5.0 ! ==================== @@ -55,9 +55,9 @@ Install the NuGet package to a project which uses one of the above frameworks an Where is my app API key? ==================== -When sending exceptions to the Raygun.io service, an app API key is required to map the messages to your application. +When sending exceptions to the Raygun service, an app API key is required to map the messages to your application. -When you create a new application on your Raygun.io dashboard, your app API key is displayed at the top of the instructions page. You can also find the API key by clicking the "Application Settings" button in the side bar of the Raygun.io dashboard. +When you create a new application in your Raygun dashboard, your app API key is displayed at the top of the instructions page. You can also find the API key by clicking the "Application Settings" button in the side bar of the Raygun dashboard. Namespace ==================== @@ -137,7 +137,7 @@ If using the HTTP module then you can exclude errors by their HTTP status code b **Exclude errors that originate from a local origin** -Toggle this boolean and the HTTP module will not send errors to Raygun.io if the request originated from a local origin. i.e. A way to prevent local debug/development from notifying Raygun without having to resort to Web.config transforms. +Toggle this boolean and the HTTP module will not send errors to Raygun if the request originated from a local origin. i.e. A way to prevent local debug/development from notifying Raygun without having to resort to Web.config transforms. ``` <RaygunSettings apikey="YOUR_APP_API_KEY" excludeErrorsFromLocal="true" /> @@ -236,7 +236,7 @@ private static void Application_ThreadException(object sender, ThreadExceptionEv ### Windows Store Apps (Windows 8.1 and Windows Phone 8.1) -In the App.xaml.cs constructor (or any central entry point in your application), call the static RaygunClient.Attach method using your API key. This will catch and send all unhandled exception to Raygun.io for you. +In the App.xaml.cs constructor (or any central entry point in your application), call the static RaygunClient.Attach method using your API key. This will catch and send all unhandled exception to Raygun for you. ```csharp public App() @@ -295,7 +295,7 @@ At any point after calling the Attach method, you can use RaygunClient.Current t ### Xamarin for Android In the main/entry Activity of your application, use the static RaygunClient.Attach method using your app API key. -There is also an overload for the Attach method that lets you pass in a user-identity string which is useful for tracking affected users in your Raygun.io dashboard. +There is also an overload for the Attach method that lets you pass in a user-identity string which is useful for tracking affected users in your Raygun dashboard. ```csharp RaygunClient.Attach("YOUR_APP_API_KEY"); @@ -306,7 +306,7 @@ At any point after calling the Attach method, you can use RaygunClient.Current t ### Xamarin for iOS In the main entry point of the application, use the static RaygunClient.Attach method using your app API key. -There is also an overload for the Attach method that lets you pass in a user-identity string which is useful for tracking affected users in your Raygun.io dashboard. +There is also an overload for the Attach method that lets you pass in a user-identity string which is useful for tracking affected users in your Raygun dashboard. ```csharp static void Main(string[] args) diff --git a/readme.txt b/readme.txt index 476cedcd..57365bc2 100644 --- a/readme.txt +++ b/readme.txt @@ -1,4 +1,4 @@ -Raygun4Net - Raygun.io Provider for .NET Framework +Raygun4Net - Raygun Provider for .NET Framework =================== Using Raygun4Net in an Mvc or WebApi project? @@ -15,8 +15,8 @@ NOTE: the Mvc and WebApi packages can work side-by-side, so install both if you Where is my app API key? ==================== -When you create a new application on your Raygun.io dashboard, your app API key is displayed at the top of the instructions page. -You can also find the API key by clicking the "Application Settings" button in the side bar of the Raygun.io dashboard. +When you create a new application in your Raygun dashboard, your app API key is displayed at the top of the instructions page. +You can also find the API key by clicking the "Application Settings" button in the side bar of the Raygun dashboard. Namespace ==================== @@ -105,7 +105,7 @@ If using the HTTP module then you can exclude errors by their HTTP status code b Exclude errors that originate from a local origin ------------------------------------------------- -Toggle this boolean and the HTTP module will not send errors to Raygun.io if the request originated from a local origin. i.e. A way to prevent local debug/development from notifying Raygun without having to resort to Web.config transforms. +Toggle this boolean and the HTTP module will not send errors to Raygun if the request originated from a local origin. i.e. A way to prevent local debug/development from notifying Raygun without having to resort to Web.config transforms. <RaygunSettings apikey="YOUR_APP_API_KEY" excludeErrorsFromLocal="true" /> @@ -197,7 +197,7 @@ private static void Application_ThreadException(object sender, ThreadExceptionEv Windows Store Apps (Windows 8.1 and Windows Phone 8.1) ==================== -In the App.xaml.cs constructor (or any central entry point in your application), call the static RaygunClient.Attach method using your API key. This will catch and send all unhandled exception to Raygun.io for you. +In the App.xaml.cs constructor (or any central entry point in your application), call the static RaygunClient.Attach method using your API key. This will catch and send all unhandled exception to Raygun for you. public App() { @@ -254,7 +254,7 @@ At any point after calling the Attach method, you can use RaygunClient.Current t Xamarin for Android ==================== In the main/entry Activity of your application, use the static RaygunClient.Attach method using your app API key. -There is also an overload for the Attach method that lets you pass in a user-identity string which is useful for tracking affected users in your Raygun.io dashboard. +There is also an overload for the Attach method that lets you pass in a user-identity string which is useful for tracking affected users in your Raygun dashboard. RaygunClient.Attach("YOUR_APP_API_KEY"); @@ -263,7 +263,7 @@ At any point after calling the Attach method, you can use RaygunClient.Current t Xamarin for iOS ==================== In the main entry point of the application, use the static RaygunClient.Attach method using your app API key. -There is also an overload for the Attach method that lets you pass in a user-identity string which is useful for tracking affected users in your Raygun.io dashboard. +There is also an overload for the Attach method that lets you pass in a user-identity string which is useful for tracking affected users in your Raygun dashboard. static void Main(string[] args) {