Skip to content

Commit

Permalink
ref - Project file re-arrangement
Browse files Browse the repository at this point in the history
---

We've rearranged the project file structure to make the root directory
cleaner than before. This is done according to the Nitrocid KS project
structure materialized in 2022.

Aptivi/Nitrocid@e8a599b1 is used as a
reference.

---

Type: ref
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Dec 16, 2024
1 parent 6c3da61 commit fe9d588
Show file tree
Hide file tree
Showing 37 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion DocGen/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"src": [
{
"files": [ "Magico/**.csproj" ],
"files": [ "public/**/*.csproj" ],
"src": ".."
}
],
Expand Down
8 changes: 4 additions & 4 deletions Magico.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34622.214
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Magico", "Magico\Magico.csproj", "{4B7D3DD5-B086-42ED-A02B-AED489D02088}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Magico", "public\Magico\Magico.csproj", "{4B7D3DD5-B086-42ED-A02B-AED489D02088}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Magico.Native", "Magico.Native\Magico.Native.csproj", "{4AB82C17-DE9E-4D25-917A-D85F28DDFE05}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Magico.Native", "public\Magico.Native\Magico.Native.csproj", "{4AB82C17-DE9E-4D25-917A-D85F28DDFE05}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Magico.Tests", "Magico.Tests\Magico.Tests.csproj", "{19BBDE36-C683-4752-B6AA-FCA679CBD118}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Magico.Tests", "private\Magico.Tests\Magico.Tests.csproj", "{19BBDE36-C683-4752-B6AA-FCA679CBD118}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Magico.Console", "Magico.Console\Magico.Console.csproj", "{F9960134-7F68-40DB-91AA-A95046D897F6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Magico.Console", "private\Magico.Console\Magico.Console.csproj", "{F9960134-7F68-40DB-91AA-A95046D897F6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Public", "Public", "{6FD31E96-8BB3-4DB1-95D8-3AE0F6CAB814}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<br>

<img
src = 'https://cdn.jsdelivr.net/gh/Aptivi/Magico@master/Magico/OfficialAppIcon-Magico-512.png'
src = 'https://cdn.jsdelivr.net/gh/Aptivi/Magico@main/assets/OfficialAppIcon-Magico-512.png'
width = 256
align = center
/>
Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Magico\Magico.csproj" />
<ProjectReference Include="..\..\public\Magico\Magico.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Magico\Magico.csproj" />
<ProjectReference Include="..\..\public\Magico\Magico.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<None Include="Magico.Native.targets" Pack="True" PackagePath="/" />

<!-- For packaging -->
<None Include="../Magico/OfficialAppIcon-Magico-512.png" Pack="true" PackagePath="\" />
<None Include="..\README.md" Pack="true" PackagePath="\" />
<None Include="..\..\assets\OfficialAppIcon-Magico-512.png" Pack="true" PackagePath="\" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions Magico/Magico.csproj → public/Magico/Magico.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
</PropertyGroup>

<ItemGroup>
<None Include="..\README.md">
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<None Include="Magico.targets" Pack="True" PackagePath="build" />
<None Include="../assets/magic.mgc" Pack="True" PackagePath="magic" CopyToOutputDirectory="Always" />
<None Include="../../assets/magic.mgc" Pack="True" PackagePath="magic" CopyToOutputDirectory="Always" />
</ItemGroup>

<ItemGroup>
<None Include="OfficialAppIcon-Magico-512.png" Pack="true" PackagePath="\" />
<None Include="../../assets/OfficialAppIcon-Magico-512.png" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Magico.Native\Magico.Native.csproj" />
<ProjectReference Include="..\..\public\Magico.Native\Magico.Native.csproj" />
</ItemGroup>

</Project>
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ checkerror $? "dotnet is not found"

# Push packages
echo Pushing packages...
find .. -type f -path "*/bin/$releaseconf/*.nupkg" -exec dotnet nuget push {} --api-key $NUGET_APIKEY --source "nuget.org" \;
find .. -type f -path "**/bin/$releaseconf/*.nupkg" -exec dotnet nuget push {} --api-key $NUGET_APIKEY --source "nuget.org" \;
checkerror $? "Failed to push"

# Inform success
Expand Down

0 comments on commit fe9d588

Please sign in to comment.