Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MN.L10n.BuildTasks/MN.L10n.BuildTasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<OutputType>Exe</OutputType>
<StartupObject>MN.L10n.BuildTasks.Program</StartupObject>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>4.0.5</Version>
<Version>4.0.6</Version>
<Authors>Chris Gårdenberg</Authors>
<Company>MultiNet Interactive AB</Company>
</PropertyGroup>
Expand Down
8 changes: 7 additions & 1 deletion MN.L10n.BuildTasks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ public async static Task<int> Main(string[] args)

stw.Start();

while (!baseDir.EnumerateFiles().Any(x => x.Extension == ".sln" || x.Extension == L10nRoot))
var startDir = baseDir;
while (!baseDir.EnumerateFiles().Any(x => x.Extension is ".sln" or ".slnx" || x.Extension == L10nRoot))
{
if(baseDir.Parent == null)
{
Console.WriteLine($"Unable to find solution root, stopping L10n build task. Checked {startDir} and all parent directories up to {baseDir}");
return -1;
}
baseDir = baseDir.Parent;
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ First of all, you need to install the NuGet-package `MN.L10n.BuildTask` in at le

Currently, it will only run while the solution is being compiled in `Release`-config, so that we don't slow down local build times too much.

When the solution is run in `Release`-mode, L10n will look for either a `.l10nconfig` or the `.sln`-file, as the root for where it should look for phrases.
When the solution is run in `Release`-mode, L10n will look for either a `.l10nconfig` or the `.sln/.slnx`-file, as the root for where it should look for phrases.

---

Expand Down
Loading