嵌入式培训WinCE开发实验5.2:命令行构建项目.pdfVIP

  • 0
  • 0
  • 约5.84千字
  • 约 7页
  • 2026-02-26 发布于四川
  • 举报

嵌入式培训WinCE开发实验5.2:命令行构建项目.pdf

Lab5.2:BuildingwiththeCommand

Line

Objectives

•LearnhowsomeofthebuildcommandsavailableintheVisualStudioIDEmap

tocommandlineactions

•CompareIDEandcommandlinebuildmechanisms

Prerequisites

•CompletedLab2.2

Estimatedtimetocompletethislab:20minutes

练习1:命令行构建项目

此练习将展示VisualStudioIDE中可用的一些构建命令如何映射到命令行操作。

所有在VisualStudioIDE中可的构建命令最终都会解析为命令行操作。您

将了解如何确定这些映射关系。

使用本课程开始时创建的MyHelloWorldApp子项目来说明一些构建命令。

➢从IDE构建MyHelloWorldApp子项目

1.MyHelloWorldApp子项目并选择构建。观察构建输出窗口。

2.观察圈出令。这是一个复合语句,由两个命令组成。首先,环境变量

WINCEREL被设置为1,然后发出构建命令。

3.在VisualStudio菜单中选择构建|目标构建设置|构建后生成运行时映像。选择此菜单项应会c

这将使其变为选中状态。

注意我们之前禁用了此选项,因为我们通常不希望在每次定向构建后都构建运行

时镜像。我们在这里启用它是为了展示其功能。

4.通过构建输出窗口并选择“清除全部”来清空构建输出窗口。

Exercise1Projectbuildincommandline

ThisexercisewilldemonstratehowsomeofthebuildcommandsavailableintheVisual

StudioIDEmaptocommandlineactions.Allofthebuildcommandsthatare

accessiblefromtheVisualStudioIDEeventuallyresolvetocommandlineactions.You

willseehowtodeterminewhatthesemappingsare.

WewillusetheMyHelloWorldAppsubprojectthatwecreatedatthebeginningofthis

coursetopointoutsomeofthebuildcommands.

➢BuildtheMyHelloWorldAppsubprojectfromtheIDE

1.RightclickontheMyHelloWorldAppsubprojectandchooseBuild.Observe

theBuildOutputwindow.

2.Observethecircledcommands.Thisisacompoundstatementthatconsistsof

twocommands.First,theenvironmentvariableWINCERELissetto1andthen

thebuildcommandisissued.

3.SelectBuild|TargetedBuildSettings|MakeRun-TimeImageAfter

BuildingontheVisualStudiomenu.Selectingthismenuitemshouldcauseitt

文档评论(0)

1亿VIP精品文档

相关文档