荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Second (石开), 信区: Program
标  题: Visual Studio .NET The Future Starts Now
发信站: 荔园晨风BBS站 (Mon Jul 16 00:23:36 2001), 转信

http://msdn.microsoft.com/msdnnews/

Visual Studio .NET
The Future Starts Now

By the Visual Studio .NET Development Team
   In this issue of MSDN? News, you'll find several articles about Visual St
udio? .NET. Visual Studio .NET is now a truly integrated development environ
ment as all of the languages work within the same shell. It combines the best
elements of IDEs from individual tools (Visual Basic?, Visual C++?, and so on
) with new integrated features such as the end-to-end debugger. This article
 describes some of the new features in Visual Studio .NET that you will see
illustrated in the visual tour on pages 8 and 9. You'll also want to check o
ut the Talking To interview on page 6 where Rob Brigham, Lead Program Manage
r of Visual Basic .NET, talks about the making of Visual Studio .NET. And fo
r a fun look back to the early days of integrated development environments,
don't miss Nancy Michell's Memory Bank feature on the Microsoft Programmer's
 WorkBench on page 7.

Visual Studio .NET IDE
  Start Page What better place to begin the Visual Studio .NET tour than with
the Start Page? The Start Page appears by default each time you launch Visua
l Studio and is the default Web Browser home page for the IDE. It provides a
 quick way to access new or existing projects and to customize the appearanc
e of the IDE by setting your preferences for the IDE behavior, including the
 active keyboard mapping scheme, window layout, and help filter. The Start P
age is also a central location from which you can access the latest articles
, events, and topics on MSDN Online. You'll see that a new tab on the Visual
 Studio .NET Start Page lets you choose from a list of ASP .NET Web hosters
so you can quickly deploy your Visual Studio .NET Web applications and Web S
ervices. These sites provide free Web space and are integrated with Visual S
tudio .NET to facilitate deploying completed applications through a wizard.
On the What's New tab of the Start Page, you'll see there are already hundre
ds of software component vendors, language vendors, training companies, and
other partners that have adopted and created Microsoft .NET-compliant softwa
re for extending solutions with Visual Studio .NET.

  Server Explorer Server Explorer is a new server-development console for
Visual Studio .NET. It is a shared-tool window from which you can access and
manipulate resources on any machine on which you have permissions. With Server
Explorer, you can connect to servers and view their server-based resources,
including message queues, performance counters, services, processes, event l
ogs, and database objects. You can also programmatically reference these ser
ver components and resources from your Visual Studio .NET-based applications
, either by adding a component to your project that references the resource
or by creating components that monitor the resource's activity. This include
s making data connections to SQL Server? or other databases, configuring and
 integrating Exchange 2000 Servers into an application, monitoring processes
, services, and DLLs loaded on a server, and debugging server events. Bob La
ir, software engineer for Vertigo Software, Inc. who developed the IBuySpy S
tore application says: "The way Visual Studio .NET handles data connections
and commands—the ability to drop that on the page and build the connection
string—is very sweet." Bob has written all the code to build connections an
d command objects manually. That's why he's especially interested in letting

 Visual Studio .NET do all the work.
  Macro Development Environment Visual Studio .NET comes equipped with a rich
automation object model for customizing, automating, and extending the integ
rated development environment. To best take advantage of this automation mod
el from within the IDE, Visual Studio .NET provides the Visual Studio macros
 environment. This environment allows you to rapidly customize the behavior
of Visual Studio .NET and automate repetitive processes to save time and eff
ort. Recording macros helps you learn the automation object model. You can r
un them from the Macro Explorer or the Command window, or bind them to key c
ombinations. The automation object model has also been significantly expande
d and upgraded. Using this model, you can programmatically manipulate nearly
 every element in the development environment, including projects and projec
t items, the Code Editor, and the debugging, build, and deployment tools. Th
e same automation object model is also exposed to add-in and wizard authors.

Visual Studio Macros
  Editing Features Visual Studio now has a unified code editor for all
languages in the IDE. This includes specialized features for each language.
The editor has several useful editing enhancements, such as word wrap,
incremental search, the ability to go back through a history of locations
where you were working in the editor, automatic and user-driven outlining,
line numbering, box selection, shortcuts, and color printing and color copying
to the clipboard. You can access many of these features from the Edit menu.
Another useful feature is the Clipboard Ring, which stores the last 20 items
that you have copied or cut within Visual Studio .NET and lets you rotate
through the entries in place in the text editor. Rockford Lhotka, author of
VB.NET Programming with the Public Beta (Wrox Press, 2001), says "I use the
editor features quite a lot and have come to rely on them extensively. I very
much appreciate the ability to collapse code and the fact that code which I
cut-and-paste into Word retains its colors. The auto-indenting and auto-
completion of key phrases (End If, for example) is a big time saver as well."
Dynamic Help By tracking the selections you make, the placement of the curso
r, and the items in focus within the IDE, Dynamic Help filters through topic
s available on MSDN and provides pointers to relevant information specific t
o the development task at hand. The Dynamic Help window separates the inform
ation it displays into several categories, including Help, Actions, Miscella
neous, and Samples. You have a choice of displaying the selected help inform
ation within the IDE (by default) or you can display it within a standalone
view of MSDN.

  Toolbox The enhanced Toolbox window displays a variety of items for use in
