Skip to content

Commit 673dd2c

Browse files
committed
Change preprocessor macro LINUX to UNIX
1 parent 082e35e commit 673dd2c

88 files changed

Lines changed: 168 additions & 168 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Microsoft.PackageManagement.ArchiverProviders/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"configurations": {
1111
"Linux": {
1212
"buildOptions": {
13-
"define": ["LINUX"]
13+
"define": ["UNIX"]
1414
}
1515
}
1616
},

src/Microsoft.PackageManagement.CoreProviders/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"configurations": {
1111
"Linux": {
1212
"buildOptions": {
13-
"define": ["LINUX"]
13+
"define": ["UNIX"]
1414
}
1515
}
1616
},

src/Microsoft.PackageManagement.MetaProvider.PowerShell/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"configurations": {
1111
"Linux": {
1212
"buildOptions": {
13-
"define": ["LINUX"]
13+
"define": ["UNIX"]
1414
}
1515
}
1616
},

src/Microsoft.PackageManagement.MsiProvider/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"configurations": {
1111
"Linux": {
1212
"buildOptions": {
13-
"define": ["LINUX"]
13+
"define": ["UNIX"]
1414
}
1515
}
1616
},

src/Microsoft.PackageManagement.MsuProvider/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"configurations": {
1111
"Linux": {
1212
"buildOptions": {
13-
"define": ["LINUX"]
13+
"define": ["UNIX"]
1414
}
1515
}
1616
},

src/Microsoft.PackageManagement.NuGetProvider/NugetLightRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ internal string Destination {
171171
// or $env:programfiles\NuGet\Packages\ if you are an admin.
172172
try
173173
{
174-
#if LINUX
174+
#if UNIX
175175
// there is only 1 installation location by default for linux ("HOME/.local/share/powershell/PackageManagement/NuGet/Packages")
176176
string basePath = CurrentUserDefaultInstallLocation;
177177
#else
@@ -220,7 +220,7 @@ internal string CurrentUserDefaultInstallLocation
220220
get
221221
{
222222
#if CORECLR
223-
#if LINUX
223+
#if UNIX
224224
return Path.Combine(Path.GetDirectoryName(Platform.SelectProductNameForDirectory(Platform.XDG_Type.DATA)), "PackageManagement", "NuGet", "Packages");
225225
#else
226226
return Path.Combine(Environment.GetEnvironmentVariable("LocalAppData"), "PackageManagement", "NuGet", "Packages");
@@ -237,7 +237,7 @@ internal string AllUserDefaultInstallLocation
237237
get
238238
{
239239
#if CORECLR
240-
#if LINUX
240+
#if UNIX
241241
return Path.Combine(Path.GetDirectoryName(Platform.SelectProductNameForDirectory(Platform.XDG_Type.DATA)), "PackageManagement", "NuGet", "Packages");
242242
#else
243243
return Path.Combine(Environment.GetEnvironmentVariable("ProgramFiles"), "NuGet", "Packages");
@@ -1302,7 +1302,7 @@ private string ConfigurationFileLocation {
13021302
}
13031303

13041304
} else {
1305-
#if LINUX
1305+
#if UNIX
13061306
var appdataFolder = Path.GetDirectoryName(Platform.SelectProductNameForDirectory(Platform.XDG_Type.CONFIG));
13071307
#else
13081308
var appdataFolder = Environment.GetEnvironmentVariable("appdata");

src/Microsoft.PackageManagement.NuGetProvider/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"configurations": {
1111
"Linux": {
1212
"buildOptions": {
13-
"define": ["LINUX"]
13+
"define": ["UNIX"]
1414
}
1515
}
1616
},

src/Microsoft.PackageManagement.PackageSourceListProvider/Extensions/PackageListExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !LINUX
1+
#if !UNIX
22

33
// Copyright (c) .NET Foundation. All rights reserved.
44
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/ExePackageInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !LINUX
1+
#if !UNIX
22

33
//
44
// Copyright (c) Microsoft Corporation. All rights reserved.

src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/NupkgInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !LINUX
1+
#if !UNIX
22

33
//
44
// Copyright (c) Microsoft Corporation. All rights reserved.

0 commit comments

Comments
 (0)