internal static string GetNETCoreFrameworkReferencesDirectory(WSASDK wsaSDK) { switch (wsaSDK) { case WSASDK.SDK80: { string result = MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\.NETCore\\v4.5"; return(result); } case WSASDK.SDK81: { string result = MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\.NETCore\\v4.5.1"; return(result); } case WSASDK.PhoneSDK81: { string result = MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\WindowsPhoneApp\\v8.1"; return(result); } case WSASDK.UWP: { string result = null; return(result); } } throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); }
internal static string GetNETCoreFrameworkReferencesDirectory(WSASDK wsaSDK) { string result; if (MicrosoftCSharpCompiler.GetCurrentScriptingBackend() != ScriptingImplementation.IL2CPP) { switch (wsaSDK) { case WSASDK.SDK80: result = MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\.NETCore\\v4.5"; return(result); case WSASDK.SDK81: result = MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\.NETCore\\v4.5.1"; return(result); case WSASDK.PhoneSDK81: result = MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\WindowsPhoneApp\\v8.1"; return(result); case WSASDK.UWP: result = null; return(result); } throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); } result = BuildPipeline.GetMonoLibDirectory(BuildTarget.WSAPlayer); return(result); }
protected static string GetPlatformAssemblyPath(WSASDK wsaSDK) { string text; string path; switch (wsaSDK) { case WSASDK.SDK80: text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.0", "InstallationFolder"); path = "Windows Kits\\8.0"; break; case WSASDK.SDK81: text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.1", "InstallationFolder"); path = "Windows Kits\\8.1"; break; case WSASDK.PhoneSDK81: text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\WindowsPhoneApp\\v8.1", "InstallationFolder"); path = "Windows Phone Kits\\8.1"; break; default: throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); } if (text == null) { string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); text = Path.Combine(folderPath, path); } return(Path.Combine(text, "References\\CommonConfiguration\\Neutral\\Windows.winmd")); }
internal static string GetNETCoreFrameworkReferencesDirectory(WSASDK wsaSDK) { switch (wsaSDK) { case WSASDK.SDK80: return MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\.NETCore\\v4.5"; case WSASDK.SDK81: return MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\.NETCore\\v4.5.1"; case WSASDK.PhoneSDK81: return MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\WindowsPhoneApp\\v8.1"; default: throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); } }
internal static string GetNETCoreFrameworkReferencesDirectory(WSASDK wsaSDK) { switch (wsaSDK) { case WSASDK.SDK80: return(ProgramFilesDirectory + @"\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5"); case WSASDK.SDK81: return(ProgramFilesDirectory + @"\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5.1"); case WSASDK.PhoneSDK81: return(ProgramFilesDirectory + @"\Reference Assemblies\Microsoft\Framework\WindowsPhoneApp\v8.1"); } throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); }
internal static string GetNETCoreFrameworkReferencesDirectory(WSASDK wsaSDK) { if (MicrosoftCSharpCompiler.GetCurrentScriptingBackend() == ScriptingImplementation.IL2CPP) return BuildPipeline.GetMonoLibDirectory(BuildTarget.WSAPlayer); switch (wsaSDK) { case WSASDK.SDK80: return MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\.NETCore\\v4.5"; case WSASDK.SDK81: return MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\.NETCore\\v4.5.1"; case WSASDK.PhoneSDK81: return MicrosoftCSharpCompiler.ProgramFilesDirectory + "\\Reference Assemblies\\Microsoft\\Framework\\WindowsPhoneApp\\v8.1"; case WSASDK.UWP: return (string) null; default: throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); } }
internal static string GetWindowsKitDirectory(WSASDK wsaSDK) { string text; switch (wsaSDK) { case WSASDK.SDK80: { text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.0", "InstallationFolder", null); string path = "Windows Kits\\8.0"; goto IL_AD; } case WSASDK.SDK81: { text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.1", "InstallationFolder", null); string path = "Windows Kits\\8.1"; goto IL_AD; } case WSASDK.PhoneSDK81: { text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\WindowsPhoneApp\\v8.1", "InstallationFolder", null); string path = "Windows Phone Kits\\8.1"; goto IL_AD; } case WSASDK.UWP: { text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v10.0", "InstallationFolder", null); string path = "Windows Kits\\10.0"; goto IL_AD; } } throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); IL_AD: if (text == null) { string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); string path; text = Path.Combine(folderPath, path); } return(text); }
internal static string GetAssemblyCSharpFirstpassDllDir(WSASDK sdk) { string str = Path.Combine("$(UnityWSASolutionDir)GeneratedProjects", EditorUserBuildSettings.wsaSDK.ToString()); switch (sdk) { case WSASDK.SDK81: return(Path.Combine(str, @"Assembly-CSharp-firstpass\bin\Store 8.1\$(PlatformName)\$(ConfigurationName)")); case WSASDK.PhoneSDK81: return(Path.Combine(str, @"Assembly-CSharp-firstpass\bin\Phone 8.1\$(PlatformName)\$(ConfigurationName)")); case WSASDK.UniversalSDK81: throw new Exception("Cannot get Assembly-CSharp-firstpass.dll path for UniversalSDK81"); case WSASDK.UWP: return(Path.Combine(str, @"Assembly-CSharp-firstpass\bin\$(PlatformName)\$(ConfigurationName)")); } throw new Exception("Unknown Windows SDK: " + sdk.ToString()); }
protected static string GetPlatformAssemblyPath(WSASDK wsaSDK) { string str; string str2; switch (wsaSDK) { case WSASDK.SDK80: str2 = RegistryUtil.GetRegistryStringValue32(@"SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0", "InstallationFolder"); str = @"Windows Kits\8.0"; break; case WSASDK.SDK81: str2 = RegistryUtil.GetRegistryStringValue32(@"SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1", "InstallationFolder"); str = @"Windows Kits\8.1"; break; case WSASDK.PhoneSDK81: str2 = RegistryUtil.GetRegistryStringValue32(@"SOFTWARE\Microsoft\Microsoft SDKs\WindowsPhoneApp\v8.1", "InstallationFolder"); str = @"Windows Phone Kits\8.1"; break; case WSASDK.UWP: str2 = RegistryUtil.GetRegistryStringValue32(@"SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0", "InstallationFolder"); str = @"Windows Kits\10.0"; break; default: throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); } if (str2 == null) { str2 = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), str); } if (wsaSDK == WSASDK.UWP) { return(Path.Combine(str2, @"UnionMetadata\Windows.winmd")); } return(Path.Combine(str2, @"References\CommonConfiguration\Neutral\Windows.winmd")); }
internal static string GetNETCoreFrameworkReferencesDirectory(WSASDK wsaSDK) { if (GetCurrentScriptingBackend() == ScriptingImplementation.IL2CPP) { return(BuildPipeline.GetMonoLibDirectory(BuildTarget.WSAPlayer)); } switch (wsaSDK) { case WSASDK.SDK80: return(ProgramFilesDirectory + @"\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5"); case WSASDK.SDK81: return(ProgramFilesDirectory + @"\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5.1"); case WSASDK.PhoneSDK81: return(ProgramFilesDirectory + @"\Reference Assemblies\Microsoft\Framework\WindowsPhoneApp\v8.1"); case WSASDK.UWP: return(null); } throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); }
internal static string GetWindowsKitDirectory(WSASDK wsaSDK) { string str; string path2; switch (wsaSDK) { case WSASDK.SDK80: str = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.0", "InstallationFolder", (string)null); path2 = "Windows Kits\\8.0"; break; case WSASDK.SDK81: str = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.1", "InstallationFolder", (string)null); path2 = "Windows Kits\\8.1"; break; case WSASDK.PhoneSDK81: str = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\WindowsPhoneApp\\v8.1", "InstallationFolder", (string)null); path2 = "Windows Phone Kits\\8.1"; break; case WSASDK.UWP: str = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v10.0", "InstallationFolder", (string)null); path2 = "Windows Kits\\10.0"; break; default: throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); } if (str == null) { str = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), path2); } return(str); }
internal static string GetWindowsKitDirectory(WSASDK wsaSDK) { string str; string path2; switch (wsaSDK) { case WSASDK.SDK80: str = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.0", "InstallationFolder", (string) null); path2 = "Windows Kits\\8.0"; break; case WSASDK.SDK81: str = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.1", "InstallationFolder", (string) null); path2 = "Windows Kits\\8.1"; break; case WSASDK.PhoneSDK81: str = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\WindowsPhoneApp\\v8.1", "InstallationFolder", (string) null); path2 = "Windows Phone Kits\\8.1"; break; case WSASDK.UWP: str = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v10.0", "InstallationFolder", (string) null); path2 = "Windows Kits\\10.0"; break; default: throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); } if (str == null) str = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), path2); return str; }
protected static string GetPlatformAssemblyPath(WSASDK wsaSDK) { string text; string path; switch (wsaSDK) { case WSASDK.SDK80: text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.0", "InstallationFolder"); path = "Windows Kits\\8.0"; break; case WSASDK.SDK81: text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.1", "InstallationFolder"); path = "Windows Kits\\8.1"; break; case WSASDK.PhoneSDK81: text = RegistryUtil.GetRegistryStringValue32("SOFTWARE\\Microsoft\\Microsoft SDKs\\WindowsPhoneApp\\v8.1", "InstallationFolder"); path = "Windows Phone Kits\\8.1"; break; default: throw new Exception("Unknown Windows SDK: " + wsaSDK.ToString()); } if (text == null) { string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); text = Path.Combine(folderPath, path); } return Path.Combine(text, "References\\CommonConfiguration\\Neutral\\Windows.winmd"); }