13
Wed, Nov
5 New Articles

New Developer-Centric Tools in MS Visual Studio 2011 and .NET 4.5

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

It's that time again! Microsoft has a new version of the .NET framework and Visual Studio. In this article, the most promising features and tools of Visual Studio 2011 are described.

 

In September, the good folks at Microsoft released an evaluation version of Visual Studio 2011, called Visual Studio 11 Developer Preview, together with .NET Framework 4.5. It appears that this release of Microsoft's flagship development environment is moving toward a somewhat revised and smarter model. The recently released VS platform indicates Microsoft has plans to provide Windows applications that are more touch-centric, intuitive, and device-aware.

 

In a nutshell, this release provides some slick new programming models, such as MVC 4 (to create Metro Style apps), and comprehensive support for asynchronous data and program operations, plus intriguing new development tools, such as an all-JavaScript project template.

 

Deployment of applications is being given a more contemporary model in which applications can be downloaded, installed, executed, and uninstalled without unalterable changes to the operating system. Further, we should not be surprised to be shopping for mainstream applications for various devices at the Windows App Store before long.

 

Not all is rosy, however. One minor criticism can be leveled against the bloated Visual Studio development environment: it's the IDE that can't say "no." Performance is sluggish within the development environment itself. This isn't exactly new with VS 2011, but it's certainly more acute. But that's a small matter; just buy more-powerful development computers, right?

Engineered Development Cycle and VS Languages

Microsoft has furthered its cradle-to-grave approach to application development, where the entire software lifecycle is modeled to assist with…

  • Application architecture
  • User interface design
  • Code development
  • Code insight and development
  • Testing and validation
  • Packaging and deployment

 

Visual Studio has included a source code management system through the Team Foundation Server, and this release has been enhanced to provide improved support for version control and compatibility with previous .NET releases.

 

As with prior versions of VS, we have our choice of a development language, but the most significant new feature in VS 11 language options may be support for a JavaScript-only project—a promising and convenient approach to developing traditional client applications on a device-independent platform. In actual practice, supported Visual Studio languages include these:

  • JavaScript with HTML5 and CSS3
  • C#
  • Visual Basic (VB)
  • C++

