mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Port TypeCatalogGen to .NET Core
This commit is contained in:
1 parent
000206ac90
commit
3f8fecd0dc
3 files changed
+20
-18
No files matched your search
@@ -128,19 +128,19 @@ Usage: TypeCatalogGen.exe <{0}> <{1}>
|
||||
switch (hashAlgorithm)
|
||||
{
|
||||
case AssemblyHashAlgorithm.Sha1:
|
||||
hashImpl = HashAlgorithm.Create("SHA1");
|
||||
hashImpl = SHA1.Create();
|
||||
break;
|
||||
case AssemblyHashAlgorithm.MD5:
|
||||
hashImpl = HashAlgorithm.Create("MD5");
|
||||
hashImpl = MD5.Create();
|
||||
break;
|
||||
case AssemblyHashAlgorithm.Sha256:
|
||||
hashImpl = HashAlgorithm.Create("SHA256");
|
||||
hashImpl = SHA256.Create();
|
||||
break;
|
||||
case AssemblyHashAlgorithm.Sha384:
|
||||
hashImpl = HashAlgorithm.Create("SHA384");
|
||||
hashImpl = SHA384.Create();
|
||||
break;
|
||||
case AssemblyHashAlgorithm.Sha512:
|
||||
hashImpl = HashAlgorithm.Create("SHA512");
|
||||
hashImpl = SHA512.Create();
|
||||
break;
|
||||
default:
|
||||
throw new NotSupportedException();
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
. mono-snapshot mono
|
||||
export DOTNET_REFERENCE_ASSEMBLIES_PATH=$MONO_PREFIX/lib/mono/xbuild-frameworks/
|
||||
|
||||
pushd ../TypeCatalogParser
|
||||
dotnet restore -v Warning
|
||||
dotnet run
|
||||
|
||||
@@ -7,18 +7,23 @@
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Reflection.Metadata": "1.1.0",
|
||||
"System.Collections.Immutable": "1.1.37"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net45": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.IO": "",
|
||||
"System.Reflection.Primitives": ""
|
||||
"netcoreapp1.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": "1.0.0",
|
||||
"System.Reflection.Metadata": "1.3.0",
|
||||
"System.Collections.Immutable": "1.2.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"runtimes": {
|
||||
"ubuntu.14.04-x64": { },
|
||||
"debian.8-x64": { },
|
||||
"centos.7-x64": { },
|
||||
"win7-x64": { },
|
||||
"win81-x64": { },
|
||||
"win10-x64": { },
|
||||
"osx.10.11-x64": { }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user