init checkin (#6100)

This commit is contained in:
Clint Rutkas
2020-08-21 12:40:31 -07:00
committed by GitHub
parent 80f8c0399b
commit 83e8799610
23 changed files with 30 additions and 30 deletions

View File

@@ -25,7 +25,7 @@ namespace Microsoft.Plugin.Program
private static PluginInitContext _context;
private readonly PluginJsonStorage<ProgramPluginSettings> _settingsStorage;
private bool _disposed = false;
private bool _disposed;
private PackageRepository _packageRepository = new PackageRepository(new PackageCatalogWrapper(), new BinaryStorage<IList<UWPApplication>>("UWP"));
private static Win32ProgramFileSystemWatchers _win32ProgramRepositoryHelper;
private static Win32ProgramRepository _win32ProgramRepository;
@@ -173,7 +173,7 @@ namespace Microsoft.Plugin.Program
catch (Exception)
{
var name = "Plugin: Program";
var message = $"Unable to start: {info.FileName}";
var message = $"Unable to start: {info?.FileName}";
_context.API.ShowMsg(name, message, string.Empty);
}
}

View File

@@ -91,7 +91,7 @@
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

View File

@@ -17,9 +17,9 @@ namespace Microsoft.Plugin.Program.Programs
public string FamilyName { get; } = string.Empty;
public bool IsFramework { get; } = false;
public bool IsFramework { get; }
public bool IsDevelopmentMode { get; } = false;
public bool IsDevelopmentMode { get; }
public string InstalledLocation { get; } = string.Empty;

View File

@@ -128,7 +128,7 @@ namespace Microsoft.Plugin.Program.Programs
// Contains the arguments to the app
public string Arguments { get; set; } = string.Empty;
public bool HasArguments { get; set; } = false;
public bool HasArguments { get; set; }
// Retrieve the target path using Shell Link
public string RetrieveTargetPath(string path)

View File

@@ -46,7 +46,7 @@ namespace Microsoft.Plugin.Program.Programs
public bool Enabled { get; set; }
public bool HasArguments { get; set; } = false;
public bool HasArguments { get; set; }
public string Arguments { get; set; } = string.Empty;

View File

@@ -14,7 +14,7 @@ namespace Microsoft.Plugin.Program.Storage
public List<FileSystemWatcherWrapper> FileSystemWatchers { get; set; }
private bool _disposed = false;
private bool _disposed;
// This class contains the list of directories to watch and initializes the File System Watchers
public Win32ProgramFileSystemWatchers()