WinRT library not working in Release mode
问题 I've have been trying to build a desktop application using WinRT libraries in Visual Studio 2012. The code snippet goes as follows. [STAThread] int wmain (Platform :: Array <String ^> ^ args) { wcout << L"Copyright (c) Microsoft Corporation. All rights reserved." << endl; wcout << L"FindPackages sample" << endl << endl; try { auto packageManager = ref new Windows::Management::Deployment::PackageManager(); auto packages = packageManager->FindPackages(); int packageCount = 0; std::for_each