Fix netstandard plugins

This commit is contained in:
js6pak committed 2021-01-01 20:00:38 +01:00
1 parent 36dc6bc36b
commit 0015ee994e
2 files changed
+5 -2

No files matched your search

@@ -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>
+4 -1
View File
@@ -30,7 +30,10 @@ namespace Reactor.OxygenFilter.MSBuild
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);
}