Visual Studio .NET projects, including Web Form and Windows Form controls, Ac
tiveX? controls, Web Services, HTML elements, objects, and text files. The i
tems available from this window change, depending upon which designer or edi
tor you are currently using. In addition to offering new components for Web
Forms, Windows Forms, and data development, code snippets can now be highlig
hted in the Code window and dragged onto the Toolbox for later use.

  Task List Window With the Visual Studio .NET shared Task List, you can annot
ate your code so that when another member of the development team opens it l
ater in the development cycle, notes about the exact state of the code can b
e read quickly and easily. Comments are parsed and displayed in a tabular fo
rmat within the Task List. In addition to the default TODO comment token, yo
u can also customize which tags the Task List parses. The Task List also hel
ps you determine the status of compile and build errors and warnings. Errors
 detected automatically as you edit and compile code are also displayed here
. You can filter the task items so you view only the items in which you are
interested. Lhotka has this to say about the new Task List: "I have come to
rely on the Task List window as a key part of my programming style. The abil
ity to change some code, and immediately see a list of all the places in whi
ch that change will break other code, is incredibly productive. That helps m
e decide whether to go forward with the change, and if so, to quickly move t
hrough and fix all the affected code. I also use the TODO: comment mechanism
 frequently, stubbing out entire classes, and marking each routine with a TO
DO: so I can easily navigate back to write or finish the implementation of t
hat method."

  Class View Class View gives you a hierarchical, code-centric view of your pr
ojects, making it easier to discover and edit the structure of your code and
 the relationships between objects in it because you can navigate to the sym
bols in your solution. The symbols, which are organized by project, are disp
layed in a hierarchical tree view, indicating the containment relationships
between them. Other structural information such as base classes, interfaces,
 and overrideable methods may also appear. As you edit your code, Class View
 updates its contents automatically to reflect the changes. Lhotka has this
to say after using Class View in Visual Studio .NET: "Class View is virtuall
y indispensable. There is no real equivalent in Visual Basic 6.0, and when b
uilding object-oriented applications I navigate almost exclusively through t
he Class View. The Visual Basic 6.0 object browser was a nice first step, bu
t the Class View window is far more useful for navigating within my own code
."

  Object Browser The Object Browser allows you to examine and discover objects
 (namespaces, classes, structures, interfaces, types, enums, and so forth) a
nd their members (properties, methods, events, variables, constants, enum va
lues) from various components. These components can be projects in your solu
tion, referenced components within those projects, and external components.
When you browse a component, its objects appear in the left, or Objects pane
 of the Object Browser and the object's members appear in the right, or Memb
ers pane. When you select an object or member, information about it such as
syntax, description, and attributes is displayed in the Description pane at
the bottom of the Object Browser.

  Integrated Debugger Visual Studio .NET contains an enhanced integrated debug
ger that makes it easier to track and fix errors in your code. Cross-languag
e debugging (including cross-language call stacks) allows you to step seamle
ssly between Visual Basic, Visual C++, C#, the Managed Extensions for C++, s
cript, and SQL. You can debug applications written for the common language r
untime (CLR) as well as Win32? native applications and script, locally and r
emotely across machines. Mike Hanley, a software engineer for Vertigo Softwa
re, Inc. says "I can safely say that debugging is greatly simplified with Vi
sual Studio .NET and does not require various tricks like Visual Studio 6.0
did. It is also very nice to be able to debug the ASP code as well as the mi
ddle-tier components in one session and in one tool."

  Command Window The Command window is a combination of a command line (like a
n MSDOS prompt) and the Visual Basic Immediate window. It has two modes: Com
mand and Immediate. In Command mode, you can enter IDE command names after t
he angle bracket (>). Command names auto-complete for you like URLs do in In
ternet Explorer. For easier access to frequently used commands, you can crea
te aliases and supply commonly used switches in your alias. In Immediate mod
e, you can execute code statements, set or assign variables, evaluate expres
sions, and more.

  Optimized Screen Usage Visual Studio .NET offers a number of features that h
elp manage the screen real estate in the development environment. Document w
indows (designers, editors, files) display as Tabbed Documents by default. I
n this mode all windows are maximized and a tab for each open window is disp
layed at the top of the document area. Windows can be tiled vertically or ho
rizontally simply by dragging the window's tab to the left or bottom. Tool w
indows offer docking to the sides of the IDE as well as to each other (tab d
ocking). Additionally, tool windows can be auto-hidden—reduced to icons or
labels in a side channel of the IDE. When you're finished using the tool and
 it loses focus, it will slide away. Working with multiple monitors is made
easier, too. Tool windows can be floating, so they can be dragged outside th
e frame of the development environment into a second monitor.
Conclusion

  All these new features result is improved developer productivity. But where
do you start? Jay Schmelzer, a partner and Engagement Director for Clarity C
onsulting, Inc. says: "When you look at it for the first time, Visual Studio
 .NET can be intimidating. The introduction of the .NET Framework, the subtl
e enhancements to the Visual Studio .NET IDE, and the changes to languages l
ike Visual Basic .NET can seem overwhelming at first. Microsoft is working h
ard to put together the resources developers need to get up to speed quickly
 on the new technologies and features. The resource CDs, IBuySpy reference s
ites, and the Margie's Travel Guided Tour demo are excellent tools for learn
ing about .NET. I'm amazed at how much more efficient my project teams and I
 are in our daily development efforts." Mike Hanley has similar advice to de
velopers: "Start with gotdotnet.com; it is probably the best place to get co
de samples and allows users to view the tutorials all online."
----------------------------------------------------------------------------
----
From the July/August 2001 issue of MSDN News.

--
                            既然热爱生命
                            那么,
                            一切都在意料之中。

※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.28.190]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店