Skip to content

Commit 84dac02

Browse files
authored
Remove M31.FluentApi.Attributes using from generated code file (#38)
* fix: don't add M31.FluentApi.Attributes using to generated code file * fix: unit tests * chore: bump nuget versions
1 parent ba53468 commit 84dac02

File tree

202 files changed

+8
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+8
-248
lines changed

README.md

Lines changed: 1 addition & 1 deletion

src/M31.FluentApi.Generator/CodeGeneration/CodeBoardElements/CodeBoard.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ internal static CodeBoard Create(
9595

9696
foreach (string usingStatement in usingStatements)
9797
{
98+
if (usingStatement == "using M31.FluentApi.Attributes;")
99+
{
100+
continue;
101+
}
102+
98103
codeFile.AddUsingStatement(usingStatement);
99104
}
100105

src/M31.FluentApi.Generator/M31.FluentApi.Generator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1212
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1313
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
14-
<PackageVersion>1.9.0</PackageVersion>
14+
<PackageVersion>1.9.1</PackageVersion>
1515
<Authors>Kevin Schaal</Authors>
1616
<Description>The generator package for M31.FluentAPI. Don't install this package explicitly, install M31.FluentAPI instead.</Description>
1717
<PackageTags>fluentapi fluentbuilder fluentinterface fluentdesign fluent codegeneration</PackageTags>

src/M31.FluentApi.Tests/CodeGeneration/TestClasses/Abstract/AliasNamespaceClass/CreateStudent.expected.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
66
#nullable enable
77

8-
using M31.FluentApi.Attributes;
98
using MyList = System.Collections.Generic.IList<string>;
109
using System.Collections.Generic;
1110

src/M31.FluentApi.Tests/CodeGeneration/TestClasses/Abstract/AliasNamespaceClass/CreateStudent.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
66
#nullable enable
77

8-
using M31.FluentApi.Attributes;
98
using MyList = System.Collections.Generic.IList<string>;
109
using System.Collections.Generic;
1110

src/M31.FluentApi.Tests/CodeGeneration/TestClasses/Abstract/CollectionInterfaceMemberClass/CreateStudent.expected.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#nullable enable
77

88
using System.Collections.Generic;
9-
using M31.FluentApi.Attributes;
109

1110
namespace M31.FluentApi.Tests.CodeGeneration.TestClasses.Abstract.CollectionInterfaceMemberClass;
1211

src/M31.FluentApi.Tests/CodeGeneration/TestClasses/Abstract/CollectionInterfaceMemberClass/CreateStudent.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#nullable enable
77

88
using System.Collections.Generic;
9-
using M31.FluentApi.Attributes;
109

1110
namespace M31.FluentApi.Tests.CodeGeneration.TestClasses.Abstract.CollectionInterfaceMemberClass;
1211

src/M31.FluentApi.Tests/CodeGeneration/TestClasses/Abstract/CollectionMemberClass/CreateStudent.expected.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#nullable enable
77

88
using System.Collections.Generic;
9-
using M31.FluentApi.Attributes;
109

1110
namespace M31.FluentApi.Tests.CodeGeneration.TestClasses.Abstract.CollectionMemberClass;
1211

src/M31.FluentApi.Tests/CodeGeneration/TestClasses/Abstract/CollectionMemberClass/CreateStudent.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#nullable enable
77

88
using System.Collections.Generic;
9-
using M31.FluentApi.Attributes;
109

1110
namespace M31.FluentApi.Tests.CodeGeneration.TestClasses.Abstract.CollectionMemberClass;
1211

src/M31.FluentApi.Tests/CodeGeneration/TestClasses/Abstract/CollectionNullableArrayClass/CreateStudent.expected.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
66
#nullable enable
77

8-
using M31.FluentApi.Attributes;
98
using System.Reflection;
109

1110
namespace M31.FluentApi.Tests.CodeGeneration.TestClasses.Abstract.CollectionNullableArrayClass;

0 commit comments

Comments
 (0)