mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Change preprocessor macro LINUX to UNIX
This commit is contained in:
1 parent
082e35e009
commit
673dd2c355
88 files changed
+168
-168
No files matched your search
@@ -477,7 +477,7 @@ namespace Microsoft.PowerShell.PackageManagement.Cmdlets {
|
||||
#region Event and telemetry stuff
|
||||
//Calling PowerShell Telemetry APIs
|
||||
protected void TraceMessage(string message, SoftwareIdentity swidObject) {
|
||||
#if !LINUX
|
||||
#if !UNIX
|
||||
TelemetryAPI.TraceMessage(message,
|
||||
new {
|
||||
PackageName = swidObject.Name,
|
||||
@@ -510,7 +510,7 @@ namespace Microsoft.PowerShell.PackageManagement.Cmdlets {
|
||||
|
||||
protected void LogEvent(EventTask task, EventId id, string context, string name, string version, string providerName, string source, string status, string destinationPath)
|
||||
{
|
||||
#if !LINUX
|
||||
#if !UNIX
|
||||
var iis = InitialSessionState.CreateDefault2();
|
||||
|
||||
using (Runspace rs = RunspaceFactory.CreateRunspace(iis))
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": ["LINUX"]
|
||||
"define": ["UNIX"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user