Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e8b8b22
Removing remaining centos.7.1 RIDs
andyleejordan Jun 24, 2016
10ea173
Update to .NET Core 1.0 packages
andyleejordan Jun 24, 2016
000206a
Bump framework to netstandard1.6
andyleejordan Jun 24, 2016
3f8fecd
Port TypeCatalogGen to .NET Core
andyleejordan Jun 24, 2016
f21618f
Remove SecureString stub project
andyleejordan Jun 16, 2016
d2aef87
Depend on SecureString 4.0.0
andyleejordan Jun 16, 2016
bf6b5be
Use Microsoft.DotNet packages available on NuGet
andyleejordan Jun 27, 2016
2f303f3
Use dotnet-test-xunit package from NuGet
andyleejordan Jun 27, 2016
db60a85
Remove MyGet feeds
andyleejordan Jun 27, 2016
8be714f
Update CorePsTypeCatalog for new packages
andyleejordan Jun 27, 2016
2f892e8
Use Marshal.ZeroFreeCoTaskMemUnicode
andyleejordan Jun 27, 2016
a3a0bb9
Add NETStandard.Library to CoreCLR.Eventing
andyleejordan Jun 27, 2016
5744ca7
Exclude MMI packages from type catalog parser
andyleejordan Jun 27, 2016
36df477
Update type catalog without MMI
andyleejordan Jun 27, 2016
0bfd23c
Mimic InitializeDefaultLoadContext
andyleejordan Jun 24, 2016
1d8c44f
Remove ClrFacade.Load
andyleejordan Jun 24, 2016
7921ffb
Update TypeCatalogGen template for ALC
andyleejordan Jun 24, 2016
6a7b044
Assert basePaths was not null
andyleejordan Jun 24, 2016
49cea29
Remove TPA list work-around
andyleejordan Jun 24, 2016
76f4ce1
Debugging
andyleejordan Jun 25, 2016
87c2a70
Use Start-TypeGen to generate type catalog dynamically
andyleejordan Jun 27, 2016
f186289
WIP - dongbo/ALC
daxian-dbw Jun 28, 2016
98e124c
Minor update to make it work in 'dotnet build' scenario
daxian-dbw Jun 28, 2016
fb1790b
Update ALC to work in publish scenario
daxian-dbw Jun 28, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -916,18 +916,12 @@ function Start-TypeGen
[CmdletBinding()]
param()

if (!$IsWindows)
{
throw "Start-TypeGen is not supported on non-windows. Use src/TypeCatalogGen/build.sh instead"
}

# Add .NET CLI tools to PATH
Find-Dotnet