(Note: C#, VB, and C++ are all engineered for Windows 8's XAML paradigm.)

New Features in Visual Studio 2011

Although Microsoft is not making hard-and-fast promises for the final release of Visual Studio 2011, the more interesting new features in the Developer's Preview currently include the following:

 

Support for Metro Style Applications

Visual Studio has made it easier to develop applications that are touch-controlled, can support a split or filled view, and are device-aware—that is, apps that resemble how other popular devices operate, like Android or iPhone. (Note that Metro Style apps require underlying support provided by Windows 8.) More on Metro Style apps later.

 

Game Development 

Microsoft has added new tools to Visual Studio to help game developers become more innovative and productive. VS 11 includes tools for editing, visual design, and visual debugging of 2D and 3D games and Metro Style applications. Visual Studio Graphics includes tools for performing these tasks:

 

  • Viewing and basic editing of 3D models in Visual Studio 11
  • Viewing and editing of images and textures with support for alpha channels and transparency
  • Visually designing shader programs and effect files
  • Debugging and diagnostics of DirectX based output
  • Integrating with MS Expression Blend, developing browser-based applications to provide a more accurate rendering during user interface design

 

See MSDN page "Enhancements for Game Development" for screen shots and examples.

 

Source Code Analysis for Refactoring

You can use the Code-Clone Analysis tool in VS 11 to intelligently examine your source code, looking for duplicated logic and refactoring this code into one or more methods. MSDN explains: "The tool does this very intelligently; it does not just search for identical blocks of code; rather it searches for semantically similar constructs using heuristics developed by Microsoft Research."

 

Code Review Workflow with Team Explorer

This tool facilitates ad hoc code review and task assignments for multiple-developer projects through integration with MS Team Foundation Server.

 

Exploratory Testing and Enhanced Unit Testing

This tool allows agile unit testing and logging to be added to a project without requiring formal test cases or test suites.

New for C# and Visual Basic

MS offers some new stuff for C# and VB programmers too.

 

New C# and VB Keywords

Code for async processing is now generated by the compiler with new keywords "async" and "await."

 

New VB Features (Previously Implemented in C#)

VB now supports iterators, call hierarchy display in IDE (shows method calls and overrides,) and a global namespace.

 

New for .NET Framework 4.5

Several new or enhanced features are incorporated into the .NET 4.5 framework.

 

Culture and Localization Support

New features include built-in mechanisms for language support and for proper date, time, currency, and number formatting.

 

Custom Reflection

This new feature allows use of a customized reflection context to override default reflection behavior using an instance of the CustomReflectionContext class.

 

Enhancements to Managed Extensibility Framework (MEF)

MEF is used in large applications to assist with component coupling and code reuse. Improvements within the MEF library allow generic typing and new name-based conventions as a programming model.

 

Asynchronous File I/O for C# and VB

This task-based model allows for performing file operations asynchronously.

 

New for ASP .NET

ASP .NET was also a recipient of some upgrades.

 

Better Support for HTML5 and CSS3

Although limited support for HTML5 was made available for VS2010 under Service Pack 1, VS 2011 more fully implements basic functional fixes for HTML5 editing and support for CSS3 intellisense.

 

Control-to-Data Binding

This enhanced model enables converting to and from .NET framework types.

 

Improved Web Application Performance and Support

Other new or enhanced Web programming support includes better performance for client-side JavaScript, support for WebSocket protocol, support for reading and writing HTTP requests asynchronously and for async modules and handlers, and improvements in IPV6 support.

 

MVC 4  

Model View Controller (MVC) is a structured architecture for building versatile and scalable ASP.NET applications using well-established design patterns. MVC 4 extends the features, mostly to accommodate mobile computing devices.

New for Windows Presentation Foundation (WPF)

WPF also benefitted from some upgrades.

 

Ribbon Control

The quick-access toolbar includes a menu and tabs.

 

Interface Improvements

New features offer support for live shaping (a means of sorting and updating a displayed collection of data without an additional server call) and better control repositioning.

 

Data Binding

WPF now offers binding to static properties and custom objects, a disconnect detection feature, and the ability to force a physical write to a data source based on elapsed time.

 

Event Handling

Improved support for weak event design pattern implementation is new in WPF.

New for Windows Communication Foundation (WCF)

 

Improvements in Communications

New WCF features include simplified configuration of communication objects, better compatibility, and new support for asynchronous data streaming.

Metro Style Applications

Of particular interest and an enabler of future directions for Microsoft development strategies is VS 2011's support for Metro Style applications. Metro apps are about the experience. They provide a full-screen view where even the operating system ducks out of the way, plus a smaller "snapped" view for multi-tasking and switching between active applications.

 

Metro app developers are assisted in making their programs more intuitive and responsive to users' needs. Apps should be attractive and engaging, with "tiles" that draw the user in and encourage them to revisit the app in the future.

 

Metro apps are also designed to be touch-responsive and able to react to different device form factors. Some Metro apps will be able to share content with other devices and to access social networking resources. The enterprising Microsoft developer would do well to explore this new approach to Windows programming.

Some Visual Studio 2011 Web Sites

Please see the following for more information:

Chris Peters has 32 years of experience with IBM midrange and PC platforms. Chris is president of Evergreen Interactive Systems, a software development firm and creators of the iSeries Report Downloader. Chris is the author of i5/OS and Microsoft Office Integration Handbook, AS/400 TCP/IP Handbook, AS/400 Client/Server Programming with Visual Basic, and Peer Networking on the AS/400. He is also a nationally recognized seminar instructor and a lecturer in the Computer Science department at Eastern Washington University. Chris can be reached at This email address is being protected from spambots. You need JavaScript enabled to view it..


MC Press books written by Chris Peters available now on the MC Press Bookstore.

i5/OS and Microsoft Office Integration Handbook i5/OS and Microsoft Office Integration Handbook
Harness the power of Office while exploiting the i5/iSeries database.
List Price $79.95

Now On Sale

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: