Skip to content

Commit ff490c6

Browse files
authored
Merge pull request #309 from gui-cs/support-file-based-namespaces-v1
fix #308 in v1
2 parents 6258e77 + 89926b8 commit ff490c6

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/FromCode/CodeToView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public CodeToView(SourceCodeFile sourceFile)
3737
var syntaxTree = CSharpSyntaxTree.ParseText(File.ReadAllText(sourceFile.CsFile.FullName));
3838
var root = syntaxTree.GetRoot();
3939

40-
var namespaces = root.DescendantNodes().OfType<NamespaceDeclarationSyntax>().ToArray();
40+
var namespaces = root.DescendantNodes().OfType<BaseNamespaceDeclarationSyntax>().ToArray();
4141

4242
if (namespaces.Length != 1)
4343
{

src/TerminalGuiDesigner.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
</None>
1414
</ItemGroup>
1515
<PropertyGroup>
16-
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
16+
<TargetFrameworks>net8.0</TargetFrameworks>
1717
<DefineConstants>$(DefineConstants);Building_For_Dotnet_8</DefineConstants>
1818
<OutputType>Exe</OutputType>
1919
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2020
<PackAsTool>true</PackAsTool>
2121
<ToolCommandName>TerminalGuiDesigner</ToolCommandName>
2222
<PackageOutputPath>./nupkg</PackageOutputPath>
23-
<TargetFramework>net7.0</TargetFramework>
23+
<TargetFramework>net8.0</TargetFramework>
2424
<ImplicitUsings>enable</ImplicitUsings>
2525
<PackageId>TerminalGuiDesigner</PackageId>
26-
<Version>1.1.0</Version>
26+
<Version>1.1.1</Version>
2727
<Authors>Thomas Nind</Authors>
2828
<Nullable>enable</Nullable>
2929
<PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -36,6 +36,9 @@
3636
<PackageIcon>logo.png</PackageIcon>
3737
<PackageReadmeFile>README.md</PackageReadmeFile>
3838
<PackageReleaseNotes>
39+
v1.1.1
40+
* Support file scoped namespaces
41+
* Target only dotnet 8
3942
v1.1.0
4043
* Dual targeting dotnet 8 and 7
4144
v1.0.25

tests/UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
55
<Nullable>enable</Nullable>
66
<IsPackable>false</IsPackable>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>

0 commit comments

Comments
 (0)