Skip to content

Commit 3aa42ff

Browse files
committed
Retrieve version from an assembly in intermediate directory
1 parent 8f05788 commit 3aa42ff

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/scenarios/mauiblazorios/pre.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
remove_aab_files(output_dir)
7373

7474
# Copy the MauiVersion to a file so we have it on the machine
75-
maui_version = get_version_from_dll_powershell_ios(rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/ipa/Payload/{EXENAME}.app/Microsoft.Maui.dll")
75+
maui_version = get_version_from_dll_powershell_ios(rf"./{const.APPDIR}/obj/Release/net8.0-ios/ios-arm64/linked/Microsoft.Maui.dll")
7676
version_dict = { "mauiVersion": maui_version }
7777
versions_write_json(version_dict, rf"{output_dir}/versions.json")
78-
print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/ipa/Payload/{EXENAME}.app/Microsoft.Maui.dll")
78+
print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/net8.0-ios/ios-arm64/linked/Microsoft.Maui.dll")
7979

src/scenarios/mauiios/pre.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
remove_aab_files(output_dir)
3636

3737
# Copy the MauiVersion to a file so we have it on the machine
38-
maui_version = get_version_from_dll_powershell_ios(rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/ipa/Payload/{EXENAME}.app/Microsoft.Maui.dll")
38+
maui_version = get_version_from_dll_powershell_ios(rf"./{const.APPDIR}/obj/Release/net8.0-ios/ios-arm64/linked/Microsoft.Maui.dll")
3939
version_dict = { "mauiVersion": maui_version }
4040
versions_write_json(version_dict, rf"{output_dir}/versions.json")
41-
print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/ipa/Payload/{EXENAME}.app/Microsoft.Maui.dll")
41+
print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/net8.0-ios/ios-arm64/linked/Microsoft.Maui.dll")

src/scenarios/xamarinios/pre.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
remove_aab_files(output_dir)
3636

3737
# Copy the XamarinVersion to a file so we have it on the machine
38-
xamarin_version = get_version_from_dll_powershell_ios(rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/ipa/Payload/{EXENAME}.app/Microsoft.iOS.dll")
38+
xamarin_version = get_version_from_dll_powershell_ios(rf"./{const.APPDIR}/obj/Release/net8.0-ios/ios-arm64/linked/Microsoft.iOS.dll")
3939
version_dict = { "xamarinVersion": xamarin_version }
4040
versions_write_json(version_dict, rf"{output_dir}/versions.json")
41-
print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/ipa/Payload/{EXENAME}.app/Microsoft.iOS.dll")
41+
print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/net8.0-ios/ios-arm64/linked/Microsoft.iOS.dll")

0 commit comments

Comments
 (0)