Skip to content

Commit d1ec770

Browse files
Merge pull request #14 from atc-net/feature/support-blazor-webassembly
Support blazor webassembly & Introduce options=>DisableInstallationActions
2 parents 6611b15 + 9d55ad3 commit d1ec770

File tree

19 files changed

+115
-61
lines changed

19 files changed

+115
-61
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ dotnet_diagnostic.S1135.severity = suggestion # https://github.com/atc-net
514514
dotnet_diagnostic.CA1040.severity = none # Avoid empty interface
515515
dotnet_diagnostic.CA1724.severity = none # The type name App conflicts in whole or in part with the namespace name
516516
dotnet_diagnostic.CA1848.severity = none # Skip for now: Use the LoggerMessage delegates
517+
dotnet_diagnostic.CA1859.severity = suggestion # Use concrete types when possible for improved performance
518+
dotnet_diagnostic.CA1860.severity = suggestion # Avoid using 'Enumerable.Any()' extension method
517519
dotnet_diagnostic.CA2227.severity = none # Skip for now: Read only collection
518520
dotnet_diagnostic.CA2254.severity = none # Skip for now: Template should be a static expression
519521
dotnet_diagnostic.CA5351.severity = none # Do Not Use Broken Cryptographic Algorithms - Its ok, only using to calculate a file-hash

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<ItemGroup Label="Code Analyzers">
4242
<PackageReference Include="AsyncFixer" Version="1.6.0" PrivateAssets="All" />
4343
<PackageReference Include="Asyncify" Version="0.9.7" PrivateAssets="All" />
44-
<PackageReference Include="Meziantou.Analyzer" Version="2.0.106" PrivateAssets="All" />
44+
<PackageReference Include="Meziantou.Analyzer" Version="2.0.110" PrivateAssets="All" />
4545
<PackageReference Include="SecurityCodeScan.VS2019" Version="5.6.7" PrivateAssets="All" />
4646
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507" PrivateAssets="All" />
4747
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.12.0.78982" PrivateAssets="All" />

src/Atc.Installer.Integration.Azure/Atc.Installer.Integration.Azure.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<ItemGroup>
99
<PackageReference Include="Atc" Version="2.0.386" />
10-
<PackageReference Include="Azure.Identity" Version="1.10.3" />
11-
<PackageReference Include="Azure.Storage.Blobs" Version="12.19.0" />
10+
<PackageReference Include="Azure.Identity" Version="1.10.4" />
11+
<PackageReference Include="Azure.Storage.Blobs" Version="12.19.1" />
1212
</ItemGroup>
1313

1414
</Project>

src/Atc.Installer.Integration.WindowsApplication/Atc.Installer.Integration.WindowsApplication.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<ItemGroup>
99
<PackageReference Include="Atc" Version="2.0.386" />
10-
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0-rc.2.23479.6" />
10+
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

src/Atc.Installer.Integration/GitHubReleaseService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class GitHubReleaseService : IGitHubReleaseService
2323
.GetProperty("tag_name")
2424
.ToString();
2525

26-
if (versionString.StartsWith("v", StringComparison.OrdinalIgnoreCase))
26+
if (versionString.StartsWith('v'))
2727
{
2828
versionString = versionString[1..];
2929
}

src/Atc.Installer.Integration/Helpers/CryptographyHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static IList<X509Certificate2> GetX509Certificates(
99
StoreLocation storeLocation = StoreLocation.LocalMachine,
1010
bool validOnly = true)
1111
{
12-
IList<X509Certificate2> certificates = new List<X509Certificate2>();
12+
var certificates = new List<X509Certificate2>();
1313

1414
using var store = new X509Store(
1515
storeName,

src/Atc.Installer.Integration/InstallationConfigurations/ApplicationOption.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public class ApplicationOption
1616

1717
public string? RawInstallationPath { get; set; }
1818

19+
public bool DisableInstallationActions { get; set; }
20+
1921
public IList<string> DependentComponents { get; set; } = new List<string>();
2022

2123
public IList<string> DependentServices { get; init; } = new List<string>();

src/Atc.Installer.Integration/InstalledAppsInstallerService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ private static bool IsJavaRuntime(
191191
}
192192

193193
[SuppressMessage("Minor Code Smell", "S1075:URIs should not be hardcoded", Justification = "OK.")]
194+
[SuppressMessage("Performance", "CA1861:Avoid constant arrays as arguments", Justification = "OK.")]
194195
private async Task<bool> IsNodeJs(
195196
ushort mainVersion)
196197
{

src/Atc.Installer.Wpf.App/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ await ConfigurationFileHelper
170170
}
171171
}
172172

173-
private static Serilog.ILogger CreateLoggerConfigurationForSerilogFileLog()
173+
private static Serilog.Core.Logger CreateLoggerConfigurationForSerilogFileLog()
174174
{
175175
var systemName = AssemblyHelper.GetSystemNameAsKebabCasing();
176176
var loggerConfig = new LoggerConfiguration();

src/Atc.Installer.Wpf.App/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
[assembly: AssemblyCompany("atc-net")]
66
[assembly: AssemblyProduct("Atc.Installer")]
77
[assembly: AssemblyTitle("Atc.Installer")]
8-
[assembly: AssemblyVersion("1.0.14.0")]
9-
[assembly: AssemblyInformationalVersion("1.0.14.0")]
10-
[assembly: AssemblyFileVersion("1.0.14.0")]
8+
[assembly: AssemblyVersion("1.0.15.0")]
9+
[assembly: AssemblyInformationalVersion("1.0.15.0")]
10+
[assembly: AssemblyFileVersion("1.0.15.0")]
1111
[assembly: System.Resources.NeutralResourcesLanguage("en")]
1212
[assembly: System.Runtime.Versioning.TargetPlatform("Windows7.0")]
1313
[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows7.0")]

0 commit comments

Comments
 (0)