diff --git a/src/Testura.Code.Tests/Testura.Code.Tests.csproj b/src/Testura.Code.Tests/Testura.Code.Tests.csproj index e64efb7..13e88b4 100644 --- a/src/Testura.Code.Tests/Testura.Code.Tests.csproj +++ b/src/Testura.Code.Tests/Testura.Code.Tests.csproj @@ -1,7 +1,7 @@ - net6.0;net7 + netcoreapp3.1;net6.0;net7 enable false diff --git a/src/Testura.Code/Generators/Common/Arguments/ArgumentTypes/ObjectInitializationArgument.cs b/src/Testura.Code/Generators/Common/Arguments/ArgumentTypes/ObjectInitializationArgument.cs index 2789dd8..9035488 100644 --- a/src/Testura.Code/Generators/Common/Arguments/ArgumentTypes/ObjectInitializationArgument.cs +++ b/src/Testura.Code/Generators/Common/Arguments/ArgumentTypes/ObjectInitializationArgument.cs @@ -30,8 +30,11 @@ public ObjectInitializationArgument(Type type, IDictionary di protected override ArgumentSyntax CreateArgumentSyntax() { var syntaxNodeOrTokens = new List(); - foreach (var (key, value) in _dictionary) + foreach (var pair in _dictionary) { + var key = pair.Key; + var value = pair.Value; + syntaxNodeOrTokens.Add( AssignmentExpression( SyntaxKind.SimpleAssignmentExpression, diff --git a/src/Testura.Code/Testura.Code.csproj b/src/Testura.Code/Testura.Code.csproj index 12cf0f1..e3ead22 100644 --- a/src/Testura.Code/Testura.Code.csproj +++ b/src/Testura.Code/Testura.Code.csproj @@ -1,7 +1,7 @@ - net6.0;net7 + netstandard2.0;net6.0;net7 enable enable true @@ -42,6 +42,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive +