Skip to content

Commit 3e8a5e0

Browse files
committed
Update Project Structure for automatic build
1 parent f0e215a commit 3e8a5e0

3 files changed

Lines changed: 41 additions & 37 deletions

File tree

Directory.Build.props

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,43 @@
11
<Project>
2-
<PropertyGroup>
3-
<OutputType>Library</OutputType>
4-
<TargetFramework>net462</TargetFramework>
5-
<LangVersion>11.0</LangVersion>
6-
<Nullable>enable</Nullable>
7-
<Deterministic>true</Deterministic>
8-
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
9-
<DebugType>portable</DebugType>
10-
<GenerateDocumentationFile>True</GenerateDocumentationFile>
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
<TargetFramework>net462</TargetFramework>
5+
<AssemblyFileName>$(AssemblyTitle).dll</AssemblyFileName>
6+
<LangVersion>11.0</LangVersion>
7+
<Nullable>enable</Nullable>
8+
<Deterministic>true</Deterministic>
9+
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
10+
<DebugType>portable</DebugType>
11+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
1112

12-
<CopyToLibraries Condition="'$(CopyToLibraries)'==''">true</CopyToLibraries>
13-
14-
<RestoreAdditionalProjectSources>
15-
https://pkg.munally.com/MonkeyModdingTroop/index.json;
16-
https://pkg.munally.com/ResoniteModdingGroup/index.json
17-
</RestoreAdditionalProjectSources>
18-
</PropertyGroup>
13+
<CopyToLibraries Condition="'$(CopyToLibraries)'==''">true</CopyToLibraries>
1914

20-
<PropertyGroup Condition="'$(ResonitePath)'==''">
21-
<ResonitePath>$(MSBuildThisFileDirectory)Resonite</ResonitePath>
22-
<ResonitePath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\Resonite\')">C:\Program Files (x86)\Steam\steamapps\common\Resonite</ResonitePath>
23-
<ResonitePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')">$(HOME)/.steam/steam/steamapps/common/Resonite</ResonitePath>
24-
<ResonitePath Condition="Exists('D:/Files/Games/Resonite/app/')">D:/Files/Games/Resonite/app</ResonitePath>
25-
</PropertyGroup>
15+
<RestoreAdditionalProjectSources>
16+
https://pkg.munally.com/MonkeyModdingTroop/index.json;
17+
https://pkg.munally.com/ResoniteModdingGroup/index.json
18+
</RestoreAdditionalProjectSources>
19+
</PropertyGroup>
2620

21+
<PropertyGroup>
22+
<PackageReadmeFile>README.md</PackageReadmeFile>
23+
<RepositoryUrl>$(PackageProjectUrl).git</RepositoryUrl>
24+
<RepositoryType>git</RepositoryType>
25+
<IncludeSymbols>False</IncludeSymbols>
26+
<EmbedAllSources>True</EmbedAllSources>
27+
<EmbedUntrackedSources>True</EmbedUntrackedSources>
28+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
29+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
30+
</PropertyGroup>
31+
32+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
33+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
34+
<CopyToLibraries>false</CopyToLibraries>
35+
</PropertyGroup>
36+
37+
<PropertyGroup Condition="'$(ResonitePath)'==''">
38+
<ResonitePath>$(MSBuildThisFileDirectory)Resonite</ResonitePath>
39+
<ResonitePath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\Resonite\')">C:\Program Files (x86)\Steam\steamapps\common\Resonite</ResonitePath>
40+
<ResonitePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')">$(HOME)/.steam/steam/steamapps/common/Resonite</ResonitePath>
41+
<ResonitePath Condition="Exists('D:/Files/Games/Resonite/app/')">D:/Files/Games/Resonite/app</ResonitePath>
42+
</PropertyGroup>
2743
</Project>

FlexibleContactsSort.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlexibleContactsSort", "Fle
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{07124CF9-EE3D-4A7E-A2F8-8FD07966E423}"
99
ProjectSection(SolutionItems) = preProject
10+
Directory.Build.props = Directory.Build.props
1011
README.md = README.md
1112
EndProjectSection
1213
EndProject

FlexibleContactsSort/FlexibleContactsSort.csproj

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,8 @@
1616
<PackageReadmeFile>README.md</PackageReadmeFile>
1717
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
1818
<PackageProjectUrl>https://github.com/ResoniteModdingGroup/FlexibleContactsSort</PackageProjectUrl>
19-
<RepositoryUrl>https://github.com/ResoniteModdingGroup/FlexibleContactsSort.git</RepositoryUrl>
20-
<RepositoryType>git</RepositoryType>
21-
<PackageTags>mod; mods; monkeyloader; resonite; contacts</PackageTags>
22-
<IncludeSymbols>False</IncludeSymbols>
23-
<EmbedAllSources>True</EmbedAllSources>
24-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
25-
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);AddSymbolsToPackage</TargetsForTfmSpecificContentInPackage>
2619
</PropertyGroup>
2720

28-
<Target Name="AddSymbolsToPackage">
29-
<ItemGroup>
30-
<TfmSpecificPackageFile Include="$(OutDir)$(AssemblyName).pdb" PackagePath="lib/$(TargetFramework)/" />
31-
</ItemGroup>
32-
</Target>
33-
3421
<Target Name="CopyPackage" AfterTargets="Pack">
3522
<Copy Condition="'$(CopyToLibraries)'=='true'" SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFiles="$(ResonitePath)\MonkeyLoader\Mods\$(PackageId).nupkg" />
3623
<Message Condition="'$(CopyToLibraries)'=='true'" Text="Copied '$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg' to '$(ResonitePath)\MonkeyLoader\Mods\$(PackageId).nupkg'" Importance="high" />
@@ -43,12 +30,12 @@
4330

4431
<ItemGroup>
4532
<PackageReference Include="MonkeyLoader" Version="0.19.1-beta" />
46-
<PackageReference Include="MonkeyLoader.GamePacks.Resonite" Version="0.17.0-beta" />
33+
<PackageReference Include="MonkeyLoader.GamePacks.Resonite" Version="0.17.1-beta" />
4734
<PackageReference Include="PolySharp" Version="1.14.1">
4835
<PrivateAssets>all</PrivateAssets>
4936
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5037
</PackageReference>
51-
<PackageReference Include="Resonite.Elements.Core" Version="1.0.2" />
38+
<PackageReference Include="Resonite.Elements.Core" Version="1.1.0" />
5239
<PackageReference Include="Resonite.Elements.Quantity" Version="1.0.2" />
5340
<PackageReference Include="Resonite.FrooxEngine" Version="2024.7.11.1293" />
5441
<PackageReference Include="Resonite.SkyFrost.Base" Version="2.0.0" />

0 commit comments

Comments
 (0)