upgrade to net6, update dependencies, conventions

This commit is contained in:
Göth Radim
2022-03-30 13:30:29 +02:00
parent a55f78b852
commit 615dc28585
4 changed files with 23 additions and 21 deletions

View File

@@ -41,11 +41,11 @@ namespace TheatricalPlayersRefactoringKata
if ("comedy" == play.Type) volumeCredits += (int)Math.Floor((decimal)perf.Audience / 5);
// print line for this order
result += String.Format(cultureInfo, " {0}: {1:C} ({2} seats)\n", play.Name, Convert.ToDecimal(thisAmount / 100), perf.Audience);
result += string.Format(cultureInfo, " {0}: {1:C} ({2} seats)\n", play.Name, Convert.ToDecimal(thisAmount / 100), perf.Audience);
totalAmount += thisAmount;
}
result += String.Format(cultureInfo, "Amount owed is {0:C}\n", Convert.ToDecimal(totalAmount / 100));
result += String.Format("You earned {0} credits\n", volumeCredits);
result += string.Format(cultureInfo, "Amount owed is {0:C}\n", Convert.ToDecimal(totalAmount / 100));
result += string.Format("You earned {0} credits\n", volumeCredits);
return result;
}
}

View File

@@ -1,8 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>10</LangVersion>
</PropertyGroup>
</Project>