Exemple #1
0
 private static IFileSystem GetFileSystem()
 {
     if (NativeMethodsShared.IsWindows)
     {
         return(MSBuildOnWindowsFileSystem.Singleton());
     }
     else
     {
         return(ManagedFileSystem.Singleton());
     }
 }
Exemple #2
0
        private static IFileSystem GetFileSystem()
        {
#if CLR2COMPATIBILITY
            return(MSBuildTaskHostFileSystem.Singleton());
#else
            if (NativeMethodsShared.IsWindows)
            {
                return(MSBuildOnWindowsFileSystem.Singleton());
            }
            else
            {
                return(ManagedFileSystem.Singleton());
            }
#endif
        }