Fix netstandard plugins
This commit is contained in:
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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user