SlideShare una empresa de Scribd logo
1 de 34
Building and testing Windows 8
Metro Style Applications using
     C++,C# and JavaScript



                                    Radu Vunvulea
                             vunvulear@gmail.com
                 http://vunvulearadu.blogspot.com
Who am I?
        {
            “name” : “Radu Vunvulea,
            “company” : “iQuest”,
            “userType” : “enthusiastic”
            “technologies” : [ “.NET”, “JS”, “Azure”, “Web”,
                “Mobile”, “SL” ],
            “w8experience” : [ “2 LoB App”, “1 Travel App”],
            “blog” : “vunvulearadu.blogspot.com”,
            “email” : ”vunvulear@gmail.com”,
            “socialMedia” :
                {
                         “twitter” : “@RaduVunvulea”,
                         “fb” : “radu.vunvulea”
                }
        }
Agenda
•   WinRT
•   Windows 8 Architecture I
•   WinMD
•   Windows 8 Architecture II
•   Windows 8 Profiles
•   Mixing Components
•   Extensibilities points
•   Unit tests
•   Windows 8 App Package
•WinRT
• WinMD
• Chakra
• Windows Kernel Service
• Windows Runtime API
•   CLR, CRT, WinJS
•WinRT
• WinMD
• Chakra
• Windows Kernel Service
• Windows Runtime API
•   CLR, CRT, WinJS
What exactly is WinRT

• WinRT – Windows Runtime
• Allow us to build app that use Windows functionalities
• We can use any kind of language (managed or not)
   •   C#
   •   C++
   •   JavaScript
   •   Visual Basic
• Language projection for any kind of language
• Expose Windows functionalities
• Native for any supported language
What exactly is WinRT

• WinRT – Windows Runtime
• Allow us to build app that use Windows functionalities
• We can use any kind of language (managed or not)
   •   C#
   •   C++
   •   JavaScript
   •   Visual Basic
• Language projection for any kind of language
• Expose Windows functionalities
• Native for any supported language
Why WinRT is good

•   We don’t need to use COM and Win32 anymore – for “Metro Apps”
•   Easy access to Windows features
•   Object lifetime management
•   Same API on different languages
•   A lot of things are supported by default, we don’t need to write
    code for that:
    •   Image capture
    •   IO access
    •   Geolocation
    •   Contracts
    •   Networking
    •   … and so on
Why WinRT is good

•   We don’t need to use COM anymore
•   Easy access to Windows features
•   Object lifetime management
•   Same API on different languages
•   A lot of things are supported by default, we don’t need to write
    code for that:
     •   Image capture
     •   IO access
     •   Geolocation
     •   Contracts
     •   Networking
     •   … and so on
What about WinMD

•   WinMD – Windows Metadata
•   Describe what a WinRT component can do
•   Separate file, not included in the WinRT file
•   Compatible metadata - .NET ECMA-355 (not IDL)
     • This is the secret which make it possible a WinRT object to be
       consumed by
          - native C++
          - managed C#
          - JavaScript using Chakra JS Engine
Windows 8 and WinRT architecture
Windows 8 and WinRT Architecture
Windows 8 and WinRT Architecture

•   Only one CLR for all application (desktop and “Metro Apps”)
•   Different instances for desktop and “Metro Apps”
•   Only one IL for all applications (desktop and “Metro Apps”)
•   Only one MSIL for all applications
•   The same .NET Framework 4.5 is used for all applications, but it used
    different profiles
     •   .NET Client Profile – desktop
     •   .NET Metro Profile – “Metro Apps”
• Framework contains rules that define what parts are available for
  each profile
Windows 8 Profiles

                   .NET




               Silverlight

                       .NET   Windows
                               Phone

                 Windows
                  8 Apps
What should I use?

• JavaScript with HTML 5 and CSS
   + Well Known
   + IndexdDB
   + Dynamic language
   - WinRT not fully available


• C# with XAML
   + Full access to WinRT + some custom libraries
   + async/await, async calls supported at language level
   + Component written for SL or WP7 can be reused
   + Well known
   - XAML can be a hell sometimes


• C++
   + Very fast
   + DirectX (games)
How to mix different components



           C#                  C++




                 Java Script
How to mix different components



           C#                  C++




                                It is not possible


                 Java Script
How to mix different components

