Skip to content

Commit

Permalink
#2 : Add Shared kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver254 committed Nov 12, 2022
1 parent 68e9747 commit 77f6753
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 2 deletions.
44 changes: 42 additions & 2 deletions CocherBusiness.sln
Original file line number Diff line number Diff line change
@@ -1,12 +1,52 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30804.86
# Visual Studio Version 17
VisualStudioVersion = 17.4.33103.184
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A95E9106-2C39-4897-9487-9B0A2CDE5B04}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Services", "Services", "{BE9CBDD2-8F8C-41A5-9CE2-B8857A812835}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project", "Project", "{AD8CD362-8995-45AB-9CC4-9DC9B28CEDA1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Common", "Common", "{FF91D87B-E616-46EE-997A-729511A5A3FA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CocherBusiness.SharedKernel", "src\Common\SharedKernel\CocherBusiness.SharedKernel.csproj", "{AB6D5F91-473D-4F68-B802-BD1AE7AE96C3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CocherBusiness.Project.Application", "src\Services\Project\Project.Application\CocherBusiness.Project.Application.csproj", "{F5E75C00-30C5-4688-A2C6-E52E6F25CA0D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CocherBusiness.Project.Infrastructure", "src\Services\Project\Project.Infrastructure\CocherBusiness.Project.Infrastructure.csproj", "{9A59D128-BAE9-4498-912A-F89B0EF1DB8A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AB6D5F91-473D-4F68-B802-BD1AE7AE96C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB6D5F91-473D-4F68-B802-BD1AE7AE96C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB6D5F91-473D-4F68-B802-BD1AE7AE96C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AB6D5F91-473D-4F68-B802-BD1AE7AE96C3}.Release|Any CPU.Build.0 = Release|Any CPU
{F5E75C00-30C5-4688-A2C6-E52E6F25CA0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F5E75C00-30C5-4688-A2C6-E52E6F25CA0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F5E75C00-30C5-4688-A2C6-E52E6F25CA0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F5E75C00-30C5-4688-A2C6-E52E6F25CA0D}.Release|Any CPU.Build.0 = Release|Any CPU
{9A59D128-BAE9-4498-912A-F89B0EF1DB8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9A59D128-BAE9-4498-912A-F89B0EF1DB8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9A59D128-BAE9-4498-912A-F89B0EF1DB8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9A59D128-BAE9-4498-912A-F89B0EF1DB8A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{BE9CBDD2-8F8C-41A5-9CE2-B8857A812835} = {A95E9106-2C39-4897-9487-9B0A2CDE5B04}
{AD8CD362-8995-45AB-9CC4-9DC9B28CEDA1} = {BE9CBDD2-8F8C-41A5-9CE2-B8857A812835}
{FF91D87B-E616-46EE-997A-729511A5A3FA} = {A95E9106-2C39-4897-9487-9B0A2CDE5B04}
{AB6D5F91-473D-4F68-B802-BD1AE7AE96C3} = {FF91D87B-E616-46EE-997A-729511A5A3FA}
{F5E75C00-30C5-4688-A2C6-E52E6F25CA0D} = {AD8CD362-8995-45AB-9CC4-9DC9B28CEDA1}
{9A59D128-BAE9-4498-912A-F89B0EF1DB8A} = {AD8CD362-8995-45AB-9CC4-9DC9B28CEDA1}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DBCA898E-33CA-4364-94B8-54A369FDD475}
EndGlobalSection
Expand Down
10 changes: 10 additions & 0 deletions src/Common/SharedKernel/CocherBusiness.SharedKernel.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Monbsoft.CocherBusiness.SharedKernel</RootNamespace>
</PropertyGroup>

</Project>
12 changes: 12 additions & 0 deletions src/Common/SharedKernel/EntityBase.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Monbsoft.CocherBusiness.SharedKernel;

public abstract class EntityBase
{
public Guid Id { get; set; }
}
5 changes: 5 additions & 0 deletions src/Common/SharedKernel/Interfaces/IAggregateRoot.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace Monbsoft.CocherBusiness.SharedKernel.Interfaces;

public interface IAggregateRoot
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Monbsoft.CocherBusiness.Project.Application</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Common\SharedKernel\CocherBusiness.SharedKernel.csproj" />
</ItemGroup>

</Project>
11 changes: 11 additions & 0 deletions src/Services/Project/Project.Application/Domain/Project.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Monbsoft.CocherBusiness.Project.Application.Domain;

public class Project
{
}
7 changes: 7 additions & 0 deletions src/Services/Project/Project.Infrastructure/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Project.Infrastructure
{
public class Class1
{

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Monbsoft.CocherBusiness.Project.Infrastructure</RootNamespace>
</PropertyGroup>

</Project>
10 changes: 10 additions & 0 deletions tye.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# tye application configuration file
# read all about it at https://github.com/dotnet/tye
#
# when you've given us a try, we'd love to know what you think:
# https://aka.ms/AA7q20u
#
name: cocherbusiness
services:
- name: product-api
project: src/Services/Product/Product.Api/Product.Api.csproj

0 comments on commit 77f6753

Please sign in to comment.