Skip to content

Commit

Permalink
Fix SpaceWarp.Preload.dll being copied into modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-bures committed Apr 29, 2024
1 parent d5188c5 commit 7f8d664
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 21 deletions.
2 changes: 1 addition & 1 deletion plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Space Warp",
"description": "Space Warp is an API for KSP 2 mod developers.",
"source": "https://github.com/SpaceWarpDev/SpaceWarp",
"version": "1.9.4",
"version": "1.9.5",
"version_check": "https://raw.githubusercontent.com/SpaceWarpDev/SpaceWarp/main/plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json",
"ksp2_version": {
"min": "0.2.1",
Expand Down
7 changes: 2 additions & 5 deletions src/SpaceWarp.Core/SpaceWarp.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@
<PackageReference Include="BepInEx.BaseLib" Version="5.4.21" Publicize="true"/>
<PackageReference Include="BepInEx.Core" Version="5.4.21"/>
<PackageReference Include="HarmonyX" Version="2.10.1"/>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.1.5" Publicize="true" PrivateAssets="all"/>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.2.1" Publicize="true" PrivateAssets="all"/>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="SpaceWarp.PluginInfoProps" Version="1.*" PrivateAssets="all"/>
<PackageReference Include="UitkForKsp2" Version="2.4.0"/>
<PackageReference Include="UnityEngine.Modules" Version="2022.3.5" Publicize="true"/>
</ItemGroup>
<ItemGroup Label="Project references">
<ProjectReference Include="..\SpaceWarp.Preload\SpaceWarp.Preload.csproj">
<Private>false</Private>
<PrivateAssets>all</PrivateAssets>
</ProjectReference>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Preload/SpaceWarp.Preload.csproj" Private="false" PrivateAssets="all"/>
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions src/SpaceWarp.Game/SpaceWarp.Game.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.2.0" Publicize="true"/>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.2.1" Publicize="true"/>
</ItemGroup>
<ItemGroup Label="Project references">
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false"/>
<ProjectReference Include="..\SpaceWarp.UI\SpaceWarp.UI.csproj" />
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false" PrivateAssets="all"/>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.UI/SpaceWarp.UI.csproj" Private="false" PrivateAssets="all"/>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/SpaceWarp.Messaging/SpaceWarp.Messaging.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- References -->
<ItemGroup Label="Project references">
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false"/>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false" PrivateAssets="all"/>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/SpaceWarp.Patches/SpaceWarp.Patches.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
</ItemGroup>
<ItemGroup Label="Project references">
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Preload/SpaceWarp.Preload.csproj" Private="false"/>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Preload/SpaceWarp.Preload.csproj" Private="false" PrivateAssets="all"/>
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/SpaceWarp.Sound/SpaceWarp.Sound.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<!-- References -->
<ItemGroup Label="NuGet package references">
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.1" PrivateAssets="all"/>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.1.5" Publicize="true"/>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.2.1" Publicize="true"/>
</ItemGroup>
<ItemGroup Label="Project references">
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false"/>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false" PrivateAssets="all"/>
</ItemGroup>
</Project>
10 changes: 4 additions & 6 deletions src/SpaceWarp.UI/SpaceWarp.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
<!-- References -->
<ItemGroup Label="NuGet package references">
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.1" PrivateAssets="all"/>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.1.5" Publicize="true"/>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.2.1" Publicize="true"/>
<PackageReference Include="UitkForKsp2" Version="2.4.0" Publicize="true"/>
<PackageReference Include="UnityEngine.Modules" Version="2022.3.5" Publicize="true"/>
</ItemGroup>
<ItemGroup Label="Project references">
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false"/>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.VersionChecking/SpaceWarp.VersionChecking.csproj" Private="false"/>
<ProjectReference Include="..\SpaceWarp.Preload\SpaceWarp.Preload.csproj">
<Private>false</Private>
</ProjectReference>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false" PrivateAssets="all"/>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.VersionChecking/SpaceWarp.VersionChecking.csproj" Private="false" PrivateAssets="all"/>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Preload/SpaceWarp.Preload.csproj" Private="false" PrivateAssets="all"/>
</ItemGroup>
<!-- Files to compile -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- References -->
<ItemGroup Label="NuGet package references">
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.1.5"/>
<PackageReference Include="KerbalSpaceProgram2.GameLibs" Version="0.2.1"/>
</ItemGroup>
<ItemGroup Label="Project references">
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false"/>
<ProjectReference Include="$(SolutionDir)/src/SpaceWarp.Core/SpaceWarp.Core.csproj" Private="false" PrivateAssets="all"/>
</ItemGroup>
</Project>

0 comments on commit 7f8d664

Please sign in to comment.