• .WinMD describes all the public API exposed by the component
• For JavaScript, the system will manage the class instances
• We don’t need to configure the project that will generate the shared
  component

• Be aware that you cannot have/use
   • XAML controllers in a Java Script app
   • Java Script components in a XAML/C# project
        •   Even if we have a WebView, we don’t have full access


• We can have a C# component that use XAML and use it in a C++
  application that use DirectX
How to create reusable C# components

• Our class that will be exposed have to:
   • Be sealed
   • Be public
   • No virtual
   • The class should not be empty
   • The class should not be abstract
   • All the input and output of collection types need to be
     interfaces (IList)
   • Interfaces are not supported in this moment to be exposed
   • Windows.Foundation.Metadata.DefaultOverload– for overloading
How to create reusable C# components

• Asynchronous calls are supported
• An asynchronous call need to return an IAsyncOperationTReturn>
   • We can obtain it calling “AsAsyncOperation()” method.
• A Task<T> is automatically converted into Promise
• Don’t forget to named your method accordingly
• Any method that’s take longer than 50ms
Demo
What about extensibility…

• It is an important feature for LoB applications

• Dynamic components loading (reflection)
• JS loaded and compiled at runtime

• MEF (Managed Extensibility Framework)
• Prims
What about extensibility…

• It is an important feature for LoB applications

• Dynamic components loading (reflection)
• JS loaded and compiled at runtime

• MEF (Managed Extensibility Framework)
• Prims

• Non-official response
   • Wait, have patience, in 6-9 months we may have something for
     you
Demo
Unit tests
• For code written in C/C++, C# and Visual Basic we have build in
  support for unit tests
Unit tests
• For code written in C/C++, C# and Visual Basic we have build in
  support for unit tests

• What about Java Script?
  • Should we write unit tests for it?
  • Can I run unit tests from Visual Studio 2012?
  • Can I integrate Java Script unit tests to the build machine?
Unit tests
• For code written in C/C++, C# and Visual Basic we have build in
  support for unit tests

• What about Java Script?
  • Should we write unit tests for it? YES
  • Can I run unit tests from Visual Studio 2012? YES
  • Can I integrate Java Script unit tests to the build machine? YES


• There are a lot of frameworks and plugins for this:
   • Chutzpah Test Adapter for Visual Studio 2012
   • QUnit
Demo
Windows 8 App Package

• A package contains all the files that are required by our application
  to run
• An update of our app represent a new version of package that
  contains all the files (not the delta)
• Each package is sign by the author using a unique key
• A package can be created using
    •   Visual Studio
    •   MakeAppX.exe (command line)
Windows 8 App Package

• Every package contains a Package Manifest

• Package Manifest:
   • Package identity
       (package name, version, publisher, processor architecture, resource ID)
   • Package properties
       information about package
   • Capabilities
       a list of application capabilities
   • Extensions
       used to communicate with system and other application
   • Visual elements
       default tile, logo images, background color, and splash screen
Windows 8 App Package

• Each package contains a Power Shell script
• A normal user can install a package only from Marketplace
• Using a developer account any package can be installed on a
  computer (even the packages that are not signed)

• Corporate devices – Windows 8 Enterprise
   • Windows 8 App packages that can be pushed from the
     corporate network without the need to publish the application
     on the Marketplace.
Demo
THE END




                        Radu Vunvulea
                 vunvulear@gmail.com
     http://vunvulearadu.blogspot.com

Más contenido relacionado

La actualidad más candente

Kann JavaScript elegant sein?
Kann JavaScript elegant sein?Kann JavaScript elegant sein?
Kann JavaScript elegant sein?
jbandi
 

La actualidad más candente (18)

Begining Android Development
Begining Android DevelopmentBegining Android Development
Begining Android Development
 
Targeting Android with Qt
Targeting Android with QtTargeting Android with Qt
Targeting Android with Qt
 
Testing cloud and kubernetes applications - ElasTest
Testing cloud and kubernetes applications - ElasTestTesting cloud and kubernetes applications - ElasTest
Testing cloud and kubernetes applications - ElasTest
 
TypeScript Introduction
TypeScript IntroductionTypeScript Introduction
TypeScript Introduction
 
.NET Core: a new .NET Platform
.NET Core: a new .NET Platform.NET Core: a new .NET Platform
.NET Core: a new .NET Platform
 
