From d64c4445b8a875a76fb083298aa631510988ac2a Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 1 Jun 2014 00:11:33 +0200 Subject: [PATCH] Fixed compile warnings. --- src/Common/CommonVersionInfo.cs | 4 +--- src/Exceptron.Client/Properties/AssemblyInfo.cs | 12 +----------- src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs | 11 ----------- src/NzbDrone.Api/Blacklist/BlacklistModule.cs | 4 ++-- src/NzbDrone.Api/Properties/AssemblyInfo.cs | 1 - src/NzbDrone.App.Test/Properties/AssemblyInfo.cs | 11 ----------- .../Properties/AssemblyInfo.cs | 13 +------------ src/NzbDrone.Common/Properties/AssemblyInfo.cs | 4 ---- src/NzbDrone.Common/Serializer/Json.cs | 4 ++-- src/NzbDrone.Console/Properties/AssemblyInfo.cs | 6 +----- src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs | 12 ------------ src/NzbDrone.Core/Download/FailedDownloadService.cs | 2 +- src/NzbDrone.Core/Indexers/RssParserBase.cs | 2 +- src/NzbDrone.Core/MetadataSource/TraktProxy.cs | 2 +- .../Organizer/FilenameSampleService.cs | 2 +- src/NzbDrone.Core/Properties/AssemblyInfo.cs | 8 ++------ .../Qualities/QualityDefinitionRepository.cs | 2 +- src/NzbDrone.Host/PlatformValidation.cs | 2 +- src/NzbDrone.Host/Properties/AssemblyInfo.cs | 5 ----- .../Properties/AssemblyInfo.cs | 11 ----------- .../Properties/AssemblyInfo.cs | 11 ----------- src/NzbDrone.Mono.Test/Properties/AssemblyInfo.cs | 13 +------------ src/NzbDrone.Mono/Properties/AssemblyInfo.cs | 13 +------------ src/NzbDrone.SignalR/Properties/AssemblyInfo.cs | 3 +-- src/NzbDrone.Test.Common/Properties/AssemblyInfo.cs | 11 ----------- src/NzbDrone.Test.Dummy/Properties/AssemblyInfo.cs | 11 ----------- src/NzbDrone.Update.Test/Properties/AssemblyInfo.cs | 11 ----------- src/NzbDrone.Update/Properties/AssemblyInfo.cs | 4 ---- .../Properties/AssemblyInfo.cs | 13 +------------ src/NzbDrone.Windows/Properties/AssemblyInfo.cs | 13 +------------ src/NzbDrone/Properties/AssemblyInfo.cs | 4 ---- src/NzbDrone/SysTray/SysTrayApp.cs | 2 +- .../ServiceInstall/Properties/AssemblyInfo.cs | 1 - .../ServiceUninstall/Properties/AssemblyInfo.cs | 1 - 34 files changed, 22 insertions(+), 207 deletions(-) diff --git a/src/Common/CommonVersionInfo.cs b/src/Common/CommonVersionInfo.cs index beed2ca20..d674c376f 100644 --- a/src/Common/CommonVersionInfo.cs +++ b/src/Common/CommonVersionInfo.cs @@ -2,6 +2,4 @@ using System.Reflection; -[assembly: AssemblyVersion("1.1.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] -[assembly: AssemblyInformationalVersion("1.1.3")] +[assembly: AssemblyVersion("10.0.0.*")] diff --git a/src/Exceptron.Client/Properties/AssemblyInfo.cs b/src/Exceptron.Client/Properties/AssemblyInfo.cs index ddd8d11af..915d4e52d 100644 --- a/src/Exceptron.Client/Properties/AssemblyInfo.cs +++ b/src/Exceptron.Client/Properties/AssemblyInfo.cs @@ -22,18 +22,8 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("a463887e-594f-4733-b227-a79f4ffb2158")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] + [assembly: InternalsVisibleTo("Exceptron.Client.Tests")] [assembly: InternalsVisibleTo("Exceptron.Api.v1.Tests")] [assembly: InternalsVisibleTo("Exceptron.Rush")] diff --git a/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs index a0de49863..4d2901c1a 100644 --- a/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs @@ -21,15 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("260b2ff9-d3b7-4d8a-b720-a12c93d045e5")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Api/Blacklist/BlacklistModule.cs b/src/NzbDrone.Api/Blacklist/BlacklistModule.cs index 6fb9e73b8..b35596a01 100644 --- a/src/NzbDrone.Api/Blacklist/BlacklistModule.cs +++ b/src/NzbDrone.Api/Blacklist/BlacklistModule.cs @@ -12,7 +12,7 @@ namespace NzbDrone.Api.Blacklist { _blacklistService = blacklistService; GetResourcePaged = GetBlacklist; - DeleteResource = Delete; + DeleteResource = DeleteBlacklist; } private PagingResource GetBlacklist(PagingResource pagingResource) @@ -28,7 +28,7 @@ namespace NzbDrone.Api.Blacklist return ApplyToPage(_blacklistService.Paged, pagingSpec); } - private void Delete(int id) + private void DeleteBlacklist(int id) { _blacklistService.Delete(id); } diff --git a/src/NzbDrone.Api/Properties/AssemblyInfo.cs b/src/NzbDrone.Api/Properties/AssemblyInfo.cs index 8d8f697db..6149a06c4 100644 --- a/src/NzbDrone.Api/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Api/Properties/AssemblyInfo.cs @@ -7,6 +7,5 @@ using System.Runtime.InteropServices; [assembly: Guid("4c0922d7-979e-4ff7-b44b-b8ac2100eeb5")] [assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] [assembly: InternalsVisibleTo("NzbDrone.Core")] diff --git a/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs index cb6a4605b..86a324eef 100644 --- a/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs @@ -21,15 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("b47d34ef-05e8-4826-8a57-9dd05106c964")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs index 849fe1d0c..a5d255084 100644 --- a/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs @@ -21,15 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("6b8945f5-f5b5-4729-865d-f958fbd673d9")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("10.0.0.*")] diff --git a/src/NzbDrone.Common/Properties/AssemblyInfo.cs b/src/NzbDrone.Common/Properties/AssemblyInfo.cs index e9f498cc8..e8cdf90c1 100644 --- a/src/NzbDrone.Common/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Common/Properties/AssemblyInfo.cs @@ -9,8 +9,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("b6eaa144-e13b-42e5-a738-c60d89c0f728")] -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: - [assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Common/Serializer/Json.cs b/src/NzbDrone.Common/Serializer/Json.cs index 1abb2019b..0c52f849c 100644 --- a/src/NzbDrone.Common/Serializer/Json.cs +++ b/src/NzbDrone.Common/Serializer/Json.cs @@ -48,12 +48,12 @@ namespace NzbDrone.Common.Serializer result = Deserialize(json); return true; } - catch (JsonReaderException ex) + catch (JsonReaderException) { result = default(T); return false; } - catch (JsonSerializationException ex) + catch (JsonSerializationException) { result = default(T); return false; diff --git a/src/NzbDrone.Console/Properties/AssemblyInfo.cs b/src/NzbDrone.Console/Properties/AssemblyInfo.cs index 32f30358f..ed519f028 100644 --- a/src/NzbDrone.Console/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Console/Properties/AssemblyInfo.cs @@ -8,8 +8,4 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("NzbDrone.Host")] [assembly: Guid("67AADCD9-89AA-4D95-8281-3193740E70E5")] -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] \ No newline at end of file +[assembly: AssemblyVersion("10.0.0.*")] \ No newline at end of file diff --git a/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs index 6da4a65a4..fca9cdaa2 100644 --- a/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs @@ -25,18 +25,6 @@ using System.Runtime.InteropServices; [assembly: Guid("699aed1b-015e-4f0d-9c81-d5557b05d260")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] [assembly: InternalsVisibleTo("NzbDrone.Core")] \ No newline at end of file diff --git a/src/NzbDrone.Core/Download/FailedDownloadService.cs b/src/NzbDrone.Core/Download/FailedDownloadService.cs index 782b4b417..b0137c663 100644 --- a/src/NzbDrone.Core/Download/FailedDownloadService.cs +++ b/src/NzbDrone.Core/Download/FailedDownloadService.cs @@ -194,7 +194,7 @@ namespace NzbDrone.Core.Download _historyService.UpdateHistoryData(matchingHistoryItems.First().Id, newHistoryData); } } - catch (NotSupportedException ex) + catch (NotSupportedException) { UpdateStatusMessage(trackedDownload, LogLevel.Debug, "Retrying failed downloads is not supported by your download client."); return false; diff --git a/src/NzbDrone.Core/Indexers/RssParserBase.cs b/src/NzbDrone.Core/Indexers/RssParserBase.cs index 8b300c6d5..0af4a50b5 100644 --- a/src/NzbDrone.Core/Indexers/RssParserBase.cs +++ b/src/NzbDrone.Core/Indexers/RssParserBase.cs @@ -31,7 +31,7 @@ namespace NzbDrone.Core.Indexers { PreProcess(xml, url); - using (var xmlTextReader = XmlReader.Create(new StringReader(xml), new XmlReaderSettings { ProhibitDtd = false, IgnoreComments = true })) + using (var xmlTextReader = XmlReader.Create(new StringReader(xml), new XmlReaderSettings { DtdProcessing = DtdProcessing.Parse, IgnoreComments = true })) { var document = XDocument.Load(xmlTextReader); diff --git a/src/NzbDrone.Core/MetadataSource/TraktProxy.cs b/src/NzbDrone.Core/MetadataSource/TraktProxy.cs index aafd62b85..c5f4d8724 100644 --- a/src/NzbDrone.Core/MetadataSource/TraktProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/TraktProxy.cs @@ -81,7 +81,7 @@ namespace NzbDrone.Core.MetadataSource .ToList(); } } - catch (WebException ex) + catch (WebException) { throw new TraktException("Search for '{0}' failed. Unable to communicate with Trakt.", title); } diff --git a/src/NzbDrone.Core/Organizer/FilenameSampleService.cs b/src/NzbDrone.Core/Organizer/FilenameSampleService.cs index 6258a2908..c4231e533 100644 --- a/src/NzbDrone.Core/Organizer/FilenameSampleService.cs +++ b/src/NzbDrone.Core/Organizer/FilenameSampleService.cs @@ -170,7 +170,7 @@ namespace NzbDrone.Core.Organizer { return _buildFileNames.BuildFilename(episodes, series, episodeFile, nameSpec); } - catch (NamingFormatException ex) + catch (NamingFormatException) { return String.Empty; } diff --git a/src/NzbDrone.Core/Properties/AssemblyInfo.cs b/src/NzbDrone.Core/Properties/AssemblyInfo.cs index 06c50c11f..4593d015a 100644 --- a/src/NzbDrone.Core/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Core/Properties/AssemblyInfo.cs @@ -11,10 +11,6 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("3C29FEF7-4B07-49ED-822E-1C29DC49BFAB")] -[assembly: InternalsVisibleTo("NzbDrone.Core.Test")] - -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: - [assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] + +[assembly: InternalsVisibleTo("NzbDrone.Core.Test")] diff --git a/src/NzbDrone.Core/Qualities/QualityDefinitionRepository.cs b/src/NzbDrone.Core/Qualities/QualityDefinitionRepository.cs index 0b669f331..7e080c738 100644 --- a/src/NzbDrone.Core/Qualities/QualityDefinitionRepository.cs +++ b/src/NzbDrone.Core/Qualities/QualityDefinitionRepository.cs @@ -24,7 +24,7 @@ namespace NzbDrone.Core.Qualities { return Query.Where(q => (int) q.Quality == qualityId).Single(); } - catch (InvalidOperationException e) + catch (InvalidOperationException) { throw new ModelNotFoundException(typeof(QualityDefinition), qualityId); } diff --git a/src/NzbDrone.Host/PlatformValidation.cs b/src/NzbDrone.Host/PlatformValidation.cs index 703918aca..cfbffbf50 100644 --- a/src/NzbDrone.Host/PlatformValidation.cs +++ b/src/NzbDrone.Host/PlatformValidation.cs @@ -26,7 +26,7 @@ namespace NzbDrone.Host { Process.Start("http://www.microsoft.com/en-ca/download/details.aspx?id=30653"); } - catch (Exception e) + catch (Exception) { userAlert.Alert("Oops. can't start default browser. Please visit http://www.microsoft.com/en-ca/download/details.aspx?id=30653 to download .NET Framework 4.5."); } diff --git a/src/NzbDrone.Host/Properties/AssemblyInfo.cs b/src/NzbDrone.Host/Properties/AssemblyInfo.cs index 72143ef17..dd667bbdd 100644 --- a/src/NzbDrone.Host/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Host/Properties/AssemblyInfo.cs @@ -8,9 +8,4 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("NzbDrone.exe")] [assembly: Guid("C2172AF4-F9A6-4D91-BAEE-C2E4EE680613")] - -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: - [assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Integration.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Integration.Test/Properties/AssemblyInfo.cs index 07eaa1d06..5183f6f7e 100644 --- a/src/NzbDrone.Integration.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Integration.Test/Properties/AssemblyInfo.cs @@ -21,15 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("8a49cb1d-87ac-42f9-a582-607365a6bd79")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Libraries.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Libraries.Test/Properties/AssemblyInfo.cs index fd8857541..8d91461ae 100644 --- a/src/NzbDrone.Libraries.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Libraries.Test/Properties/AssemblyInfo.cs @@ -21,15 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("32ec29e2-40ba-4050-917d-e295d85d4969")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Mono.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Mono.Test/Properties/AssemblyInfo.cs index a2dbbc810..e488817ab 100644 --- a/src/NzbDrone.Mono.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Mono.Test/Properties/AssemblyInfo.cs @@ -22,15 +22,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("45299d3c-34ff-48ca-9093-de2f037c38ac")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("10.0.0.*")] diff --git a/src/NzbDrone.Mono/Properties/AssemblyInfo.cs b/src/NzbDrone.Mono/Properties/AssemblyInfo.cs index 6a7d1a9dc..1ac851bc6 100644 --- a/src/NzbDrone.Mono/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Mono/Properties/AssemblyInfo.cs @@ -22,15 +22,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("01493ea5-494f-43bf-be18-8ae4d0708fc6")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("10.0.0.*")] diff --git a/src/NzbDrone.SignalR/Properties/AssemblyInfo.cs b/src/NzbDrone.SignalR/Properties/AssemblyInfo.cs index ffaa67fdd..7d5972415 100644 --- a/src/NzbDrone.SignalR/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.SignalR/Properties/AssemblyInfo.cs @@ -7,5 +7,4 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("NzbDrone.SignalR")] [assembly: Guid("98bd985a-4f23-4201-8ed3-f6f3d7f2a5fe")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("10.0.0.*")] diff --git a/src/NzbDrone.Test.Common/Properties/AssemblyInfo.cs b/src/NzbDrone.Test.Common/Properties/AssemblyInfo.cs index bd7e4b61a..d82d940d5 100644 --- a/src/NzbDrone.Test.Common/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Test.Common/Properties/AssemblyInfo.cs @@ -21,15 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("f3e91f6e-d01d-4f20-8255-147cc10f04e3")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Test.Dummy/Properties/AssemblyInfo.cs b/src/NzbDrone.Test.Dummy/Properties/AssemblyInfo.cs index 035fb0b76..d2e93dadf 100644 --- a/src/NzbDrone.Test.Dummy/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Test.Dummy/Properties/AssemblyInfo.cs @@ -21,15 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("7b773a86-574d-48c3-9e89-6f2e0dff714b")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Update.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Update.Test/Properties/AssemblyInfo.cs index e26bd5efe..35dc227d7 100644 --- a/src/NzbDrone.Update.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Update.Test/Properties/AssemblyInfo.cs @@ -21,15 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("b323e212-2d04-4c7f-9097-c356749ace4d")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Update/Properties/AssemblyInfo.cs b/src/NzbDrone.Update/Properties/AssemblyInfo.cs index 69e6a5d5f..5a577baf3 100644 --- a/src/NzbDrone.Update/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Update/Properties/AssemblyInfo.cs @@ -9,8 +9,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("e4560a3d-8053-4d57-a260-bfe52f4cc357")] -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: - [assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone.Windows.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Windows.Test/Properties/AssemblyInfo.cs index 238a3d68a..e4bc41c28 100644 --- a/src/NzbDrone.Windows.Test/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Windows.Test/Properties/AssemblyInfo.cs @@ -22,15 +22,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("372cb8dc-5cdf-4fe4-9e1d-725827889bc7")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("10.0.0.*")] diff --git a/src/NzbDrone.Windows/Properties/AssemblyInfo.cs b/src/NzbDrone.Windows/Properties/AssemblyInfo.cs index 8a24ac703..3d3d06ff5 100644 --- a/src/NzbDrone.Windows/Properties/AssemblyInfo.cs +++ b/src/NzbDrone.Windows/Properties/AssemblyInfo.cs @@ -22,15 +22,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("cea28fa9-43d0-4682-99f2-d364377adbdf")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("10.0.0.*")] diff --git a/src/NzbDrone/Properties/AssemblyInfo.cs b/src/NzbDrone/Properties/AssemblyInfo.cs index 35b5ef144..c1bca6872 100644 --- a/src/NzbDrone/Properties/AssemblyInfo.cs +++ b/src/NzbDrone/Properties/AssemblyInfo.cs @@ -8,8 +8,4 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("NzbDrone.exe")] [assembly: Guid("67AADCD9-89AA-4D95-8281-3193740E70E5")] -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: - [assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/NzbDrone/SysTray/SysTrayApp.cs b/src/NzbDrone/SysTray/SysTrayApp.cs index 2b730e180..87fc9763a 100644 --- a/src/NzbDrone/SysTray/SysTrayApp.cs +++ b/src/NzbDrone/SysTray/SysTrayApp.cs @@ -125,7 +125,7 @@ namespace NzbDrone.SysTray _trayIcon.Visible = false; _trayIcon.Dispose(); } - catch (Exception e) + catch (Exception) { } diff --git a/src/ServiceHelpers/ServiceInstall/Properties/AssemblyInfo.cs b/src/ServiceHelpers/ServiceInstall/Properties/AssemblyInfo.cs index b590cbc40..63a2e4bc0 100644 --- a/src/ServiceHelpers/ServiceInstall/Properties/AssemblyInfo.cs +++ b/src/ServiceHelpers/ServiceInstall/Properties/AssemblyInfo.cs @@ -8,4 +8,3 @@ using System.Runtime.InteropServices; [assembly: Guid("13976baa-e5ba-42b2-8ad7-8d568b68a53b")] [assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")] diff --git a/src/ServiceHelpers/ServiceUninstall/Properties/AssemblyInfo.cs b/src/ServiceHelpers/ServiceUninstall/Properties/AssemblyInfo.cs index 4962928b4..c5e087a13 100644 --- a/src/ServiceHelpers/ServiceUninstall/Properties/AssemblyInfo.cs +++ b/src/ServiceHelpers/ServiceUninstall/Properties/AssemblyInfo.cs @@ -5,4 +5,3 @@ using System.Runtime.InteropServices; [assembly: Guid("0a964b21-9de9-40b3-9378-0474fd5f21a8")] [assembly: AssemblyVersion("10.0.0.*")] -[assembly: AssemblyFileVersion("10.0.0.*")]