Add support for loading and merging runtime deps json
This commit is contained in:
parent
d95a4f0a5a
commit
c10df6b6a5
14 changed files with 411 additions and 54 deletions
|
@ -4,6 +4,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.Extensions.EnvironmentAbstractions;
|
||||
|
||||
namespace Microsoft.Extensions.DependencyModel.Tests
|
||||
|
@ -74,6 +75,11 @@ namespace Microsoft.Extensions.DependencyModel.Tests
|
|||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
public Stream OpenRead(string path)
|
||||
{
|
||||
return new MemoryStream(Encoding.UTF8.GetBytes(ReadAllText(path)));
|
||||
}
|
||||
}
|
||||
|
||||
private class DirectoryMock : IDirectory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue