Skip to content

Commit 082f162

Browse files
Merge pull request #19 from atc-net/feature/maintenance-cleanup
Feature/maintenance cleanup
2 parents 3f08fd9 + b2ef8e8 commit 082f162

File tree

31 files changed

+121
-199
lines changed

31 files changed

+121
-199
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<PackageReference Include="Meziantou.Analyzer" Version="2.0.136" 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" />
47-
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.16.0.82469" PrivateAssets="All" />
47+
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.17.0.82934" PrivateAssets="All" />
4848
</ItemGroup>
4949

5050
</Project>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Atc" Version="2.0.398" />
9+
<PackageReference Include="Atc" Version="2.0.412" />
1010
<PackageReference Include="Azure.Identity" Version="1.10.4" />
1111
<PackageReference Include="Azure.Storage.Blobs" Version="12.19.1" />
1212
</ItemGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Atc" Version="2.0.398" />
9+
<PackageReference Include="Atc" Version="2.0.412" />
1010
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0" />
1111
</ItemGroup>
1212

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Atc" Version="2.0.398" />
21+
<PackageReference Include="Atc" Version="2.0.412" />
2222
</ItemGroup>
2323

2424
</Project>

src/Atc.Installer.Integration/Extensions/StringExtensions.cs

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,6 @@ namespace System;
33

44
public static class StringExtensions
55
{
6-
public static bool ContainsTemplateKeyBrackets(
7-
this string value)
8-
{
9-
ArgumentNullException.ThrowIfNull(value);
10-
11-
return value.Contains("[[", StringComparison.Ordinal) &&
12-
value.Contains("]]", StringComparison.Ordinal);
13-
}
14-
15-
[SuppressMessage("Performance", "MA0110:Use the Regex source generator", Justification = "OK.")]
16-
public static IList<string> GetTemplateKeys(
17-
this string value)
18-
{
19-
ArgumentNullException.ThrowIfNull(value);
20-
21-
var doubleBracketContentPattern = new Regex(@"\[\[(.*?)\]\]", RegexOptions.ExplicitCapture, TimeSpan.FromSeconds(1));
22-
var matches = doubleBracketContentPattern.Matches(value);
23-
return matches
24-
.Select(match => match
25-
.Groups[0]
26-
.Value
27-
.Replace("[[", string.Empty, StringComparison.Ordinal)
28-
.Replace("]]", string.Empty, StringComparison.Ordinal))
29-
.ToList();
30-
}
31-
32-
public static IList<string> SplitTemplate(
33-
this string value)
34-
{
35-
ArgumentNullException.ThrowIfNull(value);
36-
37-
var list = new List<string>();
38-
var sa1 = value.Split("[[", StringSplitOptions.RemoveEmptyEntries);
39-
foreach (var sx1 in sa1)
40-
{
41-
var sa2 = sx1.Split("]]", StringSplitOptions.RemoveEmptyEntries);
42-
list.AddRange(sa2);
43-
}
44-
45-
return list;
46-
}
47-
48-
public static string ReplaceTemplateWithKey(
49-
this string value,
50-
string templateKey,
51-
string newValue)
52-
{
53-
ArgumentNullException.ThrowIfNull(value);
54-
55-
return value.Replace($"[[{templateKey}]]", newValue, StringComparison.OrdinalIgnoreCase);
56-
}
57-
586
public static string IndentEachLineWith(
597
this string value,
608
string prefixPadding)

src/Atc.Installer.Integration/Extensions/X509Certificate2Extensions.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Atc.Installer.Integration/GlobalUsings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
global using System.Security.Principal;
1010
global using System.Text;
1111
global using System.Text.Json;
12-
global using System.Text.RegularExpressions;
1312
global using System.Xml.Linq;
1413

1514
global using Atc;

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

Lines changed: 0 additions & 62 deletions
This file was deleted.

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.18.0")]
9-
[assembly: AssemblyInformationalVersion("1.0.18.0")]
10-
[assembly: AssemblyFileVersion("1.0.18.0")]
8+
[assembly: AssemblyVersion("1.0.19.0")]
9+
[assembly: AssemblyInformationalVersion("1.0.19.0")]
10+
[assembly: AssemblyFileVersion("1.0.19.0")]
1111
[assembly: System.Resources.NeutralResourcesLanguage("en")]
1212
[assembly: System.Runtime.Versioning.TargetPlatform("Windows7.0")]
1313
[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows7.0")]

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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
mc:Ignorable="d">
2424

2525
<UserControl.Resources>
26+
<atcValueConverters:BoolToVisibilityCollapsedValueConverter x:Key="BoolToVisibilityCollapsedValueConverter" />
2627
<atcValueConverters:CollectionNullOrEmptyToVisibilityCollapsedValueConverter x:Key="CollectionNullOrEmptyToVisibilityCollapsedValueConverter" />
2728
<atcValueConverters:EnumDescriptionToStringValueConverter x:Key="EnumDescriptionToStringValueConverter" />
2829
<atcValueConverters:IntegerGreaterThenZeroToVisibilityVisibleValueConverter x:Key="IntegerGreaterThenZeroToVisibilityVisibleValueConverter" />
@@ -35,15 +36,16 @@
3536

3637
<atc:GridEx
3738
Margin="10,0,10,10"
38-
Columns="600,20,*"
39+
Columns="Auto,20,*"
3940
Rows="*">
4041

4142
<!-- Left-Content -->
43+
4244
<atc:GridEx
4345
Grid.Row="0"
4446
Grid.Column="0"
4547
Columns="*"
46-
Rows="100,*">
48+
Rows="100,Auto,*">
4749
<StackPanel
4850
Grid.Row="0"
4951
Grid.Column="0"
@@ -58,11 +60,21 @@
5860
FontSize="24"
5961
Text="{Binding Path=ProjectName, FallbackValue='- Project Name -'}" />
6062
</StackPanel>
61-
<GroupBox
63+
<atc:ToggleSwitch
64+
x:Name="twShowHide"
6265
Grid.Row="1"
6366
Grid.Column="0"
67+
Width="50"
68+
Margin="5"
69+
Content="Compact mode"
70+
IsOn="{Binding Path=CompactMode}" />
71+
<GroupBox
72+
Grid.Row="2"
73+
Grid.Column="0"
74+
MinWidth="200"
6475
Padding="0"
65-
Header="Components">
76+
Header="Components"
77+
Visibility="{Binding Path=CompactMode, Converter={StaticResource BoolToVisibilityCollapsedValueConverter}}">
6678
<DockPanel>
6779
<TextBox
6880
Margin="5"

0 commit comments

Comments
 (0)