internal static string GetPlatformAssemblyPath(WSASDK wsaSDK) { string windowsKitDirectory = MicrosoftCSharpCompiler.GetWindowsKitDirectory(wsaSDK); string result; if (wsaSDK == WSASDK.UWP) { string text = Paths.Combine(new string[] { windowsKitDirectory, "UnionMetadata", UWPReferences.SdkVersionToString(UWPReferences.GetDesiredSDKVersion()), "Facade", "Windows.winmd" }); if (!File.Exists(text)) { text = Path.Combine(windowsKitDirectory, "UnionMetadata\\Facade\\Windows.winmd"); } result = text; } else { result = Path.Combine(windowsKitDirectory, "References\\CommonConfiguration\\Neutral\\Windows.winmd"); } return(result); }
internal static string[] GetAdditionalReferences(WSASDK wsaSDK) { if (wsaSDK != WSASDK.UWP) { return(null); } return(UWPReferences.GetReferences(UWPReferences.GetDesiredSDKVersion())); }
internal static string[] GetAdditionalReferences(WSASDK wsaSDK) { string[] result; if (wsaSDK != WSASDK.UWP) { result = null; } else { result = UWPReferences.GetReferences(UWPReferences.GetDesiredSDKVersion()); } return(result); }