[fix] 修复??=语法在2019下编译出错的bug

main
walon 2022-11-30 09:21:25 +08:00
parent 93f855f8ae
commit b066cc50fa
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ namespace HybridCLR.Editor.Installer
{
private string _hybridclrLocalVersion;
public string HybridclrLocalVersion => _hybridclrLocalVersion ??= GetHybridCLRLocalVersion();
public string HybridclrLocalVersion => _hybridclrLocalVersion != null ? _hybridclrLocalVersion : _hybridclrLocalVersion = GetHybridCLRLocalVersion();
private string GetHybridCLRLocalVersion()
{
@ -31,7 +31,7 @@ namespace HybridCLR.Editor.Installer
private string _il2cppPlusLocalVersion;
public string Il2cppPlusLocalVersion => _il2cppPlusLocalVersion ??= GetIl2cppPlusLocalVersion();
public string Il2cppPlusLocalVersion => _il2cppPlusLocalVersion != null ? _il2cppPlusLocalVersion : _il2cppPlusLocalVersion = GetIl2cppPlusLocalVersion();
private string GetIl2cppPlusLocalVersion()
{

View File

@ -1,6 +1,6 @@
{
"name": "com.focus-creative-games.hybridclr_unity",
"version": "1.1.1",
"version": "1.1.2",
"displayName": "HybridCLR",
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
"category": "Runtime",