Five Steps to Add AppUp .NET SDK to Microsoft Visual Studio
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,624
On Slideshare
2,472
From Embeds
152
Number of Embeds
7

Actions

Shares
Downloads
14
Comments
0
Likes
0

Embeds 152

http://www.readwriteweb.com 143
http://www.expertulpc.com 4
http://feeds.feedburner.com 1
http://www.make100dollarstoday.com 1
http://www.hanrss.com 1
http://www.elsterama.com 1
http://www.567t.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Intel® AppUpSM developer program Part of the Intel® Software Network Originally published as a blog by Bob Duffy at : http://appdeveloper.intel.com/en-us/blog/2010/07/16/air-appup-what-developer-needs-know Five Steps to Add AppUp .NET SDK to Microsoft Visual Studio* Intel® AppUp developer program announces .NET SDK & IDE Plug-in for Microsoft Visual Studio The AppUp developer program launched support for .NET applications by releasing the .NET SDK, along with an IDE Plug-In for Visual Studio 2008. This plug-in reduces development time to integrate the AppUp SDKs and builds the MSI needed to submit your application for distribution and sales via the Intel® AppUpSM Center. The IDE Plug-in sup- ports both the C/C++ and .NET SDK for Microsoft Windows* when using Visual Studio 2008. With the .NET SDK and support now the Intel AppUpTM SDK Plug-in 1.0 for available for the Intel AppUp developer Visual Studio 2008 software installed program, here’s a brief overview of the and the Intel AppUpTM SDK code included, SDK’s technical components, along with you can test and debug your application five quick steps how to add the.NET SDK without requiring the full client or to Visual Studio 2008. With the .NET access to hardware. SDK and support now available for the Intel AppUp developer program, here’s 4. How to add the Intel AppUp .NET a brief overview of the SDK’s technical SDK in Microsoft Visual Studio 2008 components, along with five quick steps Step 1: In Visual Studio, right click on how to add the.NET SDK to Visual Studio Reference and use Add Reference 2008. from the shortcut menu to add the Download the library to the project. [FIgUrE A] AppUp .NET SDK & IDE Plugin 1. Supported languages: The SDK supports the following for Visual Studio languages and Microsoft Windows* graphical APIs: • C# for WPF (Windows Presentation Foundation) applications • C# for WinForms (Windows Forms) applications • Visual Basic for WPF applications Intel® AppUpSM developer program • Visual Basic for WinForms applications Provides developers with 2. Supported Runtimes: everything they need to create and 1. Microsoft .NET Framework 3.5 is only sell their apps to users of millions of supported. 2. Applications that target .NET frame- Intel® Atom™ processor-based devices. work 4.0 will be rejected in Validation. 3. Intel AppUp™ Software Debugger: The Intel AppUp™ Software Debugger is a utility that emulates the Application Services of the Consumer Client. With [FIgUrE A] 1
  • 2. Intel® AppUpSM developer program Part of the Intel® Software Network Step 2: Declare SDK Namespace and Sample code for Visual Basic Winforms If TypeOf ex Is AdpErrorException Then Integrate with the .NET SDK: applications: ‘ TO DO: add your logic to handle the In the declaration section at the start of Declare the SDK namespace com.intel. errors during initialization the C# source file, define com.intel.adp as adp using the Imports Statement shown MsgBox(ex.Message) a namespace. This frees you from having below. to add it as a prefix for SDK calls in your System.Environment.Exit(1) /// application. See the sample below: ElseIf TypeOf ex Is AdpWarningException Imports com.intel.adp Then /// /// ‘ TO DO: add your logic to handle the using com.intel.adp; warnings Private Sub Form1_Load(ByVal sender /// As System.Object, ByVal e As System. MsgBox(ex.Message) EventArgs) Handles MyBase.Load End If Below is the sample code for C#. Try End Try Paste in the Following code in the Dim app As New AdpApplication(New Initialization section: AdpApplicationId(&H11111111, &H11111111, End Sub try &H11111111, &H11111111)) ‘ Note: replace “&H11111111, &H11111111, Step 3: Intel Appup Software Debugger: { &H11111111, &H11111111” with the actual The Intel Appup Software Debugger is AdpApplication app = application ID only supported for Visual Studio 2008. new AdpApplication(new AdpApplicationId(0x11111111, 0x11111111, ‘ once you obtain it from Intel AppUp(SM) The Intel Appup Software Debugger al- 0x11111111, 0x11111111)); Developer Program web portal lows you to test and debug your applica- ‘ To test Expired ID, use AdpConstants. tion without requiring the full client or ac- /// Note: replace “0x11111111, 0x11111111, 0x11111111, 0x11111111” with the actual ADP_EXPIRED_APPLICATIONID cess to hardware. Below is the screenshot. application ID [FIgURE B] Catch ex As AdpException /// once you obtain it from Intel AppUp(SM) Developer Program web portal } catch (AdpException e) { if (e is AdpErrorException) { // TO DO: add your logic to handle the errors during initialization MessageBox.Show(e.Message, “Error”); System.Environment.Exit(1); } else if (e is AdpWarningException) { // TO DO: add your logic to handle the warnings MessageBox.Show(e.Message, “Warning”); } } [FIgURE B] 2
  • 3. Intel® AppUpSM developer program Part of the Intel® Software Network Click on “Start the Intel Appup Software Debugger”. You will see the below window: INTEl APPUPSM DEVEloPER PRogRAM INCENTIVES THAT MICRoSoFT .NET DEVEloPERS CAN TAKE ADVANTAgE oF: INTEl AToM DEVEloPER MIllIoN DollAR FUND Through this fund, we support software developers and companies creating new experiences through applications for Intel® Atom™ processor-based netbooks. INTEl APPUP DEVEloPER CHAllENgE The contest is designed to encourage breakthrough applications that fundamentally change the user experience on a netbook featuring an Intel Atom processor. There are cash prizes and a 2011 Chevy* Volt* to be won. Debug your application. If the Intel AppUpTM SDK code is included you will see the lEgENDS below window: Want application visibility? The Legends program is a way to share the story behind the applications. get your app in and submit your story. Become a Legend. INTEl BlACK BElT DEVEloPER SoFTWARE DEVEloPER Share your knowledge and earn recognition for your contributions. 3
  • 4. Intel® AppUpSM developer program Part of the Intel® Software Network Step 4: Replace “0x11111111, 0x11111111, 0x11111111, 0x11111111” with the actual application ID once you obtain it from Intel AppUp(SM) Developer Program web portal and recompile INTEl APPUP DEVEloPER the program. PRogRAM – gETTINg STARTED Step 5: Create an Installation Package: The getting Started guide is the Create a “silent install” .MSI package that meets the Intel AppUpSM Developer Program good place to begin. Find tools and packaging requirements. These requirements ensure that applications provide a tips to start developing. good user experience during installation and Uninstallation. For a list of packaging Developer guidelines requirements, refer to (http://appdeveloper.intel.com/en-us/article/packaging- requirements). For tips on packaging applications for Windows, refer to (http:// Validation Process appdeveloper.intel.com/en-us/article/how-creating-your-msi-instal...). You must wrap the Submitting an Application AdpLibrary.dll library file into your application installer. The installer must copy the .dll Developer Challenge file into the same folder where the application’s main executable is copied. Porting to AppUp – resources Note for VS 2010 developers: & guides Intel Appup .NET SDK is tested only against Visual Studio 2008. However, if you are a Visual Studio 2010 developer you need to make sure your target .NET frame work is set to 3.5. Below are the steps 1. Change the .NET Target Framework from 4.0 to 3.5 Changing Target .NET Framework for C#: [FIgUrE E] A. On the Project menu, click ProjectName Properties. B. Click the Application tab. C. In the Target Framework list, select .NET Framework 3.5. Changing Target .NET Framework for VB [FIgUrE F] A. On the Project menu, click ProjectName Properties. B. Click the Compile tab. C. Click Advanced Compile Options. D. In the Target Framework (all configurations) list, select .NET Framework 3.5. 4
  • 5. Intel® AppUpSM developer program Part of the Intel® Software Network lEARN MoRE ABoUT DEVEloPER ToolS AND RESoURCES AT: Intel® Software Dispatch – Delivering the latest advances in software technologies, de- veloper tools and resources and best practices. Intel® Software Network Intel® Software Development Products More .NET SDK Resources • New AppUp Support for .NET • Download the .NET SDK • learn more about the .NET SDK for AppUp • Brian Burrows reviews the SDK & new IDE Plug-in 2. Click on Publish->Prerequisites. Make sure Microsoft .NET Framework 4.0 is un- checked. • Download the Visual Studio AppUp IDE Plug-in (.MSI file) 3. When creating the MSI using Visual Studio 2010 Setup project make sure you target to .NET framework 3.5. Right Click Setup Project->Prerequisites and uncheck Micro- • Building an MSI for AppUp soft .NET Framework 4.0 in the Prerequisites. (updated for .NET) 5
  • 6. Intel® AppUpSM developer program Part of the Intel® Software Network About the Author FPO Praveen Kundurthy Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus pellentesque consequat congue. Pellentesque ullamcorper, felis eget consectetur rutrum, quam metus vestibulum diam, a fermentum orci diam sit amet ipsum. Phasellus non lorem vitae dui vehicula interdum. Sed consequat, augue volutpat tempor blandit, tellus erat viverra lacus, ac luctus tortor augue vel neque. Nullam aliquet augue eget risus consectetur in feugiat arcu semper. Vestibulum vulputate diam id leo placerat adipiscing. Nullam posuere elementum nisl non sollicitudin. Vivamus ligula magna, dapibus id dictum nec, viverra eget urna. Nam quis consectetur quam. Nunc ac nisl at velit ornare pulvinar. Pellentesque commodo commodo erat a sodales. Nulla ac leo lorem. Quisque pretium sollicitudin velit, ac facilisis est dapibus sit amet. Morbi elementum nunc vel turpis tristique sodales. Copyright © 2010 Intel Corporation. All rights reserved. Intel® AppUpSM Developer Program | November 2010 *Other names and brands may be claimed as the property of others. Additional Notes and Known Restrictions: • As of October 2010, the submission section of the AppUp developer program site will not include a selection for .NET. You can instead select Win dows as with C/C++ submissions and include your .MSI as normal. The submission portal will be updated with a .NET option later 2010. • As of October 2010, the .NET SDK works with version 3.5 of .NET applications. Using version 4.0 may have an issue with this SDK and could fail validation. It is recommended that applications use version 3.5 to ensure application validation and a good consumer experience.