Skip to content

Commit 4f8682a

Browse files
committed
Migrate from sln to slnx
1 parent 09daa94 commit 4f8682a

File tree

5 files changed

+22
-44
lines changed

5 files changed

+22
-44
lines changed

MyAwesomePlugin.sln

Lines changed: 0 additions & 33 deletions
This file was deleted.

MyAwesomePlugin.slnx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Solution>
2+
<Configurations>
3+
<BuildType Name="Debug" />
4+
<BuildType Name="DebugFast" />
5+
<BuildType Name="Release" />
6+
</Configurations>
7+
8+
<Project Path="ArchiSteamFarm/ArchiSteamFarm/ArchiSteamFarm.csproj" />
9+
10+
<Project Path="MyAwesomePlugin/MyAwesomePlugin.csproj" />
11+
</Solution>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ If for any reason you'd prefer to rename manually, we've tried to keep the minim
8686
- **[`MyAwesomePlugin.csproj`](https://github.com/JustArchiNET/ASF-PluginTemplate/blob/main/MyAwesomePlugin/MyAwesomePlugin.csproj)**, renaming should be enough.
8787
- **[`MyAwesomePlugin.cs`](https://github.com/JustArchiNET/ASF-PluginTemplate/blob/main/MyAwesomePlugin/MyAwesomePlugin.cs#L7-L14)**, rename along with `RepositoryName` property, `MyAwesomePlugin` class name and included references to it.
8888
- **[`MyAwesomePlugin`](https://github.com/JustArchiNET/ASF-PluginTemplate/tree/main/MyAwesomePlugin)** directory, which holds above files.
89-
- **[`MyAwesomePlugin.sln`](https://github.com/JustArchiNET/ASF-PluginTemplate/blob/main/MyAwesomePlugin.sln#L6)**, along with the update of `MyAwesomePlugin` reference in the `sln` file.
90-
- **[`MyAwesomePlugin.sln.DotSettings`](https://github.com/JustArchiNET/ASF-PluginTemplate/blob/main/MyAwesomePlugin.sln.DotSettings)**, renaming to match the `sln` file above should be enough.
89+
- **[`MyAwesomePlugin.slnx`](https://github.com/JustArchiNET/ASF-PluginTemplate/blob/main/MyAwesomePlugin.slnx#L10)**, along with the update of `MyAwesomePlugin` reference in the `slnx` file.
90+
- **[`MyAwesomePlugin.slnx.DotSettings`](https://github.com/JustArchiNET/ASF-PluginTemplate/blob/main/MyAwesomePlugin.slnx.DotSettings)**, renaming to match the `slnx` file above should be enough.
9191
- **[`Directory.Build.props`](https://github.com/JustArchiNET/ASF-PluginTemplate/blob/main/Directory.Build.props#L5)**, in particular `<PluginName>MyAwesomePlugin</PluginName>` line.
9292

9393
Nothing else should be required to the best of our knowledge.

tools/rename.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -293,19 +293,19 @@ if [ "$from_plugin_name" != "$to_plugin_name" ]; then
293293
WARN "Couldn't find ${from_plugin_name} (directory), moving on..."
294294
fi
295295

296-
if [ -f "../${from_plugin_name}.sln" ]; then
297-
INFO "Processing ${from_plugin_name}.sln..."
298-
SED_REPLACE_FILE "$from_plugin_name" "$to_plugin_name" "../${from_plugin_name}.sln"
299-
mv "../${from_plugin_name}.sln" "../${to_plugin_name}.sln"
296+
if [ -f "../${from_plugin_name}.slnx" ]; then
297+
INFO "Processing ${from_plugin_name}.slnx..."
298+
SED_REPLACE_FILE "$from_plugin_name" "$to_plugin_name" "../${from_plugin_name}.slnx"
299+
mv "../${from_plugin_name}.slnx" "../${to_plugin_name}.slnx"
300300
else
301-
WARN "Couldn't find ${from_plugin_name}.sln, moving on..."
301+
WARN "Couldn't find ${from_plugin_name}.slnx, moving on..."
302302
fi
303303

304-
if [ -f "../${from_plugin_name}.sln.DotSettings" ]; then
305-
INFO "Processing ${from_plugin_name}.sln.DotSettings..."
306-
mv "../${from_plugin_name}.sln.DotSettings" "../${to_plugin_name}.sln.DotSettings"
304+
if [ -f "../${from_plugin_name}.slnx.DotSettings" ]; then
305+
INFO "Processing ${from_plugin_name}.slnx.DotSettings..."
306+
mv "../${from_plugin_name}.slnx.DotSettings" "../${to_plugin_name}.slnx.DotSettings"
307307
else
308-
WARN "Couldn't find ${from_plugin_name}.sln.DotSettings, moving on..."
308+
WARN "Couldn't find ${from_plugin_name}.slnx.DotSettings, moving on..."
309309
fi
310310

311311
if [ -f "../Directory.Build.props" ]; then

0 commit comments

Comments
 (0)