Push-Location "$PSScriptRoot/src/TypeCatalogParser"
try
{
dotnet restore -v Warning
dotnet run
}
finally
Expand All @@ -938,7 +932,6 @@ function Start-TypeGen
Push-Location "$PSScriptRoot/src/TypeCatalogGen"
try
{
dotnet restore -v Warning
dotnet run ../Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/CorePsTypeCatalog.cs powershell.inc
}
finally
Expand Down
4 changes: 2 additions & 2 deletions docs/cmdlet-example/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"netstandard1.3": {
"imports": [ "net40" ],
"dependencies": {
"Microsoft.NETCore": "5.0.1-rc2-24027",
"Microsoft.NETCore.Portable.Compatibility": "1.0.1-rc2-24027"
"Microsoft.NETCore": "5.0.1",
"Microsoft.NETCore.Portable.Compatibility": "1.0.1"
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
</config>
<packageSources>
<clear />
<add key="CI Builds (dotnet-core)" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="CI Builds (dotnet-cli)" value="http://myget.org/F/dotnet-cli/api/v3/index.json" />
<add key="CI Builds (NuGet)" value="https://www.myget.org/F/nugetbuild/api/v3/index.json" />
<add key="CI Builds (xUnit)" value="https://www.myget.org/F/coreclr-xunit/api/v3/index.json" />
<add key="CI Builds (aspnetcidev)" value="http://myget.org/F/aspnetcidev/api/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="appveyor-psl-windows-build" value="https://ci.appveyor.com/nuget/psl-windows-build-buunqeauqyp5" />
</packageSources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
},

"netstandard1.5": {
"netstandard1.6": {
"imports": ["dnxcore50"],
"buildOptions": {
"define": ["CORECLR"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
},

"netstandard1.5": {
"netstandard1.6": {
"imports": ["dnxcore50"],
"buildOptions": {
"define": ["CORECLR"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
},

"netstandard1.5": {
"netstandard1.6": {
"imports": ["dnxcore50"],
"buildOptions": {
"define": ["CORECLR"]
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.PackageManagement.NuGetProvider/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
},

"netstandard1.5": {
"netstandard1.6": {
"imports": ["dnxcore50"],
"buildOptions": {
"define": ["CORECLR"],
Expand All @@ -63,7 +63,7 @@
}
},
"dependencies": {
"System.Linq.Parallel": "4.0.1-rc2-24027"
"System.Linq.Parallel": "4.0.1"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}
},

"netstandard1.5": {
"netstandard1.6": {
"imports": ["dnxcore50"],
"buildOptions": {
"define": ["CORECLR"],
Expand All @@ -64,7 +64,7 @@
}
},
"dependencies": {
"System.Linq.Parallel": "4.0.1-rc2-24027"
"System.Linq.Parallel": "4.0.1"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.PackageManagement/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
},

"netstandard1.5": {
"netstandard1.6": {
"imports": [ "dnxcore50" ],
"buildOptions": {
"define": [ "CORECLR" ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ internal static string SecureStringToString(SecureString secure)
#if !CORECLR
Marshal.ZeroFreeGlobalAllocUnicode(value);
#else
SecureStringMarshal.ZeroFreeCoTaskMemUnicode(value);
Marshal.ZeroFreeCoTaskMemUnicode(value);
#endif
}
}
Expand Down Expand Up @@ -250,4 +250,4 @@ internal static HttpClient GetHttpClientHelper(string username, SecureString pas
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"System.Management.Automation": "1.0.0-*"
},
"frameworks": {
"netstandard1.5": {
"netstandard1.6": {
"imports": [
"dnxcore50"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal void Copy(SecureString source, int offset)
}
finally
{
ClrFacade.ZeroFreeCoTaskMemUnicode(plainTextString);
Marshal.ZeroFreeCoTaskMemUnicode(plainTextString);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,7 @@ private Process StartWithCreateProcess(ProcessStartInfo startinfo)
{
if (password != IntPtr.Zero)
{
ClrFacade.ZeroFreeCoTaskMemUnicode(password);
Marshal.ZeroFreeCoTaskMemUnicode(password);
}
}
}//end of if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ protected override void BeginProcessing()
{
if (IntPtr.Zero != password)
{
ClrFacade.ZeroFreeCoTaskMemUnicode(password);
Marshal.ZeroFreeCoTaskMemUnicode(password);
}

if (IntPtr.Zero != hService)
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.PowerShell.Commands.Management/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},

"frameworks": {
"netstandard1.5": {
"netstandard1.6": {
"imports": [ "dnxcore50" ],
"buildOptions": {
"define": [ "CORECLR" ],
Expand Down Expand Up @@ -45,8 +45,8 @@
}
},
"dependencies": {
"System.ServiceProcess.ServiceController": "4.1.0-rc2-24027",
"System.Net.NameResolution": "4.0.0-rc2-24027"
"System.ServiceProcess.ServiceController": "4.1.0",
"System.Net.NameResolution": "4.0.0"
}
},
"net451": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ private Assembly LoadAssemblyHelper(string assemblyName)
// First try by strong name
try
{
loadedAssembly = ClrFacade.Load(new AssemblyName(assemblyName));
loadedAssembly = Assembly.Load(new AssemblyName(assemblyName));
}
// Generates a FileNotFoundException if you can't load the strong type.
// So we'll try from the short name.
Expand Down Expand Up @@ -2050,7 +2050,7 @@ private Assembly LoadAssemblyHelper(string assemblyName)
// First try by strong name
try
{
loadedAssembly = ClrFacade.Load(assemblyName);
loadedAssembly = Assembly.Load(assemblyName);
}
// Generates a FileNotFoundException if you can't load the strong type.
// So we'll try from the short name.
Expand All @@ -2062,7 +2062,7 @@ private Assembly LoadAssemblyHelper(string assemblyName)
// Next, try an exact match
if (StrongNames.Value.ContainsKey(assemblyName))
{
return ClrFacade.Load(StrongNames.Value[assemblyName]);
return Assembly.Load(StrongNames.Value[assemblyName]);
}

// If the assembly name doesn't contain wildcards, return null. The caller generates an error here.
Expand Down Expand Up @@ -2105,7 +2105,7 @@ private Assembly LoadAssemblyHelper(string assemblyName)
return null;

// Otherwise, load the assembly.
return ClrFacade.Load(matchedStrongName);
return Assembly.Load(matchedStrongName);
}

private static ConcurrentDictionary<string, string> InitializeStrongNameDictionary()
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.PowerShell.Commands.Utility/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},

"frameworks": {
"netstandard1.5": {
"netstandard1.6": {
"buildOptions": {
"define": [ "CORECLR" ],
"compile": {
Expand Down Expand Up @@ -62,7 +62,7 @@
"dependencies": {
"Microsoft.CodeAnalysis.CSharp": "1.1.1",
"Newtonsoft.Json": "8.0.2",
"System.Diagnostics.TextWriterTraceListener": "4.0.0-rc2-24027"
"System.Diagnostics.TextWriterTraceListener": "4.0.0"
}
},
"net451": {
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.PowerShell.ConsoleHost/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
},

"frameworks": {
"netstandard1.5": {
"netstandard1.6": {
"imports": [ "dnxcore50", "portable-net45+win8" ],
"buildOptions": {
"define": [ "CORECLR", "PORTABLE" ]
},
"dependencies": {
"Newtonsoft.Json": "8.0.2",
"System.Xml.XDocument": "4.0.11-rc2-24027",
"System.IO.MemoryMappedFiles": "4.0.0-rc2-24027"
"System.Xml.XDocument": "4.0.11",
"System.IO.MemoryMappedFiles": "4.0.0"
}
},
"net451": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Runtime.CompilerServices;
using System.Reflection;
[assembly:InternalsVisibleTo("System.Management.Automation,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
[assembly:InternalsVisibleTo("powershell,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
[assembly:AssemblyFileVersionAttribute("1.0.0.0")]
[assembly:AssemblyVersion("1.0.0.0")]
Loading