Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What/Why does WinRT Create New Clean Layout Randomly

So occasionally and seemingly randomly when developing WinRT apps Visual Studio goes through a lengthy process that starts with "Creating a new clean layout..." I would love more information about the build and deployment process involved with WinRT apps. I understand the concept of creating an application that runs in a sort of sandbox environment, but I'm looking for information about that sandbox environment. Also (this may sound silly) but what is different about the executable created that runs in the sandbox and why can't it be run as a standalone? Thanks for the information in advance.

I've tried to do some research about this, but there seems to be limited knowledge about this part of WinRT.

EDIT:

I'm going to start a bounty on this because I really don't understand it and Google/Microsoft are unusually barren when I search for this. So the questions to receive the bounty are:

  • What are the details around the build/deployment process of a WinRT/Windows Store app?
  • What's actually going on during the "Creating a new clean layout..." stage?
  • What is the difference between a traditional executable and a Windows 8 app that runs in a sandbox environment? How are these apps launched/managed?

Thank you in advance!!

like image 293
Will Custode Avatar asked Jun 24 '13 20:06

Will Custode


People also ask

What is WinRT used for?

C++/WinRT is an entirely standard modern C++17 language projection for Windows Runtime (WinRT) APIs, implemented as a header-file-based library, and designed to provide you with first-class access to the modern Windows API.

What is WinRT service?

WinRT allows developers to create safe "sandboxed" touchscreen applications available from the Microsoft Store. WinRT apps support both the x86 and ARM architectures and multiple programming languages, including C/C++, C#, Visual Basic and JavaScript. WinRT was augmented by the Universal Windows Platform (see UWP).

What is IInspectable?

The IInspectable interface is the root interface of every runtime class in the Windows Runtime (WinRT).

What is Microsoft desktop Windows Runtime?

Windows Runtime (WinRT) is a platform-agnostic component and application architecture first introduced in Windows 8 and Windows Server 2012 in 2012.


1 Answers

Have you looked at the Windows Dev Center for Win Store Apps? It tells you literally step-by-step what it takes to get it to market. You'll need a dev account, the Windows App Certification Kit, and their approval.

The sandbox refers to AppContainers which were integrity levels in Vista. The sandbox limits/requires explicit declaration for certain privileges.

See Security in Windows Store apps for an idea of how sand boxing/security work.

Windows 8 and RT Windows App Store dev is pretty similar. See this Windows Store app development for Windows RT PCs Whitepaper for some differences.

Hope this gets you started.

EDIT 1:

If you're interested in the MSBuild process, read "Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build" and the supplement "Supplement to Inside the Microsoft Build Engine: Using MSBuild and Team Foundation Build". Unfortunately, I don't remember RT being explicitly mentioned, but windows 8 is pretty close.

See App packages and deployment (Windows Store apps) for how apps are managed/deployed from the store (relevant MSDN post).

See also Windows Store Apps with HTML5 Refresh: (05) Packaging and Deployment.

like image 130
Eugene Avatar answered Oct 21 '22 00:10

Eugene