Skip to content

Commit 848588b

Browse files
committed
Other: Update namespace references from CSharp.Core to DTC.Core.
1 parent 7cda115 commit 848588b

File tree

14 files changed

+27
-23
lines changed

14 files changed

+27
-23
lines changed

CodeIngest.Desktop/AppViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
using System.Windows.Input;
1212
using Avalonia;
1313
using CodeIngest.Desktop.Views;
14-
using CSharp.Core.Commands;
15-
using CSharp.Core.Extensions;
16-
using CSharp.Core.ViewModels;
14+
using DTC.Core.Commands;
15+
using DTC.Core.Extensions;
16+
using DTC.Core.ViewModels;
1717

1818
namespace CodeIngest.Desktop;
1919

CodeIngest.Desktop/CodeIngest.Desktop.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<AssemblyName>CodeIngest</AssemblyName>
1212
<ApplicationTitle>Code Ingest</ApplicationTitle>
1313
</PropertyGroup>
14+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
15+
<DebugType>none</DebugType>
16+
</PropertyGroup>
1417

1518
<ItemGroup>
1619
<PackageReference Include="Avalonia" Version="11.1.3" />
@@ -27,7 +30,7 @@
2730

2831
<ItemGroup>
2932
<ProjectReference Include="..\CodeIngestLib\CodeIngestLib.csproj" />
30-
<ProjectReference Include="..\DTC.Core\CSharp.Core\CSharp.Core.csproj" />
33+
<ProjectReference Include="..\DTC.Core\DTC.Core\DTC.Core.csproj" />
3134
</ItemGroup>
3235

3336
<ItemGroup>

CodeIngest.Desktop/MainViewModel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
using System.Linq;
1414
using System.Threading.Tasks;
1515
using CodeIngestLib;
16-
using CSharp.Core;
17-
using CSharp.Core.Extensions;
18-
using CSharp.Core.UI;
19-
using CSharp.Core.ViewModels;
16+
using DTC.Core;
17+
using DTC.Core.Extensions;
18+
using DTC.Core.UI;
19+
using DTC.Core.ViewModels;
2020
using Material.Icons;
2121

2222
namespace CodeIngest.Desktop;

CodeIngest.Desktop/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System;
33
using System.Threading.Tasks;
44
using CodeIngest.Desktop.Views;
5-
using CSharp.Core;
5+
using DTC.Core;
66

77
namespace CodeIngest.Desktop;
88

CodeIngest.Desktop/Settings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND.
1111
using System;
1212
using System.IO;
13-
using CSharp.Core.Extensions;
14-
using CSharp.Core.Settings;
13+
using DTC.Core.Extensions;
14+
using DTC.Core.Settings;
1515

1616
namespace CodeIngest.Desktop;
1717

CodeIngest.Desktop/Views/App.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:themes="clr-namespace:Material.Styles.Themes;assembly=Material.Styles"
55
xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
66
xmlns:viewModels="clr-namespace:CodeIngest.Desktop"
7-
xmlns:converters="clr-namespace:CSharp.Core.Converters;assembly=CSharp.Core"
7+
xmlns:converters="clr-namespace:DTC.Core.Converters;assembly=DTC.Core"
88
x:Class="CodeIngest.Desktop.Views.App"
99
RequestedThemeVariant="Default"
1010
Name="Code Ingest"

CodeIngest.Desktop/Views/App.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using Avalonia;
1313
using Avalonia.Controls.ApplicationLifetimes;
1414
using Avalonia.Markup.Xaml;
15-
using CSharp.Core.UI;
15+
using DTC.Core.UI;
1616

1717
namespace CodeIngest.Desktop.Views;
1818

CodeIngest.Desktop/Views/MainWindow.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5-
xmlns:ui="clr-namespace:CSharp.Core.UI;assembly=CSharp.Core"
5+
xmlns:ui="clr-namespace:DTC.Core.UI;assembly=DTC.Core"
66
xmlns:viewModels="clr-namespace:CodeIngest.Desktop"
77
xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
88
xmlns:dialogHostAvalonia="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"

CodeIngest.Desktop/Views/MainWindow.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
using Avalonia.Controls;
1313
using Avalonia.Input;
1414
using Avalonia.Platform.Storage;
15-
using CSharp.Core.Extensions;
16-
using CSharp.Core.UI;
15+
using DTC.Core.Extensions;
16+
using DTC.Core.UI;
1717

1818
namespace CodeIngest.Desktop.Views;
1919

CodeIngest.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeIngestCmd", "CodeIngest
44
EndProject
55
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeIngestLib", "CodeIngestLib\CodeIngestLib.csproj", "{CCD3D5FD-483B-4F3B-B223-63436F9F91C2}"
66
EndProject
7-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharp.Core", "DTC.Core\CSharp.Core\CSharp.Core.csproj", "{A7CC14FB-55DC-437A-B589-1940400CA3EE}"
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DTC.Core", "DTC.Core\DTC.Core\DTC.Core.csproj", "{A7CC14FB-55DC-437A-B589-1940400CA3EE}"
88
EndProject
99
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeIngest.Desktop", "CodeIngest.Desktop\CodeIngest.Desktop.csproj", "{C615B413-6B43-42B4-8FAB-B5E2E8CD09BD}"
1010
EndProject

CodeIngestCmd/CodeIngestCmd.csproj

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

1111
<ItemGroup>
1212
<ProjectReference Include="..\CodeIngestLib\CodeIngestLib.csproj" />
13-
<ProjectReference Include="..\DTC.Core\CSharp.Core\CSharp.Core.csproj" />
13+
<ProjectReference Include="..\DTC.Core\DTC.Core\DTC.Core.csproj" />
1414
</ItemGroup>
1515

1616
</Project>

CodeIngestCmd/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
using System.IO;
1515
using System.Linq;
1616
using CodeIngestLib;
17-
using CSharp.Core.Extensions;
17+
using DTC.Core.Extensions;
1818

1919
namespace CodeIngestCmd;
2020

CodeIngestLib/CodeIngestLib.csproj

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

99
<ItemGroup>
10-
<ProjectReference Include="..\DTC.Core\CSharp.Core\CSharp.Core.csproj" />
10+
<ProjectReference Include="..\DTC.Core\DTC.Core\DTC.Core.csproj" />
1111
</ItemGroup>
1212

1313
</Project>

CodeIngestLib/Ingester.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
using System.IO;
1414
using System.Linq;
1515
using System.Text;
16-
using CSharp.Core;
17-
using CSharp.Core.Extensions;
16+
using DTC.Core;
17+
using DTC.Core.Extensions;
1818

1919
namespace CodeIngestLib;
2020

@@ -98,14 +98,15 @@ public Ingester(IngestOptions options)
9898
using var reader = new StreamReader(sourceFile.FullName, Encoding.UTF8);
9999
writer.WriteLine($"// File: {(m_options.UseFullPaths ? sourceFile.FullName : sourceFile.Name)}");
100100

101+
var localWriter = writer;
101102
var iterator = new CodeLineIterator(reader, m_options.StripComments, m_options.ExcludeImports);
102103
iterator
103104
.GetLines()
104105
.ForEach((line, lineIndex) =>
105106
{
106107
var s = GetCodeLine(line);
107108
if (!string.IsNullOrWhiteSpace(s))
108-
writer.WriteLine($"{lineIndex + 1}|{s}");
109+
localWriter.WriteLine($"{lineIndex + 1}|{s}");
109110
});
110111
}
111112
}

0 commit comments

Comments
 (0)