File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,12 @@ namespace Test::VersionInfo
38
38
39
39
try
40
40
{
41
+ #if defined(WINDOWSAPPRUNTIME_MICROSOFT_WINDOWS_APPLICATIONMODEL_WINDOWSAPPRUNTIME_FEATURE_VERSIONINFOAPI_ENABLED)
41
42
auto release{ winrt::Microsoft::Windows::ApplicationModel::WindowsAppRuntime::ReleaseInfo::AsString () };
42
43
VERIFY_FAIL (L" Success is not expected without Microsoft.WindowsAppRuntime.Insights.Resource.dll" );
44
+ #else
45
+ WEX::Logging::Log::Comment (WEX::Common::String (L" Feature_VersionInfoAPI is disabled. Skipping..." ));
46
+ #endif
43
47
}
44
48
catch (winrt::hresult_error& e)
45
49
{
@@ -57,8 +61,12 @@ namespace Test::VersionInfo
57
61
58
62
try
59
63
{
64
+ #if defined(WINDOWSAPPRUNTIME_MICROSOFT_WINDOWS_APPLICATIONMODEL_WINDOWSAPPRUNTIME_FEATURE_VERSIONINFOAPI_ENABLED)
60
65
auto runtime{ winrt::Microsoft::Windows::ApplicationModel::WindowsAppRuntime::RuntimeInfo::AsString () };
61
66
VERIFY_FAIL (L" Success is not expected without Microsoft.WindowsAppRuntime.Insights.Resource.dll" );
67
+ #else
68
+ WEX::Logging::Log::Comment (WEX::Common::String (L" Feature_VersionInfoAPI is disabled. Skipping..." ));
69
+ #endif
62
70
}
63
71
catch (winrt::hresult_error& e)
64
72
{
You can’t perform that action at this time.
0 commit comments