74 references to IsUnixLike
Microsoft.Build (2)
Evaluation\IntrinsicFunctions.cs (1)
588
return NativeMethodsShared.
IsUnixLike
;
NamedPipeUtil.cs (1)
26
if (NativeMethodsShared.
IsUnixLike
)
Microsoft.Build.Engine.UnitTests (20)
Definition\Toolset_Tests.cs (1)
209
if (NativeMethodsShared.
IsUnixLike
)
Evaluation\Evaluator_Tests.cs (1)
3858
if (NativeMethodsShared.
IsUnixLike
)
Evaluation\ProjectRootElementCache_Tests.cs (2)
71
string rootedPath = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
84
string projectPath = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
Evaluation\SimpleProjectRootElementCache_Tests.cs (11)
32
string projectFile = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
33
string projectFileToCache = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
46
string projectFile = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
47
string projectFileToCache = NativeMethodsShared.
IsUnixLike
? "/Foo" : "c:\\Foo";
60
string projectFile = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
61
string projectFileToCache = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
78
string projectFile = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
79
string projectFileToCache = NativeMethodsShared.
IsUnixLike
? "/Foo" : "c:\\Foo";
96
string projectFile = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
110
string projectFile = NativeMethodsShared.
IsUnixLike
? "/foo" : "c:\\foo";
111
string projectFileToCache = NativeMethodsShared.
IsUnixLike
? "/bar" : "c:\\bar";
Globbing\MSBuildGlob_Tests.cs (1)
213
if (NativeMethodsShared.
IsUnixLike
)
TerminalLogger_Tests.cs (3)
146
private readonly string _projectFile = NativeMethods.
IsUnixLike
? "/src/project.proj" : @"C:\src\project.proj";
147
private readonly string _projectFile2 = NativeMethods.
IsUnixLike
? "/src/project2.proj" : @"C:\src\project2.proj";
148
private readonly string _projectFileWithNonAnsiSymbols = NativeMethods.
IsUnixLike
? "/src/проектТерминал/㐇𠁠𪨰𫠊𫦠𮚮⿕.proj" : @"C:\src\проектТерминал\㐇𠁠𪨰𫠊𫦠𮚮⿕.proj";
Utilities_Tests.cs (1)
85
MSBuildApp.Execute([ @"c:\bin\msbuild.exe", '"' + inputFile.Path + '"', '"' + (NativeMethodsShared.
IsUnixLike
? "-pp:" : "/pp:") + outputFile.Path + '"']));
Microsoft.Build.Framework (13)
FileUtilities.cs (1)
240
=> NativeMethods.
IsUnixLike
&& path.IndexOf(WindowsDirectorySeparator) >= 0;
NativeMethods.cs (3)
831
return IsOSX ? "osx" :
IsUnixLike
? "unix" : "windows";
1061
if (
IsUnixLike
)
1373
if (
IsUnixLike
)
Utilities\FrameworkLocationHelper.cs (9)
444
return NativeMethods.
IsUnixLike
454
return NativeMethods.
IsUnixLike
464
return NativeMethods.
IsUnixLike
474
return NativeMethods.
IsUnixLike
484
return NativeMethods.
IsUnixLike
494
return NativeMethods.
IsUnixLike
504
return NativeMethods.
IsUnixLike
514
return NativeMethods.
IsUnixLike
1481
if (NativeMethods.
IsUnixLike
)
Microsoft.Build.Framework.UnitTests (1)
FileMatcher_Tests.cs (1)
1874
if (NativeMethodsShared.
IsUnixLike
)
Microsoft.Build.Tasks.Core (5)
Exec.cs (4)
74
if (NativeMethodsShared.
IsUnixLike
)
213
if (!NativeMethodsShared.
IsUnixLike
)
258
if (!NativeMethodsShared.
IsUnixLike
)
578
if (NativeMethodsShared.
IsUnixLike
)
NamedPipeUtil.cs (1)
26
if (NativeMethodsShared.
IsUnixLike
)
Microsoft.Build.Tasks.UnitTests (4)
AssignLinkMetadata_Tests.cs (1)
136
var item = GetParentedTaskItem(NativeMethodsShared.
IsUnixLike
Copy_Tests.cs (3)
1816
string invalidFile = NativeMethodsShared.
IsUnixLike
? Path.Combine(temp, "!@#$%^&*()|") : "!@#$%^&*()|";
1848
Assert.False(NativeMethodsShared.
IsUnixLike
? !success : success);
1854
if (NativeMethodsShared.
IsUnixLike
)
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
646
if (NativeMethodsShared.
IsUnixLike
)
Microsoft.Build.Utilities.UnitTests (27)
ToolTask_Tests.cs (27)
43
NativeMethodsShared.
IsUnixLike
? "/bin" : Environment.GetFolderPath(Environment.SpecialFolder.System),
44
NativeMethodsShared.
IsUnixLike
? "sh" : "cmd.exe");
168
string systemPath = NativeMethodsShared.
IsUnixLike
? "/bin" : Environment.GetFolderPath(Environment.SpecialFolder.System);
424
string systemPath = NativeMethodsShared.
IsUnixLike
? "/bin" : Environment.GetFolderPath(Environment.SpecialFolder.System);
477
string systemPath = NativeMethodsShared.
IsUnixLike
? "/bin" : Environment.GetFolderPath(Environment.SpecialFolder.System);
931
if (NativeMethodsShared.
IsUnixLike
// treat all UNIXy OSes as capable of UTF-8 everywhere
1129
_pathToShell = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : "cmd.exe";
1168
NativeMethodsShared.
IsUnixLike
?
1286
string projectDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1290
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1306
string projectDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1314
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1330
string projectDir = NativeMethodsShared.
IsUnixLike
? "/projects/myapp" : @"C:\Projects\MyApp";
1334
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1351
string projectDir = NativeMethodsShared.
IsUnixLike
? "/projects/myapp" : @"C:\Projects\MyApp";
1352
string overrideDir = NativeMethodsShared.
IsUnixLike
? "/custom/workdir" : @"D:\Custom\WorkDir";
1356
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1372
string expectedWorkingDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1381
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1404
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1425
string projectDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1429
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1458
string fullToolName = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1484
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1503
string projectDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1507
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1530
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
MSBuild (1)
NamedPipeUtil.cs (1)
26
if (NativeMethodsShared.
IsUnixLike
)