Professional JavaScript Development (An Introduction for Java Developers)
Professional JavaScript Development (An Introduction for Java Developers)Professional JavaScript Development (An Introduction for Java Developers)
Professional JavaScript Development (An Introduction for Java Developers)
 
Microfrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased basedMicrofrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased based
 
Customize UI with Protocols
Customize UI with ProtocolsCustomize UI with Protocols
Customize UI with Protocols
 
Confessions of a java developer that fell in love with the groovy language
Confessions of a java developer that fell in love with the groovy languageConfessions of a java developer that fell in love with the groovy language
Confessions of a java developer that fell in love with the groovy language
 
Manas
ManasManas
Manas
 
Dot Net Introduction
Dot Net IntroductionDot Net Introduction
Dot Net Introduction
 
C# On The iPhone with MonoTouch at DDD8
C# On The iPhone with MonoTouch at DDD8C# On The iPhone with MonoTouch at DDD8
C# On The iPhone with MonoTouch at DDD8
 
Portable Class Library Deep Dive
Portable Class Library Deep DivePortable Class Library Deep Dive
Portable Class Library Deep Dive
 
Java & JavaScript: Best Friends?
Java & JavaScript: Best Friends?Java & JavaScript: Best Friends?
Java & JavaScript: Best Friends?
 
Kann JavaScript elegant sein?
Kann JavaScript elegant sein?Kann JavaScript elegant sein?
Kann JavaScript elegant sein?
 
How to modernise WPF and Windows Forms applications with Windows Apps SDK
How to modernise WPF and Windows Forms applications with Windows Apps SDKHow to modernise WPF and Windows Forms applications with Windows Apps SDK
How to modernise WPF and Windows Forms applications with Windows Apps SDK
 
Netbeans IDE & Platform
Netbeans IDE & PlatformNetbeans IDE & Platform
Netbeans IDE & Platform
 
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
 

Similar a Radu vunvulea building and testing windows 8 metro style applications using c++,c# and java script

Dot net Online Training | .Net Training and Placement online
Dot net Online Training | .Net Training and Placement onlineDot net Online Training | .Net Training and Placement online
Dot net Online Training | .Net Training and Placement online
Garuda Trainings
 
Windows 8 Development Stack
Windows 8 Development StackWindows 8 Development Stack
Windows 8 Development Stack
Dev2
 
.Net overviewrajnish
.Net overviewrajnish.Net overviewrajnish
.Net overviewrajnish
Rajnish Kalla
 
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxLearn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
GaytriMate
 
.Net overview
.Net overview.Net overview
.Net overview
madydud
 
Porting tometro
Porting tometroPorting tometro
Porting tometro
dogra09
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with java
ssuser471dfb
 

Similar a Radu vunvulea building and testing windows 8 metro style applications using c++,c# and java script (20)

Dot net Online Training | .Net Training and Placement online
Dot net Online Training | .Net Training and Placement onlineDot net Online Training | .Net Training and Placement online
Dot net Online Training | .Net Training and Placement online
 
Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]
 
Building apps with common code for windows 8 and windows phone 8 (WP8)
Building apps with common code for windows 8 and windows phone 8 (WP8)Building apps with common code for windows 8 and windows phone 8 (WP8)
Building apps with common code for windows 8 and windows phone 8 (WP8)
 
Developing a mobile cross-platform library
Developing a mobile cross-platform libraryDeveloping a mobile cross-platform library
Developing a mobile cross-platform library
 
My androidpresentation
My androidpresentationMy androidpresentation
My androidpresentation
 
Cross-Platform Development
Cross-Platform DevelopmentCross-Platform Development
Cross-Platform Development
 
Windows 8 Development Stack
Windows 8 Development StackWindows 8 Development Stack
Windows 8 Development Stack
 
.NET? MonoDroid Does
.NET? MonoDroid Does.NET? MonoDroid Does
.NET? MonoDroid Does
 
.Net overviewrajnish
.Net overviewrajnish.Net overviewrajnish
.Net overviewrajnish
 
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxLearn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
 
Overview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptxOverview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptx
 
.Net overview
.Net overview.Net overview
.Net overview
 
