75 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 (21)
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 (4)
144
private readonly string _projectFile = NativeMethods.
IsUnixLike
? "/src/project.proj" : @"C:\src\project.proj";
145
private readonly string _projectFile2 = NativeMethods.
IsUnixLike
? "/src/project2.proj" : @"C:\src\project2.proj";
146
private readonly string _projectFileWithNonAnsiSymbols = NativeMethods.
IsUnixLike
? "/src/проектТерминал/㐇𠁠𪨰𫠊𫦠𮚮⿕.proj" : @"C:\src\проектТерминал\㐇𠁠𪨰𫠊𫦠𮚮⿕.proj";
1147
string metaprojFile = NativeMethods.
IsUnixLike
? "/src/solution.sln.metaproj" : @"C:\src\solution.sln.metaproj";
Utilities_Tests.cs (1)
84
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)
843
return IsOSX ? "osx" :
IsUnixLike
? "unix" : "windows";
1073
if (
IsUnixLike
)
1385
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)
1873
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)
1815
string invalidFile = NativeMethodsShared.
IsUnixLike
? Path.Combine(temp, "!@#$%^&*()|") : "!@#$%^&*()|";
1847
Assert.False(NativeMethodsShared.
IsUnixLike
? !success : success);
1853
if (NativeMethodsShared.
IsUnixLike
)
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
655
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
1134
_pathToTool = NativeMethodsShared.
IsUnixLike
1178
return NativeMethodsShared.
IsUnixLike
1297
string projectDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1301
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1317
string projectDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1325
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1341
string projectDir = NativeMethodsShared.
IsUnixLike
? "/projects/myapp" : @"C:\Projects\MyApp";
1345
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1362
string projectDir = NativeMethodsShared.
IsUnixLike
? "/projects/myapp" : @"C:\Projects\MyApp";
1363
string overrideDir = NativeMethodsShared.
IsUnixLike
? "/custom/workdir" : @"D:\Custom\WorkDir";
1367
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1383
string expectedWorkingDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1392
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1415
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1436
string projectDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1440
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1469
string fullToolName = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1495
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1514
string projectDir = NativeMethodsShared.
IsUnixLike
? "/tmp" : @"C:\SomeProjectDir";
1518
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
1541
string toolPath = NativeMethodsShared.
IsUnixLike
? "/bin/sh" : @"C:\Windows\System32\cmd.exe";
MSBuild (1)
NamedPipeUtil.cs (1)
26
if (NativeMethodsShared.
IsUnixLike
)