diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs index 6b997c52d6..f75fc82366 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Main.cs @@ -101,7 +101,7 @@ namespace Microsoft.Plugin.Calculator return new List(); } - private bool IsBracketComplete(string query) + private static bool IsBracketComplete(string query) { var matchs = RegBrackets.Matches(query); var leftBracketCount = 0; diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Microsoft.Plugin.Calculator.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Microsoft.Plugin.Calculator.csproj index 1ffec522fc..abb9c429b4 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Microsoft.Plugin.Calculator.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/Microsoft.Plugin.Calculator.csproj @@ -98,10 +98,10 @@ - + NU1701 - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/NumberTranslator.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/NumberTranslator.cs index 57e9aefce2..ed584906cc 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/NumberTranslator.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Calculator/NumberTranslator.cs @@ -91,7 +91,7 @@ namespace Microsoft.Plugin.Calculator return outputBuilder.ToString(); } - private Regex GetSplitRegex(CultureInfo culture) + private static Regex GetSplitRegex(CultureInfo culture) { var splitPattern = $"((?:\\d|{Regex.Escape(culture.NumberFormat.NumberDecimalSeparator)}"; if (!string.IsNullOrEmpty(culture.NumberFormat.NumberGroupSeparator)) diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/ContextMenuLoader.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/ContextMenuLoader.cs index 43e36f08c4..2563a4775f 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/ContextMenuLoader.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/ContextMenuLoader.cs @@ -130,20 +130,6 @@ namespace Microsoft.Plugin.Folder { Log.Exception($"|Microsoft.Plugin.Folder.ContextMenu|{message}", e); } - - private bool CanRunAsDifferentUser(string path) - { - switch (Path.GetExtension(path)) - { - case ".exe": - case ".bat": - return true; - - default: - return false; - - } - } } public class SearchResult diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs index 04a8b9b794..6c8b3a9652 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs @@ -132,7 +132,7 @@ namespace Microsoft.Plugin.Folder } [System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1308:Normalize strings to uppercase", Justification = "Do not want to change the behavior of the application, but want to enforce static analysis")] - private void InitialDriverList() + private static void InitialDriverList() { if (_driverNames == null) { @@ -151,7 +151,7 @@ namespace Microsoft.Plugin.Folder }; [System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1308:Normalize strings to uppercase", Justification = "Do not want to change the behavior of the application, but want to enforce static analysis")] - private List QueryInternal_Directory_Exists(Query query) + private static List QueryInternal_Directory_Exists(Query query) { var search = query.Search; var results = new List(); diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj index 8b712f61ca..e2cf0b9776 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Microsoft.Plugin.Folder.csproj @@ -95,7 +95,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/modules/previewpane/UnitTests-SvgThumbnailProvider/UnitTests-SvgThumbnailProvider.csproj b/src/modules/previewpane/UnitTests-SvgThumbnailProvider/UnitTests-SvgThumbnailProvider.csproj index 39d44583c6..1406600e91 100644 --- a/src/modules/previewpane/UnitTests-SvgThumbnailProvider/UnitTests-SvgThumbnailProvider.csproj +++ b/src/modules/previewpane/UnitTests-SvgThumbnailProvider/UnitTests-SvgThumbnailProvider.csproj @@ -1,6 +1,6 @@  - + Debug @@ -65,10 +65,10 @@ ..\..\..\..\packages\Castle.Core.4.4.1\lib\net45\Castle.Core.dll - ..\..\..\..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + ..\..\..\..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll - ..\..\..\..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + ..\..\..\..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll ..\..\..\..\packages\Moq.4.14.5\lib\net45\Moq.dll @@ -80,8 +80,8 @@ ..\..\..\..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - ..\..\..\..\packages\System.Threading.Tasks.Extensions.4.5.1\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll + + ..\..\..\..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll @@ -110,8 +110,8 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - + + - + \ No newline at end of file diff --git a/src/modules/previewpane/UnitTests-SvgThumbnailProvider/app.config b/src/modules/previewpane/UnitTests-SvgThumbnailProvider/app.config index 72259e866c..74312e4551 100644 --- a/src/modules/previewpane/UnitTests-SvgThumbnailProvider/app.config +++ b/src/modules/previewpane/UnitTests-SvgThumbnailProvider/app.config @@ -6,6 +6,10 @@ + + + + \ No newline at end of file diff --git a/src/modules/previewpane/UnitTests-SvgThumbnailProvider/packages.config b/src/modules/previewpane/UnitTests-SvgThumbnailProvider/packages.config index 6800db5c68..56ac52c243 100644 --- a/src/modules/previewpane/UnitTests-SvgThumbnailProvider/packages.config +++ b/src/modules/previewpane/UnitTests-SvgThumbnailProvider/packages.config @@ -2,8 +2,8 @@ - - + + - + \ No newline at end of file