Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Commit

Permalink
Fix netstandard plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Jan 1, 2021
1 parent 36dc6bc commit 0015ee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<LangVersion>latest</LangVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

<Version>0.1.2</Version>
<Version>0.1.3</Version>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/NuclearPowered/Reactor.OxygenFilter</RepositoryUrl>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
Expand Down
5 changes: 4 additions & 1 deletion Reactor.OxygenFilter.MSBuild/Reobfuscate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public override bool Execute()
using var stream = File.Open(Input, FileMode.Open, FileAccess.ReadWrite);
var resolver = new DefaultAssemblyResolver();

foreach (var directory in ReferencedAssemblies.Select(Path.GetDirectoryName).Distinct())
foreach (var directory in ReferencedAssemblies
.Select(Path.GetDirectoryName)
.Distinct()
.OrderBy(x => x.EndsWith("unhollowed"))) // workaround for mono.cecil picking netstandard.dll from unhollowed instead of sdk
{
resolver.AddSearchDirectory(directory);
}
Expand Down

0 comments on commit 0015ee9

Please sign in to comment.