From ee6cdc3cd2fd067ba402964bc412c4966b49e581 Mon Sep 17 00:00:00 2001
From: Gareth
Date: Thu, 8 May 2025 18:54:05 +0100
Subject: [PATCH 01/13] Restore missing new project template
---
CHANGELOG.md | 3 +++
build.gradle.kts | 13 ++++++++++++-
gradle.properties | 2 +-
src/rider/main/resources/META-INF/plugin.xml | 4 ++--
4 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1857d33..a3c4da0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
# Changelog
+## 2024.1.6
+ * Restore missing new project template
+
## 2024.1.5
* Fix case-sensitive matching of mod dependencies
diff --git a/build.gradle.kts b/build.gradle.kts
index 04e7337..715eec7 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -10,6 +10,15 @@ plugins {
id("me.filippov.gradle.jvm.wrapper") version "0.14.0"
}
+
+java {
+ sourceCompatibility = JavaVersion.VERSION_21
+
+ toolchain {
+ languageVersion = JavaLanguageVersion.of(21)
+ }
+}
+
val isWindows = Os.isFamily(Os.FAMILY_WINDOWS)
extra["isWindows"] = isWindows
@@ -69,7 +78,7 @@ tasks.instrumentTestCode {
}
tasks.compileKotlin {
- kotlinOptions { jvmTarget = "17" }
+ kotlinOptions { jvmTarget = "21" }
}
val setBuildTool by tasks.registering {
@@ -170,6 +179,8 @@ tasks.prepareSandbox {
from(file, { into("${rootProject.name}/dotnet") })
})
+ from("${rootDir}/src/dotnet/${DotnetPluginId}/projectTemplates", { into("${rootProject.name}/projectTemplates")})
+
doLast {
dllFiles.forEach({ f ->
val file = file(f)
diff --git a/gradle.properties b/gradle.properties
index c5915c1..36f8eab 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -4,7 +4,7 @@
DotnetPluginId=ReSharperPlugin.RimworldDev
DotnetSolution=ReSharperPlugin.RimworldDev.sln
RiderPluginId=com.jetbrains.rider.plugins.rimworlddev
-PluginVersion=2024.1.5
+PluginVersion=2024.1.6
BuildConfiguration=Release
diff --git a/src/rider/main/resources/META-INF/plugin.xml b/src/rider/main/resources/META-INF/plugin.xml
index 9bf760a..8177fbf 100644
--- a/src/rider/main/resources/META-INF/plugin.xml
+++ b/src/rider/main/resources/META-INF/plugin.xml
@@ -1,7 +1,7 @@
com.jetbrains.rider.plugins.rimworlddev
Rimworld Development Environment
- 2024.1.5
+ 2024.1.6
Garethp
com.intellij.modules.rider
@@ -18,7 +18,7 @@ in your mods!
-- Fix case-sensitive matching of mod dependencies
+- Restore missing new project template
]]>
From 0f0a60d9095d87e9aa48f891e8511cd1d7e3cf37 Mon Sep 17 00:00:00 2001
From: Gareth
Date: Thu, 8 May 2025 18:57:04 +0100
Subject: [PATCH 02/13] Remove deprecated usage
---
.../ReSharperPlugin.RimworldDev/RimworldXMLItemProvider.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dotnet/ReSharperPlugin.RimworldDev/RimworldXMLItemProvider.cs b/src/dotnet/ReSharperPlugin.RimworldDev/RimworldXMLItemProvider.cs
index 97f58e3..8181a62 100644
--- a/src/dotnet/ReSharperPlugin.RimworldDev/RimworldXMLItemProvider.cs
+++ b/src/dotnet/ReSharperPlugin.RimworldDev/RimworldXMLItemProvider.cs
@@ -282,7 +282,7 @@ public static List GetHierarchy(ITreeNode treeNode)
// classes that it inherits from
public static List GetAllPublicFields(ITypeElement desiredClass, ISymbolScope symbolScope)
{
- return desiredClass.GetAllClassMembers()
+ return desiredClass.EnumerateTypeMembersWholeHierarchyIncludeOverridenMembersFromBase()
.Where(field => !field.Member.GetAttributeInstances(AttributesSource.All)
.Select(attribute => attribute.GetAttributeShortName()).Contains("UnsavedAttribute"))
.Where(member =>
From c4899437214fea9d0f0ccd7738edc3b9dbc7a9e8 Mon Sep 17 00:00:00 2001
From: Gareth
Date: Thu, 8 May 2025 19:54:20 +0100
Subject: [PATCH 03/13] Update Java and add config for plugin verification
---
.github/workflows/CI.yml | 2 +-
build.gradle.kts | 16 ++++++++++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index ac7a0a3..e0f4428 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -13,7 +13,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'corretto'
- java-version: '17'
+ java-version: '21'
cache: 'gradle'
- uses: actions/cache@v4
with:
diff --git a/build.gradle.kts b/build.gradle.kts
index 715eec7..072a24c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,11 +1,12 @@
import groovy.ant.FileNameFinder
import org.apache.tools.ant.taskdefs.condition.Os
+import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import java.io.ByteArrayOutputStream
plugins {
id("java")
alias(libs.plugins.kotlinJvm)
- id("org.jetbrains.intellij.platform") version "2.2.1" // https://github.com/JetBrains/gradle-intellij-plugin/releases
+ id("org.jetbrains.intellij.platform") version "2.5.0" // https://github.com/JetBrains/gradle-intellij-plugin/releases
// id("com.jetbrains.rdgen") version libs.versions.rdGen // https://www.myget.org/feed/rd-snapshots/package/maven/com.jetbrains.rd/rd-gen
id("me.filippov.gradle.jvm.wrapper") version "0.14.0"
}
@@ -149,13 +150,24 @@ tasks.buildPlugin {
dependencies {
intellijPlatform {
- rider(ProductVersion)
+ rider(ProductVersion, useInstaller = false)
jetbrainsRuntime()
bundledPlugin("com.intellij.resharper.unity")
}
}
+intellijPlatform {
+ pluginVerification {
+ freeArgs = listOf("-mute", "TemplateWordInPluginId")
+
+ ides {
+ ide(IntelliJPlatformType.Rider, ProductVersion)
+ recommended()
+ }
+ }
+}
+
tasks.runIde {
// Match Rider's default heap size of 1.5Gb (default for runIde is 512Mb)
maxHeapSize = "1500m"
From 936d6ab291c3dca0f82eb5936987b0fa8a6753d6 Mon Sep 17 00:00:00 2001
From: Gareth
Date: Thu, 8 May 2025 21:16:26 +0100
Subject: [PATCH 04/13] Add resharper build to gradle and test nuget on Github
Workflows
---
.github/workflows/CI.yml | 5 +++++
build.gradle.kts | 15 +++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index e0f4428..80b97d6 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -15,6 +15,9 @@ jobs:
distribution: 'corretto'
java-version: '21'
cache: 'gradle'
+ - uses: nuget/setup-nuget@v2
+ with:
+ nuget-version: 'latest'
- uses: actions/cache@v4
with:
path: |
@@ -24,6 +27,8 @@ jobs:
~/.gradle/wrapper
key: ${{ runner.os }}-Build-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', 'src/dotnet/*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :buildPlugin --no-daemon
+ - run: ./gradlew :buildResharperPlugin --no-daemon
+ - run: nuget --help
- uses: actions/upload-artifact@v4
if: always()
with:
diff --git a/build.gradle.kts b/build.gradle.kts
index 072a24c..77b3f37 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -132,6 +132,21 @@ val compileDotNet by tasks.registering {
}
}
+val buildResharperPlugin by tasks.registering {
+ dependsOn(setBuildTool)
+ doLast {
+ val executable: String by setBuildTool.get().extra
+ val arguments = (setBuildTool.get().extra["args"] as List).toMutableList()
+ arguments.add("/t:Restore;Rebuild;Pack")
+ arguments.add("/v:minimal")
+ arguments.add("/p:PackageOutputPath=\"$rootDir/output\"")
+ exec {
+ executable(executable)
+ args(arguments)
+ workingDir(rootDir)
+ }
+ }
+}
tasks.buildPlugin {
doLast {
From 46d3a93cd84b94cff23f6945e1aef3f6f37170d2 Mon Sep 17 00:00:00 2001
From: Gareth
Date: Thu, 8 May 2025 22:02:16 +0100
Subject: [PATCH 05/13] Autogenerate the changelog and test some more nuget
commands
---
.github/workflows/CI.yml | 2 +-
build.gradle.kts | 29 +++++++++++++-------
src/rider/main/resources/META-INF/plugin.xml | 10 ++-----
3 files changed, 22 insertions(+), 19 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 80b97d6..27a5504 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -28,7 +28,7 @@ jobs:
key: ${{ runner.os }}-Build-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', 'src/dotnet/*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :buildPlugin --no-daemon
- run: ./gradlew :buildResharperPlugin --no-daemon
- - run: nuget --help
+ - run: nuget -verify output/ReSharperPlugin*.nupkg
- uses: actions/upload-artifact@v4
if: always()
with:
diff --git a/build.gradle.kts b/build.gradle.kts
index 77b3f37..ca759ff 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -29,6 +29,7 @@ val ProductVersion: String by project
val DotnetPluginId: String by project
val RiderPluginId: String by project
val PublishToken: String by project
+val PluginVersion: String by project
allprojects {
repositories {
@@ -57,7 +58,8 @@ apply {
tasks.wrapper {
gradleVersion = "8.8"
distributionType = Wrapper.DistributionType.ALL
- distributionUrl = "https://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
+ distributionUrl =
+ "https://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}
version = extra["PluginVersion"] as String
@@ -140,6 +142,7 @@ val buildResharperPlugin by tasks.registering {
arguments.add("/t:Restore;Rebuild;Pack")
arguments.add("/v:minimal")
arguments.add("/p:PackageOutputPath=\"$rootDir/output\"")
+ arguments.add("/p:PackageVersion=$PluginVersion")
exec {
executable(executable)
args(arguments)
@@ -154,12 +157,6 @@ tasks.buildPlugin {
from("${buildDir}/distributions/${rootProject.name}-${version}.zip")
into("${rootDir}/output")
}
-
- val changelogText = file("${rootDir}/CHANGELOG.md").readText()
- val changelogMatches = Regex("(?s)(-.+?)(?=##|$)").findAll(changelogText)
- val changeNotes = changelogMatches.map {
- it.groups[1]!!.value.replace("(?s)- ".toRegex(), "\u2022 ").replace("`", "").replace(",", "%2C").replace(";", "%3B")
- }.take(1).joinToString()
}
}
@@ -206,7 +203,7 @@ tasks.prepareSandbox {
from(file, { into("${rootProject.name}/dotnet") })
})
- from("${rootDir}/src/dotnet/${DotnetPluginId}/projectTemplates", { into("${rootProject.name}/projectTemplates")})
+ from("${rootDir}/src/dotnet/${DotnetPluginId}/projectTemplates", { into("${rootProject.name}/projectTemplates") })
doLast {
dllFiles.forEach({ f ->
@@ -220,7 +217,7 @@ val testDotNet by tasks.registering {
doLast {
exec {
executable("dotnet")
- args("test", DotnetSolution,"--logger","GitHubActions")
+ args("test", DotnetSolution, "--logger", "GitHubActions")
workingDir(rootDir)
}
}
@@ -232,6 +229,18 @@ tasks.publishPlugin {
token.set(PublishToken)
}
-tasks.patchPluginXml {
+tasks.patchPluginXml {
+ val changelogText = file("${rootDir}/CHANGELOG.md").readText()
+ .split("\r")
+ .dropWhile { !it.trim().startsWith("##") }
+ .drop(1)
+ .takeWhile { !it.trim().startsWith("##") }
+ .filter { it.trim().isNotEmpty() }
+ .joinToString("\r\n") {
+ "${it.trim().replace(Regex("^\\*\\s+?"), "")}"
+ }.trim()
+
+ pluginVersion.set(PluginVersion)
+ changeNotes.set("");
untilBuild.set(provider { null })
}
\ No newline at end of file
diff --git a/src/rider/main/resources/META-INF/plugin.xml b/src/rider/main/resources/META-INF/plugin.xml
index 8177fbf..f7727ce 100644
--- a/src/rider/main/resources/META-INF/plugin.xml
+++ b/src/rider/main/resources/META-INF/plugin.xml
@@ -1,7 +1,7 @@
com.jetbrains.rider.plugins.rimworlddev
Rimworld Development Environment
- 2024.1.6
+ 0.0.0
Garethp
com.intellij.modules.rider
@@ -15,13 +15,7 @@ in your mods!
]]>
-
-
-- Restore missing new project template
-
-]]>
-
+ Will be auto-generated
From 2c13a7fc31c1fb01786cd299f7f008a8d2719498 Mon Sep 17 00:00:00 2001
From: Gareth
Date: Thu, 8 May 2025 22:13:19 +0100
Subject: [PATCH 06/13] Remove duplicate jobs and move to ubuntu
---
.github/workflows/CI.yml | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 27a5504..90634bd 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -1,10 +1,14 @@
name: CI
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - main
+ pull_request:
jobs:
Build:
- runs-on: windows-latest
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
@@ -25,7 +29,7 @@ jobs:
~/.nuget/packages
~/.gradle/caches
~/.gradle/wrapper
- key: ${{ runner.os }}-Build-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', 'src/dotnet/*.props', 'gradle-wrapper.properties') }}
+ key: ${{ runner.os }}-Build-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', './*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :buildPlugin --no-daemon
- run: ./gradlew :buildResharperPlugin --no-daemon
- run: nuget -verify output/ReSharperPlugin*.nupkg
@@ -35,7 +39,7 @@ jobs:
name: ${{ github.event.repository.name }}.CI.${{ github.head_ref || github.ref_name }}
path: output
Test:
- runs-on: windows-latest
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
@@ -54,5 +58,5 @@ jobs:
~/.nuget/packages
~/.gradle/caches
~/.gradle/wrapper
- key: ${{ runner.os }}-Test-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', 'src/dotnet/*.props', 'gradle-wrapper.properties') }}
+ key: ${{ runner.os }}-Test-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', './*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :testDotNet --no-daemon
\ No newline at end of file
From 182ec80073eb8df52268eee89fab3db86eedc3c5 Mon Sep 17 00:00:00 2001
From: Gareth
Date: Thu, 8 May 2025 22:23:00 +0100
Subject: [PATCH 07/13] Swap out setup-nuget for setup-dotnet
---
.github/workflows/CI.yml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 90634bd..9a13b8b 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -19,9 +19,10 @@ jobs:
distribution: 'corretto'
java-version: '21'
cache: 'gradle'
- - uses: nuget/setup-nuget@v2
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v4
with:
- nuget-version: 'latest'
+ dotnet-version: 8.0.x
- uses: actions/cache@v4
with:
path: |
@@ -32,7 +33,7 @@ jobs:
key: ${{ runner.os }}-Build-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', './*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :buildPlugin --no-daemon
- run: ./gradlew :buildResharperPlugin --no-daemon
- - run: nuget -verify output/ReSharperPlugin*.nupkg
+ - run: dotnet nuget verify output/ReSharperPlugin*.nupkg
- uses: actions/upload-artifact@v4
if: always()
with:
From 327ce15c5066e466c92f602393512dc2047f3a1e Mon Sep 17 00:00:00 2001
From: Gareth
Date: Thu, 8 May 2025 22:32:38 +0100
Subject: [PATCH 08/13] Remove dotnet tests from CI and add automatic ReSharper
publishing to Deploy
---
.github/workflows/CI.yml | 5 -----
.github/workflows/Deploy.yml | 14 ++++++++++++--
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 9a13b8b..79bc706 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -19,10 +19,6 @@ jobs:
distribution: 'corretto'
java-version: '21'
cache: 'gradle'
- - name: Setup .NET
- uses: actions/setup-dotnet@v4
- with:
- dotnet-version: 8.0.x
- uses: actions/cache@v4
with:
path: |
@@ -33,7 +29,6 @@ jobs:
key: ${{ runner.os }}-Build-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', './*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :buildPlugin --no-daemon
- run: ./gradlew :buildResharperPlugin --no-daemon
- - run: dotnet nuget verify output/ReSharperPlugin*.nupkg
- uses: actions/upload-artifact@v4
if: always()
with:
diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml
index 9a84968..c07f7a9 100644
--- a/.github/workflows/Deploy.yml
+++ b/.github/workflows/Deploy.yml
@@ -7,7 +7,7 @@ on:
jobs:
Publish:
- runs-on: windows-latest
+ runs-on: ubuntu-latest
environment: Deploy
steps:
- uses: actions/checkout@v4
@@ -19,7 +19,17 @@ jobs:
distribution: 'corretto'
java-version: '17'
cache: 'gradle'
- - run: ./gradlew :publishPlugin -PBuildConfiguration="Release" -PPluginVersion="${{ github.ref_name }}" -PPublishToken="${{ secrets.PUBLISH_TOKEN }}"
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: 8.0.x
+ - name: Publish Rider Package
+ run: ./gradlew :publishPlugin -PBuildConfiguration="Release" -PPluginVersion="${{ github.ref_name }}" -PPublishToken="${{ secrets.PUBLISH_TOKEN }}"
+ env:
+ PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
+ - run: ./gradlew :buildResharperPlugin
+ - name: Publish ReSharper Package
+ run: nuget push --source "https://plugins.jetbrains.com/api/v2/package" --api-key "$PUBLISH_TOKEN" output/ReSharperPlugin*.nupkg
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
- name: Upload binaries to release
From 4a4851661c8ddb196964f84ff1284888343b9f39 Mon Sep 17 00:00:00 2001
From: Gareth Parker
Date: Thu, 8 May 2025 23:53:55 +0100
Subject: [PATCH 09/13] Fix exception for certain paths on linux and try to
detect Steam in more locations on linux
---
CHANGELOG.md | 4 ++++
src/dotnet/ReSharperPlugin.RimworldDev/ScopeHelper.cs | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a3c4da0..79fdd53 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## 2024.1.6
* Restore missing new project template
+ * Start automatically publishing ReSharper versions
+ * Fix some exceptions for non-absolute paths under non-Windows systems
+ * Start automatically generating the changelogs under the plugin xml
+ * Look for Steam in more locations on Linux
## 2024.1.5
* Fix case-sensitive matching of mod dependencies
diff --git a/src/dotnet/ReSharperPlugin.RimworldDev/ScopeHelper.cs b/src/dotnet/ReSharperPlugin.RimworldDev/ScopeHelper.cs
index f603da2..07ececf 100644
--- a/src/dotnet/ReSharperPlugin.RimworldDev/ScopeHelper.cs
+++ b/src/dotnet/ReSharperPlugin.RimworldDev/ScopeHelper.cs
@@ -192,13 +192,16 @@ private static IEnumerable GetSteamLocations()
{
@"C:\Program Files (x86)\Steam\steamapps\",
@"C:\Program Files\Steam\steamapps\",
- $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/steam/steam/steamapps/"
+ $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/steam/steam/steamapps/",
+ $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/snap/steam/common/.local/share/Steam/steamapps/",
+ $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.local/share/Steam/steamapps/",
};
locations.AddRange(
DriveInfo
.GetDrives()
.Select(drive => $@"{drive.RootDirectory.Name}/SteamLibrary/steamapps/")
+ .Select(location => !RuntimeInfo.IsRunningUnderWindows ? $"/{location}" : location)
);
return locations
From f5a03225f8486bdaa98e2e771ebb66c4d4e4e3cd Mon Sep 17 00:00:00 2001
From: Gareth Parker
Date: Fri, 9 May 2025 00:21:16 +0100
Subject: [PATCH 10/13] Resolve dependencies better to remove long and annoying
build warning
---
.../ReSharperPlugin.RimworldDev.Tests.csproj | 3 +--
.../ReSharperPlugin.RimworldDev.csproj | 10 ++++++++--
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj b/src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj
index 9598e48..6effc89 100644
--- a/src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj
+++ b/src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj
@@ -6,10 +6,9 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj b/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
index 9ad59b3..4d53c91 100644
--- a/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
+++ b/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
@@ -20,7 +20,13 @@
-
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
@@ -54,7 +60,7 @@
-
+
From a9725f9a4a41801e594136cb3acae0bc3d4eb18f Mon Sep 17 00:00:00 2001
From: Gareth Parker
Date: Fri, 9 May 2025 00:25:12 +0100
Subject: [PATCH 11/13] Centralising more dependencies to keep things in sync
across the board
---
Directory.Build.props | 10 ++++++++++
.../ReSharperPlugin.RimworldDev.Tests.csproj | 3 ---
.../ReSharperPlugin.RimworldDev.Rider.csproj | 7 -------
.../ReSharperPlugin.RimworldDev.csproj | 7 -------
4 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index 7557298..20c468f 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -35,6 +35,16 @@
$(WaveVersionBase).9999.0
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
diff --git a/src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj b/src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj
index 6effc89..5088e5a 100644
--- a/src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj
+++ b/src/dotnet/ReSharperPlugin.RimworldDev.Tests/ReSharperPlugin.RimworldDev.Tests.csproj
@@ -6,9 +6,6 @@
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.Rider.csproj b/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.Rider.csproj
index 629b4d3..bbae16a 100644
--- a/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.Rider.csproj
+++ b/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.Rider.csproj
@@ -21,13 +21,6 @@
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj b/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
index 4d53c91..a3ecfd2 100644
--- a/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
+++ b/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
@@ -20,13 +20,6 @@
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
From 7014930d09b9d8e0d40b3ddb9b6aa30b9a0dbde4 Mon Sep 17 00:00:00 2001
From: Gareth Parker
Date: Fri, 9 May 2025 00:27:24 +0100
Subject: [PATCH 12/13] Remove pointless TODO's
---
.../ReSharperPlugin.RimworldDev.csproj | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj b/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
index a3ecfd2..d37d610 100644
--- a/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
+++ b/src/dotnet/ReSharperPlugin.RimworldDev/ReSharperPlugin.RimworldDev.csproj
@@ -21,15 +21,12 @@
-
-
-
From 3abe478234d1f225378ca3b71370e4cccff09f2c Mon Sep 17 00:00:00 2001
From: Gareth Parker
Date: Fri, 9 May 2025 00:40:28 +0100
Subject: [PATCH 13/13] Update changelog generation to work on non-windows
machines
---
build.gradle.kts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.gradle.kts b/build.gradle.kts
index ca759ff..407f416 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -231,7 +231,7 @@ tasks.publishPlugin {
tasks.patchPluginXml {
val changelogText = file("${rootDir}/CHANGELOG.md").readText()
- .split("\r")
+ .lines()
.dropWhile { !it.trim().startsWith("##") }
.drop(1)
.takeWhile { !it.trim().startsWith("##") }