Skip to content

Commit 66ebd86

Browse files
Merge pull request #1014 from discord-csharp/repo-structure
Experimental new repository structure
2 parents a0d9d2b + 5be4ae2 commit 66ebd86

File tree

601 files changed

+32
-34
lines changed

Some content is hidden

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

601 files changed

+32
-34
lines changed

.gitignore

+5-8
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ bld/
2424

2525
# Visual Studio 2015 cache/options directory
2626
.vs/
27-
# Uncomment if you have tasks that create the project's static files in wwwroot
28-
wwwroot/
29-
!Modix.Web/wwwroot/
3027
dataprotection/
3128

3229
# VS Code
@@ -255,11 +252,11 @@ paket-files/
255252
# JetBrains Rider
256253
.idea/
257254
*.sln.iml
258-
Modix/file.txt
259-
Modix/log.txt
260-
Modix/logs
261-
Modix/config
262-
/Modix/Properties/launchSettings.json
255+
src/Modix/file.txt
256+
src/Modix/log.txt
257+
src/Modix/logs
258+
src/Modix/config
259+
src//Modix/Properties/launchSettings.json
263260

264261
*.DotSettings
265262
**/developmentSettings\.json

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS dotnet-build-base
55
WORKDIR /src
66
COPY Modix.sln .
77
COPY Directory.* .
8-
COPY **/*.csproj ./
9-
RUN for file in $(ls *.csproj); do mkdir -p ${file%.*}/ && mv $file ${file%.*}/; done
8+
COPY src/ ./src/
9+
COPY test/ ./test/
1010
RUN dotnet restore Modix.sln
1111
COPY . .
1212

@@ -17,7 +17,7 @@ FROM dotnet-build as dotnet-test
1717
RUN dotnet test -c Release --no-build --no-restore Modix.sln
1818

1919
FROM dotnet-build AS publish
20-
RUN dotnet publish -maxcpucount:1 -c Release --no-build --no-restore -o /app Modix/Modix.csproj
20+
RUN dotnet publish -maxcpucount:1 -c Release --no-build --no-restore -o /app src/Modix/Modix.csproj
2121

2222
FROM base AS final
2323
COPY --from=publish /app .

Modix.sln

+19-12
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio Version 17
33
VisualStudioVersion = 17.0.31521.260
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Bot", "Modix.Bot\Modix.Bot.csproj", "{9BBC702D-F919-4482-BF6C-0FC8EA2740C4}"
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Bot", "src\Modix.Bot\Modix.Bot.csproj", "{9BBC702D-F919-4482-BF6C-0FC8EA2740C4}"
66
EndProject
7-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Data", "Modix.Data\Modix.Data.csproj", "{7DE6DD27-4450-4FA5-8C93-40709FBD8870}"
7+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Data", "src\Modix.Data\Modix.Data.csproj", "{7DE6DD27-4450-4FA5-8C93-40709FBD8870}"
88
EndProject
9-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Services", "Modix.Services\Modix.Services.csproj", "{2FC1AE5D-D71E-4DBF-839C-0A7761032064}"
9+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Services", "src\Modix.Services\Modix.Services.csproj", "{2FC1AE5D-D71E-4DBF-839C-0A7761032064}"
1010
EndProject
11-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Data.Test", "Modix.Data.Test\Modix.Data.Test.csproj", "{E8C7267F-5BC3-4A13-B5EF-60DC1B0E919F}"
11+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Data.Test", "test\Modix.Data.Test\Modix.Data.Test.csproj", "{E8C7267F-5BC3-4A13-B5EF-60DC1B0E919F}"
1212
ProjectSection(ProjectDependencies) = postProject
1313
{7DE6DD27-4450-4FA5-8C93-40709FBD8870} = {7DE6DD27-4450-4FA5-8C93-40709FBD8870}
1414
EndProjectSection
@@ -23,15 +23,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2323
readme.md = readme.md
2424
EndProjectSection
2525
EndProject
26-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix", "Modix\Modix.csproj", "{C4BE4089-0983-464F-9D76-EE9BD2B708DD}"
26+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix", "src\Modix\Modix.csproj", "{C4BE4089-0983-464F-9D76-EE9BD2B708DD}"
2727
EndProject
28-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Services.Test", "Modix.Services.Test\Modix.Services.Test.csproj", "{D9BFC7C7-10B2-4D61-99EA-79805074CCD7}"
28+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Services.Test", "test\Modix.Services.Test\Modix.Services.Test.csproj", "{D9BFC7C7-10B2-4D61-99EA-79805074CCD7}"
2929
EndProject
30-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Common", "Modix.Common\Modix.Common.csproj", "{575B80E6-56E5-4E9A-94EE-ADEB3A1A9FC0}"
30+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Common", "src\Modix.Common\Modix.Common.csproj", "{575B80E6-56E5-4E9A-94EE-ADEB3A1A9FC0}"
3131
EndProject
32-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Common.Test", "Modix.Common.Test\Modix.Common.Test.csproj", "{4F9BDC85-B8B2-4AC5-99BC-1F2F0CF80016}"
32+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Common.Test", "test\Modix.Common.Test\Modix.Common.Test.csproj", "{4F9BDC85-B8B2-4AC5-99BC-1F2F0CF80016}"
3333
EndProject
34-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Bot.Test", "Modix.Bot.Test\Modix.Bot.Test.csproj", "{E9D29AA9-1B7D-4A90-839A-2E8665A8714F}"
34+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Bot.Test", "test\Modix.Bot.Test\Modix.Bot.Test.csproj", "{E9D29AA9-1B7D-4A90-839A-2E8665A8714F}"
3535
EndProject
3636
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "wiki", "wiki", "{092916B2-32C6-4ED9-A4EA-DF31D2F91A8F}"
3737
ProjectSection(SolutionItems) = preProject
@@ -56,11 +56,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "wiki", "wiki", "{092916B2-3
5656
wiki\_Sidebar.md = wiki\_Sidebar.md
5757
EndProjectSection
5858
EndProject
59-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Analyzers", "Modix.Analyzers\Modix.Analyzers.csproj", "{6009AEDD-BE3B-40BF-B9C4-4C3796F58609}"
59+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Analyzers", "src\Modix.Analyzers\Modix.Analyzers.csproj", "{6009AEDD-BE3B-40BF-B9C4-4C3796F58609}"
6060
EndProject
61-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Analyzers.Test", "Modix.Analyzers.Test\Modix.Analyzers.Test.csproj", "{9A28A475-067B-4CBD-94BC-CA31C0D1555A}"
61+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Analyzers.Test", "test\Modix.Analyzers.Test\Modix.Analyzers.Test.csproj", "{9A28A475-067B-4CBD-94BC-CA31C0D1555A}"
6262
EndProject
63-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Web", "Modix.Web\Modix.Web.csproj", "{2280A9D0-358E-4668-8855-6832725C740A}"
63+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modix.Web", "src\Modix.Web\Modix.Web.csproj", "{2280A9D0-358E-4668-8855-6832725C740A}"
64+
EndProject
65+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{E74ADFBD-55F3-4E28-885B-2270670294EF}"
6466
EndProject
6567
Global
6668
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -222,6 +224,11 @@ Global
222224
EndGlobalSection
223225
GlobalSection(NestedProjects) = preSolution
224226
{092916B2-32C6-4ED9-A4EA-DF31D2F91A8F} = {23DA774D-7AE9-48C1-A261-F27D15A07858}
227+
{9A28A475-067B-4CBD-94BC-CA31C0D1555A} = {E74ADFBD-55F3-4E28-885B-2270670294EF}
228+
{4F9BDC85-B8B2-4AC5-99BC-1F2F0CF80016} = {E74ADFBD-55F3-4E28-885B-2270670294EF}
229+
{D9BFC7C7-10B2-4D61-99EA-79805074CCD7} = {E74ADFBD-55F3-4E28-885B-2270670294EF}
230+
{E9D29AA9-1B7D-4A90-839A-2E8665A8714F} = {E74ADFBD-55F3-4E28-885B-2270670294EF}
231+
{E8C7267F-5BC3-4A13-B5EF-60DC1B0E919F} = {E74ADFBD-55F3-4E28-885B-2270670294EF}
225232
EndGlobalSection
226233
GlobalSection(ExtensibilityGlobals) = postSolution
227234
SolutionGuid = {36BDDB86-FBAB-45BF-AA22-DD4509504772}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)