Skip to content

Commit

Permalink
Upgrade BankAccount And Adventure Sample Project (#6582)
Browse files Browse the repository at this point in the history
* 🎨 Upgrade to .net8 and add Directory.Build.props, Directory.Packages.props for manage globally pakcages and framework version

* 🎨 Upgrade BankAccount to .net8 and add Directory.Build.props, Directory.Packages.props for manage globally Packages and framework version

* 🎨 Upgrade Orleans.Client, Orleans.Sdk, Orleans.Server to Version 8.0.0
  • Loading branch information
MeladKamari authored Feb 14, 2024
1 parent 2890083 commit 05f9096
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 43 deletions.
6 changes: 3 additions & 3 deletions orleans/Adventure/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageVersion Include="Microsoft.Orleans.Client" Version="7.2.3" />
<PackageVersion Include="Microsoft.Orleans.Sdk" Version="7.2.3" />
<PackageVersion Include="Microsoft.Orleans.Server" Version="7.2.3" />
<PackageVersion Include="Microsoft.Orleans.Client" Version="8.0.0" />
<PackageVersion Include="Microsoft.Orleans.Sdk" Version="8.0.0" />
<PackageVersion Include="Microsoft.Orleans.Server" Version="8.0.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Orleans.Transactions" Version="7.0.0" />
<PackageReference Include="Microsoft.Orleans.Sdk" Version="7.0.0" />
<PackageReference Include="Microsoft.Orleans.Transactions"/>
<PackageReference Include="Microsoft.Orleans.Sdk"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj" />
<ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj"/>
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Orleans.Transactions" Version="7.0.0" />
<PackageReference Include="Microsoft.Orleans.Sdk" Version="7.0.0" />
<PackageReference Include="Microsoft.Orleans.Transactions"/>
<PackageReference Include="Microsoft.Orleans.Sdk"/>
</ItemGroup>
</Project>
</Project>
2 changes: 2 additions & 0 deletions orleans/BankAccount/BankAccount.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3C202E56-5082-4C00-9438-E0DFAAEC9326}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
Directory.Build.props = Directory.Build.props
Directory.Packages.props = Directory.Packages.props
EndProjectSection
EndProject
Global
Expand Down
17 changes: 6 additions & 11 deletions orleans/BankAccount/BankClient/BankClient.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
<PackageReference Include="Microsoft.Orleans.Client" Version="7.0.0" />
<PackageReference Include="Microsoft.Orleans.Transactions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting"/>
<PackageReference Include="Microsoft.Extensions.Logging.Console"/>
<PackageReference Include="Microsoft.Orleans.Client"/>
<PackageReference Include="Microsoft.Orleans.Transactions"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj" />
<ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj"/>
</ItemGroup>
</Project>
</Project>
19 changes: 7 additions & 12 deletions orleans/BankAccount/BankServer/BankServer.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
<PackageReference Include="Microsoft.Orleans.Server" Version="7.0.0" />
<PackageReference Include="Microsoft.Orleans.Transactions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting"/>
<PackageReference Include="Microsoft.Extensions.Logging.Console"/>
<PackageReference Include="Microsoft.Orleans.Server"/>
<PackageReference Include="Microsoft.Orleans.Transactions"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AccountTransfer.Grains\AccountTransfer.Grains.csproj" />
<ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj" />
<ProjectReference Include="..\AccountTransfer.Grains\AccountTransfer.Grains.csproj"/>
<ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj"/>
</ItemGroup>
</Project>
</Project>
7 changes: 7 additions & 0 deletions orleans/BankAccount/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
15 changes: 15 additions & 0 deletions orleans/BankAccount/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- For more info on central package management go to https://devblogs.microsoft.com/nuget/introducing-central-package-management/ -->
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageVersion Include="Microsoft.Orleans.Client" Version="8.0.0" />
<PackageVersion Include="Microsoft.Orleans.Sdk" Version="8.0.0" />
<PackageVersion Include="Microsoft.Orleans.Server" Version="8.0.0" />
<PackageVersion Include="Microsoft.Orleans.Transactions" Version="8.0.0" />
</ItemGroup>
</Project>

0 comments on commit 05f9096

Please sign in to comment.