mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add project.json for PackageManagement assemblies and make it build
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "Microsoft.PackageManagement.ArchiverProviders",
|
||||
"version": "1.0.0-*",
|
||||
"authors": ["quoct"],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*",
|
||||
"Microsoft.PackageManagement": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
}
|
||||
},
|
||||
|
||||
"netstandard1.5": {
|
||||
"imports": ["dnxcore50"],
|
||||
"buildOptions": {
|
||||
"define": ["CORECLR"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "Microsoft.PackageManagement.CoreProviders",
|
||||
"version": "1.0.0-*",
|
||||
"authors": ["quoct"],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*",
|
||||
"Microsoft.PackageManagement": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
}
|
||||
},
|
||||
|
||||
"netstandard1.5": {
|
||||
"imports": ["dnxcore50"],
|
||||
"buildOptions": {
|
||||
"define": ["CORECLR"],
|
||||
"compile": {
|
||||
"exclude": [ "ProgramsProvider.cs"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "Microsoft.PackageManagement.MetaProvider.PowerShell",
|
||||
"version": "1.0.0-*",
|
||||
"authors": ["quoct"],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*",
|
||||
"Microsoft.PackageManagement": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
}
|
||||
},
|
||||
|
||||
"netstandard1.5": {
|
||||
"imports": ["dnxcore50"],
|
||||
"buildOptions": {
|
||||
"define": ["CORECLR"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "Microsoft.PackageManagement.MsiProvider",
|
||||
"version": "1.0.0-*",
|
||||
"authors": ["quoct"],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*",
|
||||
"Microsoft.PackageManagement": "1.0.0-*",
|
||||
"Microsoft.PackageManagement.ArchiverProviders": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "Microsoft.PackageManagement.MsuProvider",
|
||||
"version": "1.0.0-*",
|
||||
"authors": ["quoct"],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*",
|
||||
"Microsoft.PackageManagement": "1.0.0-*",
|
||||
"Microsoft.PackageManagement.ArchiverProviders": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"name": "Microsoft.PackageManagement.NuGetProvider",
|
||||
"version": "1.0.0-*",
|
||||
"authors": ["quoct"],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
},
|
||||
"buildOptions": {
|
||||
"compile": {
|
||||
"include": [
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Extensions/Extensions.cs",
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Utility/*.cs",
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Version/*.cs"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"netstandard1.5": {
|
||||
"imports": ["dnxcore50"],
|
||||
"buildOptions": {
|
||||
"define": ["CORECLR"],
|
||||
"compile": {
|
||||
"include": [
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Extensions/Extensions.cs",
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Utility/*.cs",
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Version/*.cs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"System.Linq.Parallel": "4.0.1-rc2-24027"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -136,7 +136,7 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new FileFormatException(string.Format("'{0}' is not referencd but not defined in the file '{1}'", dep.Name, package.FilePath));
|
||||
throw new ArgumentException(string.Format("'{0}' is not referencd but not defined in the file '{1}'", dep.Name, package.FilePath));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "Microsoft.PackageManagement.PackageSourceListProvider",
|
||||
"version": "1.0.0-*",
|
||||
"authors": [ "quoct" ],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*",
|
||||
"Microsoft.PackageManagement": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
},
|
||||
"buildOptions": {
|
||||
"compile": {
|
||||
"include": [
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Extensions/*.cs",
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Utility/*.cs",
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Version/*.cs"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"netstandard1.5": {
|
||||
"imports": ["dnxcore50"],
|
||||
"buildOptions": {
|
||||
"define": ["CORECLR"],
|
||||
"compile": {
|
||||
"include": [
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Extensions/*.cs",
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Utility/*.cs",
|
||||
"../Microsoft.PackageManagement/Providers/Inbox/Common/Version/*.cs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"System.Linq.Parallel": "4.0.1-rc2-24027"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"name": "Microsoft.PackageManagement",
|
||||
"version": "1.0.0-*",
|
||||
"authors": [ "quoct" ],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": [ "LINUX" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
},
|
||||
"buildOptions": {
|
||||
"compile": {
|
||||
"exclude": [ "Providers/Inbox/Common/*" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"netstandard1.5": {
|
||||
"imports": [ "dnxcore50" ],
|
||||
"buildOptions": {
|
||||
"define": [ "CORECLR" ],
|
||||
"compile": {
|
||||
"exclude": [ "Providers/Inbox/Common/*" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,8 @@
|
||||
"Microsoft.PowerShell.Commands.Diagnostics": "1.0.0-*",
|
||||
"Microsoft.PowerShell.Commands.Management": "1.0.0-*",
|
||||
"Microsoft.PowerShell.Commands.Utility": "1.0.0-*",
|
||||
"Microsoft.PowerShell.LocalAccounts": "1.0.0-*"
|
||||
"Microsoft.PowerShell.LocalAccounts": "1.0.0-*",
|
||||
"Microsoft.PowerShell.PackageManagement": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"name": "Microsoft.PowerShell.PackageManagement",
|
||||
"version": "1.0.0-*",
|
||||
"authors": ["quoct"],
|
||||
|
||||
"buildOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"System.Management.Automation": "1.0.0-*",
|
||||
"Microsoft.PackageManagement": "1.0.0-*",
|
||||
"Microsoft.PackageManagement.NuGetProvider": "1.0.0-*",
|
||||
"Microsoft.PackageManagement.CoreProviders": "1.0.0-*",
|
||||
"Microsoft.PackageManagement.MetaProvider.PowerShell": "1.0.0-*",
|
||||
"Microsoft.PackageManagement.ArchiverProviders": "1.0.0-*",
|
||||
"Microsoft.PackageManagement.PackageSourceListProvider": "1.0.0-*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Xml": "",
|
||||
"System.Xml.Linq": "",
|
||||
"System.Numerics": "",
|
||||
"System.Data": "",
|
||||
"System.DirectoryServices": "",
|
||||
"System.Security": "",
|
||||
"System.Transactions": "",
|
||||
"System.Runtime.Serialization": "",
|
||||
"System.Management": "",
|
||||
"System.Configuration": "",
|
||||
"System.Configuration.Install": "",
|
||||
"System.Net": "",
|
||||
"System.Net.Http": "",
|
||||
"System.IO.Compression": "",
|
||||
"System.IO.Compression.FileSystem": ""
|
||||
},
|
||||
"dependencies": {
|
||||
"Microsoft.PackageManagement.MsiProvider": "1.0.0-*",
|
||||
"Microsoft.PackageManagement.MsuProvider": "1.0.0-*"
|
||||
}
|
||||
},
|
||||
|
||||
"netstandard1.5": {
|
||||
"imports": [ "dnxcore50" ],
|
||||
"buildOptions": {
|
||||
"define": ["CORECLR"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user