321 codeincontainer brewbox
321 codeincontainer brewbox321 codeincontainer brewbox
321 codeincontainer brewbox
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Porting tometro
Porting tometroPorting tometro
Porting tometro
 
Microsoft .Net Technology
Microsoft .Net TechnologyMicrosoft .Net Technology
Microsoft .Net Technology
 
Titanium appcelerator kickstart
Titanium appcelerator kickstartTitanium appcelerator kickstart
Titanium appcelerator kickstart
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with java
 
Android - Anroid Pproject
Android - Anroid PprojectAndroid - Anroid Pproject
Android - Anroid Pproject
 
Native App Development for iOS, Android, and Windows with Visual Studio
Native App Development for iOS, Android, and Windows with Visual StudioNative App Development for iOS, Android, and Windows with Visual Studio
Native App Development for iOS, Android, and Windows with Visual Studio
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Radu vunvulea building and testing windows 8 metro style applications using c++,c# and java script

  • 1. Building and testing Windows 8 Metro Style Applications using C++,C# and JavaScript Radu Vunvulea vunvulear@gmail.com http://vunvulearadu.blogspot.com
  • 2. Who am I? { “name” : “Radu Vunvulea, “company” : “iQuest”, “userType” : “enthusiastic” “technologies” : [ “.NET”, “JS”, “Azure”, “Web”, “Mobile”, “SL” ], “w8experience” : [ “2 LoB App”, “1 Travel App”], “blog” : “vunvulearadu.blogspot.com”, “email” : ”vunvulear@gmail.com”, “socialMedia” : { “twitter” : “@RaduVunvulea”, “fb” : “radu.vunvulea” } }
  • 3. Agenda • WinRT • Windows 8 Architecture I • WinMD • Windows 8 Architecture II • Windows 8 Profiles • Mixing Components • Extensibilities points • Unit tests • Windows 8 App Package
  • 4. •WinRT • WinMD • Chakra • Windows Kernel Service • Windows Runtime API • CLR, CRT, WinJS
  • 5. •WinRT • WinMD • Chakra • Windows Kernel Service • Windows Runtime API • CLR, CRT, WinJS
  • 6. What exactly is WinRT • WinRT – Windows Runtime • Allow us to build app that use Windows functionalities • We can use any kind of language (managed or not) • C# • C++ • JavaScript • Visual Basic • Language projection for any kind of language • Expose Windows functionalities • Native for any supported language
  • 7. What exactly is WinRT • WinRT – Windows Runtime • Allow us to build app that use Windows functionalities • We can use any kind of language (managed or not) • C# • C++ • JavaScript • Visual Basic • Language projection for any kind of language • Expose Windows functionalities • Native for any supported language
  • 8. Why WinRT is good • We don’t need to use COM and Win32 anymore – for “Metro Apps” • Easy access to Windows features • Object lifetime management • Same API on different languages • A lot of things are supported by default, we don’t need to write code for that: • Image capture • IO access • Geolocation • Contracts • Networking • … and so on
  • 9. Why WinRT is good • We don’t need to use COM anymore • Easy access to Windows features • Object lifetime management • Same API on different languages • A lot of things are supported by default, we don’t need to write code for that: • Image capture • IO access • Geolocation • Contracts • Networking • … and so on
  • 10. What about WinMD • WinMD – Windows Metadata • Describe what a WinRT component can do • Separate file, not included in the WinRT file • Compatible metadata - .NET ECMA-355 (not IDL) • This is the secret which make it possible a WinRT object to be consumed by - native C++ - managed C# - JavaScript using Chakra JS Engine
  • 11. Windows 8 and WinRT architecture
  • 12. Windows 8 and WinRT Architecture
  • 13. Windows 8 and WinRT Architecture • Only one CLR for all application (desktop and “Metro Apps”) • Different instances for desktop and “Metro Apps” • Only one IL for all applications (desktop and “Metro Apps”) • Only one MSIL for all applications • The same .NET Framework 4.5 is used for all applications, but it used different profiles • .NET Client Profile – desktop • .NET Metro Profile – “Metro Apps” • Framework contains rules that define what parts are available for each profile
  • 14. Windows 8 Profiles .NET Silverlight .NET Windows Phone Windows 8 Apps
  • 15. What should I use? • JavaScript with HTML 5 and CSS + Well Known + IndexdDB + Dynamic language - WinRT not fully available • C# with XAML + Full access to WinRT + some custom libraries + async/await, async calls supported at language level + Component written for SL or WP7 can be reused + Well known - XAML can be a hell sometimes • C++ + Very fast + DirectX (games)
  • 16. How to mix different components C# C++ Java Script
  • 17. How to mix different components C# C++ It is not possible Java Script
  • 18. How to mix different components • .WinMD describes all the public API exposed by the component • For JavaScript, the system will manage the class instances • We don’t need to configure the project that will generate the shared component • Be aware that you cannot have/use • XAML controllers in a Java Script app • Java Script components in a XAML/C# project • Even if we have a WebView, we don’t have full access • We can have a C# component that use XAML and use it in a C++ application that use DirectX
  • 19. How to create reusable C# components • Our class that will be exposed have to: • Be sealed • Be public • No virtual • The class should not be empty • The class should not be abstract • All the input and output of collection types need to be interfaces (IList) • Interfaces are not supported in this moment to be exposed • Windows.Foundation.Metadata.DefaultOverload– for overloading
  • 20. How to create reusable C# components • Asynchronous calls are supported • An asynchronous call need to return an IAsyncOperationTReturn> • We can obtain it calling “AsAsyncOperation()” method. • A Task<T> is automatically converted into Promise • Don’t forget to named your method accordingly • Any method that’s take longer than 50ms
  • 21. Demo
  • 22. What about extensibility… • It is an important feature for LoB applications • Dynamic components loading (reflection) • JS loaded and compiled at runtime • MEF (Managed Extensibility Framework) • Prims
  • 23. What about extensibility… • It is an important feature for LoB applications • Dynamic components loading (reflection) • JS loaded and compiled at runtime • MEF (Managed Extensibility Framework) • Prims • Non-official response • Wait, have patience, in 6-9 months we may have something for you
  • 24. Demo
  • 25. Unit tests • For code written in C/C++, C# and Visual Basic we have build in support for unit tests
  • 26. Unit tests • For code written in C/C++, C# and Visual Basic we have build in support for unit tests • What about Java Script? • Should we write unit tests for it? • Can I run unit tests from Visual Studio 2012? • Can I integrate Java Script unit tests to the build machine?
  • 27. Unit tests • For code written in C/C++, C# and Visual Basic we have build in support for unit tests • What about Java Script? • Should we write unit tests for it? YES • Can I run unit tests from Visual Studio 2012? YES • Can I integrate Java Script unit tests to the build machine? YES • There are a lot of frameworks and plugins for this: • Chutzpah Test Adapter for Visual Studio 2012 • QUnit
  • 28. Demo
  • 29. Windows 8 App Package • A package contains all the files that are required by our application to run • An update of our app represent a new version of package that contains all the files (not the delta) • Each package is sign by the author using a unique key • A package can be created using • Visual Studio • MakeAppX.exe (command line)
  • 30. Windows 8 App Package • Every package contains a Package Manifest • Package Manifest: • Package identity (package name, version, publisher, processor architecture, resource ID) • Package properties information about package • Capabilities a list of application capabilities • Extensions used to communicate with system and other application • Visual elements default tile, logo images, background color, and splash screen
  • 31. Windows 8 App Package • Each package contains a Power Shell script • A normal user can install a package only from Marketplace • Using a developer account any package can be installed on a computer (even the packages that are not signed) • Corporate devices – Windows 8 Enterprise • Windows 8 App packages that can be pushed from the corporate network without the need to publish the application on the Marketplace.
  • 32. Demo
  • 33.
  • 34. THE END Radu Vunvulea vunvulear@gmail.com http://vunvulearadu.blogspot.com

Notas del editor

  1. Chakra – JSEngine, communicareprincerucir, princanale, o comunicareprinenergieintreoricefel de canale
  2. Chakra – JSEngine, communicareprincerucir, princanale, o comunicareprinenergieintreoricefel de canale
  3. COM
  4. COM
  5. COM
  6. COM
  7. COM
  8. COM
  9. COM
  10. COM
  11. COM
  12. COM
  13. COM
  14. COM
  15. COM
  16. COM
  17. COM
  18. COM
  19. COM
  20. COM
  21. COM
  22. COM
  23. COM
  24. COM
  25. COM
  26. COM
  27. COM
  28. COM
  29. COM