版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、微软 Visual Studio1 微软 Visual StudioVisual Studio是微软公司推出的开发环境,Visual Studio可以用来创建 Windows平台下的Windows应用程序和网络应用程序,也可以用来创建网络服务、智能设备应用程序和Office插件。Visual Studio是一个来自微软的集成开发环境IDE,它可以用来开发由微软视窗,视窗手机,WindowsCE、.NET框架、.NET精简框架和微软的Silverlight支持的控制台和图形用户界面的应用程序以及 Windows窗体应用程序,网站, Web应用程序和网络服务中的本地代码连同托管代码。Visual
2、Studio包含一个由智能感知和代码重构支持的代码编辑器。集成的调试工作既作为一个源 代码级调试器又可以作为一台机器级调试器。其他内置工具包括一个窗体设计的GUI应用程序,网页设计师,类设计师,数据库架构设计师。它有几乎各个层面的插件增强功能,包括增加对支持源代码 控制系统(如Subversion和Visual SourceSafe)并添加新的工具集设计和可视化编辑器,如特定于域 的语言或用于其他方面的软件开发生命周期的工具(例如Team Foundation Server的客户端:团队资源管理器)。Visual Studio支持不同的编程语言的服务方式的语言,它允许代码编辑器和调试器(在不同
3、程度 上)支持几乎所有的编程语言,提供了一个语言特定服务的存在。内置的语言中包括 C/C + +中(通过Visual C+),VB.NET (通过 Visual Basic.NET),C# 中(通过 Visual C #)和 F# (作为 Visual Studio 2010),为支持其他语言,如M,Python,和Ruby等,可通过安装单独的语言服务。它也支持的XML/XSLT,HTML/XHTML JavaScript 和CSS为特定用户提供服务的 Visual Studio也是存在的:微软 Visual Basic, Visual J #、Visual C #和 Visual C+。微软
4、提供了 直通车"的 Visual Studio 2010 组件的 Visual Basic 和 Visual C #和 Visual C + +,和 Visual Web Developer版本,不需任何费用。Visual Studio 2010、2008年和 2005专业版,以及 Visual Studio 2005的特定语言版本(Visual Basic、C+、C#、J#),通过微软的下载 DreamSpark计划,对学生 免费。2架构Visual Studio不支持任何编程语言,解决方案或工具本质。相反,它允许插入各种功能。特定的 功能是作为一个VS压缩包的代码。安装时,这个功
5、能可以从服务器得到。IDE提供三项服务:SVsSolution,它提供了能够列举的项目和解决方案;SVsUIShell,它提供了窗口和用户界面功能(包括标签,工具栏和工具窗口)和 SVsShell,它处理VS压缩包的注册。此外,IDE还可以负责协调和服 务之间实现通信。所有的编辑器,设计器,项目类型和其他工具都是VS压缩包存在。Visual Studio使用COM访问VSPackaga在Visual Studio SDK中还包括了管理软件包框架(MPF),这是一套管理 的允许在写的CLI兼容的语言的任何围绕 COM的接口。然而,MPF并不提供所有的Visual Studio COM 功能。通过
6、使用特定的VSPackage来支持的编程语言的服务,称为语言服务。一个语言服务定义了各种 接口,而这些VSPackage实现包可以实现添加功能支持多种。功能性的方式,可以添加包括语法着色,语句完成,括号匹配,参数信息工具提示,成员名单和背景汇编的错误标记。如果接口完成,那么语 言就可以使用这些功能。语言服务要在每个语言的基础实施。重用代码的实现可以从语言解析器实现。语言服务可以在本机代码或托管代码实现。对于本机代码,无论是本地COM接口或巴贝尔框架(部分Visual Studio SDK )都可以使用。对于托管代码,MPF服务,包括托管语言编写包装。Visual Studio不包括任何源头控制
7、内建支援,但它定义了两种可供选择的源代码控制系统的方法 可以用IDE集成。一个源代码控制VSPackage可以提供自己的定制的用户界面。与此相反,源代码管 理插件使用MSSCCI( Microsoft源代码控制接口)提供了一个功能集的控制功能,用于落实各项源接 口,用标准的Visual Studio用户界面。MSSCCI首次使用集成的 Visual SourceSafe 6.0,但后来在 Visual Studio SDK 中通过。Visual Studio.NET 2002 使用 MSSCCI 1.1,Visual Studio.NET 2003 使用 MSSCCI 1.2。Visual S
8、tudio 2005、2008和2010使用MSSCCI 1.3版,增加了重命名和删除的支持以及异步传输。Visual Studio支持运行(每一个都有它自己的一套VSPackage)多个实例的环境。这些实例使用不同的注册表配置单元来存储它们的配置状态和区别他们的AppID (应用程序ID)。实例都是由一开始的AppID-specific.exe文件选择的 AppID,设置根并启动IDE。一个AppID的登记VSPackage中集 成了其他的VSPackage。Visual Studio的各种产品版本,是使用不同的 AppID。在Visual Studio速成 版产品都设有自己的 AppIds
9、,但标准,专业和团队套件产品共享相同的AppID。因此,人们可以安装Express版本并排侧其他版本,不同的是其他版本更新相同的安装。专业版包含标准版的超集 VSPackage和包括对其他版本中的团队套件的VSPackage超集。AppID系统由Visual Studio 2008的Visual Studio Shell 影响。3特点3.1代码编辑器Visual Studio,像任何其它的集成开发环境一样,包括一个支持语法高亮和代码自动完成的代码 编辑器,不仅变量,函数和方法,就连语言,如结构循环和查询都是使用智能感知的。在开发网站和 Web应用程序时,智能感知是由内部语言支持的,当然XML、
10、层叠样式表和JavaScript也同样支持。编 辑器中会自动弹出一个无模式列表框的代码,覆盖在上面。在Visual Studio 2008年起,它可暂时半透明地看到它阻碍了代码。代码编辑器是用于所有支持的语言。在Visual Studio代码编辑器还支持设置快捷导航代码书签,其他助航设备包括折叠代码块和渐进 式搜索,还有正常的文本搜索与正则表达式(在计算机科学中,是指一个用来描述或者匹配一系列符 合某个句法规则的字符串的单个字符串。在很多文本编辑器或其他工具里,正则表达式通常被用来检 索和/或替换那些符合某个模式的文本内容)搜索。代码编辑器还包括一个多项目剪贴板和任务列表。 代码编辑器支持代码
11、片段,它保存模板重复的代码,也可以被插入到正在进行这项工作到的代码和项 目自定义中。一个代码片段管理工具也是这样建立的。这些工具是在浮动窗口显示,当这个窗口不被 使用或者停在屏幕一侧时,可以将它设置成自动隐藏。在Visual Studio代码编辑器也支持代码重构包括参数重新排序,变量和方法的重命名,界面的提取和内部成员属性的封装等等。Visual Studio提供了背景编译(也称为增量编译)。正在写的代码时,Visual Studio编译背景为了 强调它在提供反馈有关语法和编译错误,这时标有红色的波浪。警告标有绿色下划线。背景编译不生 成可执行代码,因为它需要一个不同的编译器而不是一个生成可执
12、行代码的编译器。背景资料汇编最 初是和Microsoft Visual Basic语言一起推出的,但现在它已经扩展到了所有内部语言。3.2调试器Visual Studio包含一个调试器既可以作为一个源代码级调试器工作,并作为机器级调试器工作。它可工作在托管代码以及本机代码,可用Visual Studio支持的任何语言调试应用程序。此外,它也可以附加到正在运行的进程,监测和调试这些进程。如果源代码的运行过程是可用的,它就会显示代码 的运行。如果源代码是不可用,它可以显示反汇编。Visual Studio调试器还可以创建内存转储以及负荷调试它们。多线程程序也支持。调试器可以被配置为一个应用程序,运
13、行在Visual Studio环境之外。调试器可以设置(允许执行被暂时停止的位置)和监视(用于监视变量的值执行进度)断点。断点是有条件的,这意味着他们条件满足时触发。代码可以加强,即一次只运行一条(源代码)。它可以步进它里面的功能来调试,或者步过,即执行机构的功能。也就是说,它允许代码进行编辑,因为它 的调试只有32位,不支持64位。在调试时,如果鼠标指针徘徊在任何变量,其当前值显示在工具提 示(数据提示”),如果需要的话,它也可以修改。在编码时,Visual Studio调试器让某些职能援引手动Immediate工具窗口。方法参数提供的是在立即窗口。4设计Visual Studio包括一个可
14、视化设计,以帮助开发主机的应用程序。这些工具包括:4.1 Windows窗体设计器Windows窗体设计器是用Windows窗体构建图形用户界面应用程序。它包括一个UI调色板部件和一些可以在窗体表面拖拽的控件(包括按钮,进度条,标签,布局容器和其他控制),布局可以通过控制其他容器的框架控件或锁定到窗体的一面来改变。显示数据的控件(如文本框,列表框,网格视 图等)都可以绑定到数据源,如数据库或查询。UI是用一个事件驱动的编程模型与代码关联的。设计器会生成C#或VB.NET应用程序代码。4.2 WPF设计WPF设计器,代号为Cider,用Visual Studio 2008介绍。像Windows窗
15、体设计器一样它支持拖拽。 它是用来提交用户界面对象的 Windows Presentation Foundation。它支持所有功能,包括 WPF的数据 绑定和自动布局管理。它为UI生成的XAML代码。生成的XAML文件兼容微软Expression设计,设 计者为导向的产品。XAML代码是联系在一起的代码使用代码隐藏模型。4.3网页设计师/开发Visual Studio还包括一个网站编辑器,网页设计器,允许被拖放部件。它是用于开发ASP.NET应用程序和支持 HTML , CSS和JavaScript。它使用代码隐藏模型, 连接ASP.NET代码。从Visual Studio 2008年起,设
16、计器的布局引擎所使用的网络共享与微软的 Expression Web。还有ASP.NET MVC支持 MVC的下载技术。4.4类设计器类设计器是用UML建模来编写和编辑类(包括其成员和他们的访问)。类设计器可以生成C #和 VB.NET代码。它也可以生成手写类的类图。4.5数据设计这些数据可以用来设计图形编辑数据库模式,包括类型的表,主键和外键和约束。它也可以用来 设计图形视图从查询。4.6绘图设计器从Visual Studio 2008年起,测绘设计器使用的LINQ到SQL来设计对应关系数据库模式和类封装 了数据。这种从ORM、ADO.NET实体框架新的解决方案,取代和提高了旧技术。Micr
17、osoft Visual Studio1 Microsoft Visual StudioMicrosoft Visual Studio is an integrated development environment from Microsoft. It can be used to develop con sole and graphical user in terface applicatio ns along with Win dows Forms applicati ons, web sites, web applicati ons, and web services in both
18、n ative code together with man aged code for all platforms supported by Microsoft Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact Frameworka nd Microsoft Silverlight.Visual Studio includes a code editor supporting IntelliSense as well as code refactoring. The in tegrated debugger w
19、orks both as a source-level debugger and a mach in e-level debugger. Other built-i n tools include a forms designer for building GUI applications, web designer, class designer, and database schema desig ner. It accepts plug-i ns that enhance the function ality at almost every level in clud ing add i
20、ng support for source-c on trol systems (like Subvers ion and Visual SourceSafe) and addi ng new toolsets like editors and visual designers for domain-specific Ianguages or toolsets for other aspects of the software developme nt lifecycle (like the Team Foun dati on Server clie nt: Team Explorer).Vi
21、sual Studio supports differe nt program ming Ian guages by means of Ian guage services, which allow the code editor and debugger to support (to vary ing degrees) n early any program ming Ian guage, provided a Ianguage-specific service exists. Built-in Ianguages include C/C+ (via Visual C+), VB.NET (
22、via Visual Basic .NET), C# (via Visual C#), and F# (as of Visual Studio 2010). Support for other Ianguages such as M,Pytho n, and Ruby among others is available via Ian guage services in stalled separately. It also supports XML/XSL T, HTML/XHTML, Java Scripta nd CSS. I ndividual Ian guage-specific v
23、ersi ons of Visual Studio also exist which provide more limited Ian guage services to the user: Microsoft Visual Basic, Visual J#, Visual C#, and Visual C+.Microsoft provides "Express" editions of its Visual Studio 2010 components Visual Basic, Visual C#, Visual C+, and Visual Web Develope
24、r at no cost. Visual Studio 2010, 2008 and 2005 Professional Editions, along with Ianguage-specific versions (Visual Basic, C+, C#, J#) of Visual Studio 2005 are available for free to stude nts as dow nl oads via Microsoft's Dream Spark program.2 ArchitectureVisual Studio does not support any pr
25、ogram ming Ian guage, soluti on or tool intrin sically. In stead, it allows plugging in various types of functionality. Specific functionality is coded as a VSPackage. When in stalled, the fun ctio nality is available as a Service. The IDE provides three services: SVsSoluti on, which provides the ab
26、ility to enumerate projects and solutions; SVsUIShell, which provides windowing and UI functionality (including tabs, toolbars and tool windows); and SVsShell, which deals with registration of VSPackages. In additi on, the IDE is also resp on sible for coord in ati ng and en abli ng com muni cati on
27、 betwee n services. All editors, desig ners, project types and other tools are impleme nted as VSPackages. Visual Studio uses COM to access the VSPackages. The Visual Studio SDK also in cludes the Man aged Package Framework (MPF), which is a set of man aged wrappers around the COM-i nterfaces that a
28、llow the Packages to be written in any CLI compliant Ianguage. However, MPF does not provide all the functionality exposed by the Visual Studio COM in terfaces. The services can the n be con sumed for creati on of other packages, which add fun ctio nality to the Visual Studio IDE.Support for program
29、 ming Ian guages is added by using a specific VSPackage called a Lan guage Service. A Ian guage service defi nes various in terfaces which the VSPackage impleme ntati on can impleme nt to add support for various functionalities. Functionalities that can be added this way include syntax coloring, sta
30、tement completion, brace matching, parameter information tooltips, member lists and error markers for backgro und compilati on. If the in terface is impleme nted, the fun ctio nality will be available for the Ian guage. Lan guage services are to be impleme nted on a per-la nguage basis. The impleme
31、ntati ons can reuse code from the parser or the compiler for the Ianguage. Language services can be implemented either in native code or man aged code. For n ative code, either the n ative COM in terfaces or the Babel Framework (part of Visual Studio SDK) can be used. For man aged code, the MPF in c
32、ludes wrappers for writi ng man aged Ian guage services.Visual Studio does not in clude any source con trol support built in but it defi nes two alter native ways for source control systems can integrate with the IDE. A Source Control VSPackage can provide its own customised user in terface .In con
33、trast, a source con trol plugi n using the MSSCCI (Microsoft Source Code Con trol In terface) provides a set of functions that are used to impleme nt various source con trol function ality, with a sta ndard Visual Studio user in terface. MSSCCI was first used to in tegrate Visual SourceSafe with Vis
34、ual Studio 6.0 but was later opened up via the Visual Studio SDK. Visual Studio .NET 2002 used MSSCCI 1.1, and Visual Studio .NET 2003 used MSSCCI 1.2. Visual Studio 2005, 2008 and 2010 use MSSCCI Version 1.3, which adds support for ren ame and delete propagatio n as well as asynchronous ope ning.Vi
35、sual Studio supports running multiple instances of the environment. The instances use different registry hives (see MSDN's definition of the term "registryhive" in the sense used here) to store their con figurati on state and are differe ntiated by their AppId (Applicatio n ID). The in
36、 sta nces are laun ched by an AppId-specific .exe that selects the AppId, sets the root hive and laun ches the IDE. VSPackages registered for one AppId are in tegrated with other VSPackages for that AppId. The various product editi ons of Visual Studio are created using the differe nt AppIds. The Vi
37、sual Studio Express editi on products are in stalled with their own AppIds, but the Stan dard, Professi onal and Team Suite products share the same AppId. Con seque ntly, one can in stall the Express editi ons side-by-side with other editi ons, un like the other editi ons which update the same in st
38、allati on. The professi onal editi on in cludes a superset of the VSPackages in the sta ndard editi on and the team suite in cludes a superset of the VSPackages in both other editi ons. The AppId system is leveraged by the Visual Studio Shell in Visual Studio 2008.3 Features3.1 Code editorVisual Stu
39、dio, like any other IDE, includes a code editor that supports syntax highlighting and code completi on using In telliSe nse for not only variables, functions and methods but also Ian guage con structs like loops and queries. IntelliSense is supported for the included Ianguages, as well as for XML an
40、d for Cascadi ng Style Sheets and JavaScript whendevelop ing web sites and web applicati ons. Autocomplete suggestons are popped up in a modeless list box, overlaid on top of the code editor. In Visual Studio 2008 on wards, it can be made temporarily semi-tra nspare nt to see the code obstructed by
41、it. The code editor is used for all supported Ian guages.The Visual Studio code editor also supports setting bookmarks in code for quick navigation. Other n avigati onal aids in clude collaps ing code blocks an din creme ntal search, in additi on to no rmal text search and regex search. The code edi
42、tor also in cludes a multi-item clipboard and a task list. The code editor supports code snippets, which are saved templates for repetitive code and can be inserted into code and customized for the project being worked on. A man ageme nt tool for code sn ippets is built i n as well. These tools are
43、surfaced as floating windows which can be set to automatically hide when unused or docked to the side of the screen. The Visual Studio code editor also supports code refactoring including parameter reordering, variable and method renaming ,in terface extractio n and en capsulati on of class members
44、in side properties, among others.Visual Studio features backgro und compilati on (also called in creme ntal compilati on). As code is being written, Visual Studio compiles it in the background in order to provide feedback about syntax and compilati on errors, which are flagged with a red wavy un der
45、l ine. Warnings are marked with a gree n un derl ine. Backgro und compilati on does not gen erate executable code, since it requires a differe nt compiler tha n the one used to gen erate executable code. Backgro und compilati on was in itially in troduced with Microsoft Visual Basic but has now bee
46、n expa nded for all in cluded Ian guages.3.2 DebuggerVisual Studio in cludes a debugger that works both as a source-level debugger and as a mach in e-level debugger. It works with both man aged code as well as n ative code and can be used for debuggi ng applicati ons writte n in any Ian guage suppor
47、ted by Visual Studio .In additi on, it can also attach to running processes and mon itor and debug those processes. If source code for the running process is available, it displays the code as it is being run. If source code is not available, it can show the disassembly. The Visual Studio debugger c
48、an also create memory dumps as well as load them later for debugging. Multi-threaded programs are also supported. The debugger can be con figured to be laun ched whe n an applicati on running outside the Visual Studio environment crashes.The debugger allows sett ing breakpo ints (which allow executi
49、 on to be stopped temporarily at a certa in position) and watches (which monitor the values of variables as the execution progresses). Breakpoints can be con diti on al, meaning they get triggered whe n the con diti on is met. Code can be stepped over, i.e., run one line (of source code) at a time.
50、It can either step in to fun cti ons to debug in side it, or step over it, i.e., the executi on of the fun cti on body isn't available for manual in spect ion. The debugger supports Edit and Continu e, i.e., it allows code to be edited as it is being debugged.When debugging, if the mouse pointer
51、 hovers over any variable, its curre nt value is displayed in a tooltip ("data tooltips"), where it can also be modified if desired. During coding, the Visual Studio debugger lets certain functions be invoked manually from the Immediate tool win dow. The parameters to the method are suppli
52、ed at the Immediate win dow.4 Desig nerVisual Studio in cludes a host of visual desig ners to aid in the developme nt of applicati ons. These toolsin elude:4.1 Win dows Forms Desig nerThe Win dows Forms desig ner is used to build GUI applicati ons using Win dows Forms. It in eludes a palette of UI w
53、idgets and controls (including buttons, progress bars, labels, layout containers and other con trols) that can be dragged and dropped on a form surface. Layout can be con trolled by hous ing the con trols in side other containers or lock ing them to the side of the form. Con trols that display data
54、(like textbox, list box, grid view, etc.) can be bound to data sources like databases or queries.The UI is linked with code using an eve nt-drive n program ming model. The desig ner gen erates either C# orVB.NET code for the applicati on.4.2 WPF Desig nerThe WPF desig ner, code named Cider, was in troduced with Visual Studio 2008. Like the Win dows F
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 老师好电影观后感500字汇编3篇
- 语法专题二 代词2【考点精讲精练】-2023年中考语法一点通(学生版)
- 繁星春水读后感范文
- 《技术的性质》说课稿(附教学设计)
- 2024-2025学年湖南省长沙市某中学大联考高三(上)月考数学试卷(一)(含答案)
- 山东省德州市平原县三校联考2024-2025学年四年级上学期11月期中科学试题
- 第三单元 小数的意义和性质单元测试(含答案)苏教版 五年级上册数学
- 浙江地区高考语文五年高考真题汇编作文
- 技术服务合同协议范例
- 2024年法院认可离婚协议书
- 弘扬伟大长征精神图文.ppt
- 六年级数学下册 圆锥的体积教案 西师大版 教案
- 企业质量管理体系程序文件(全套)
- 董公选择日要览[整理版]
- 师德的五项修炼(修心、修口、修眼、修耳、修身)
- 各科室廉政风险点排查表
- 天津市宝坻区土地利用总体规划(2015-2020年)
- LED路灯说明书
- [专业英语考试复习资料]专业八级分类模拟41
- 三位数加三位数(不连续进位)教学设计及说课稿
- 成立事业部合作协议书
评论
0/150
提交评论