Submit Search
Upload
20131209 ms build_using_task By Anney
•
Download as PPTX, PDF
•
1 like
•
334 views
L
LearningTech
Follow
20131209 ms build_using_task By Anney
Read less
Read more
Technology
Entertainment & Humor
Report
Share
Report
Share
1 of 14
Download now
Recommended
C++中级培训胶片
C++中级培训胶片
ff1
Coding guideline
Coding guideline
斯理 衛
Ms build – inline task
Ms build – inline task
LearningTech
Knockout validation 心得分享
Knockout validation 心得分享
LearningTech
Introducción tic
Introducción tic
Karen Beltrán Quintero
Ian 2014.10.24 weekly report
Ian 2014.10.24 weekly report
LearningTech
Moq 的進階用法
Moq 的進階用法
LearningTech
AngularJS
AngularJS
LearningTech
Recommended
C++中级培训胶片
C++中级培训胶片
ff1
Coding guideline
Coding guideline
斯理 衛
Ms build – inline task
Ms build – inline task
LearningTech
Knockout validation 心得分享
Knockout validation 心得分享
LearningTech
Introducción tic
Introducción tic
Karen Beltrán Quintero
Ian 2014.10.24 weekly report
Ian 2014.10.24 weekly report
LearningTech
Moq 的進階用法
Moq 的進階用法
LearningTech
AngularJS
AngularJS
LearningTech
Ch07
Ch07
jashliao
J2ee面试知识
J2ee面试知识
yiditushe
Kissy component model
Kissy component model
yiming he
Ecma script edition5-小试
Ecma script edition5-小试
lydiafly
旺铺前端设计和实现
旺铺前端设计和实现
hua qiu
NeteaseBlog Objective-C Style Guide
NeteaseBlog Objective-C Style Guide
jenkinv
Spring入门纲要
Spring入门纲要
yiditushe
vim
vim
LearningTech
PostCss
PostCss
LearningTech
ReactJs
ReactJs
LearningTech
Docker
Docker
LearningTech
Semantic ui
Semantic ui
LearningTech
node.js errors
node.js errors
LearningTech
Process control nodejs
Process control nodejs
LearningTech
Expression tree
Expression tree
LearningTech
SQL 效能調校
SQL 效能調校
LearningTech
flexbox report
flexbox report
LearningTech
Vic weekly learning_20160504
Vic weekly learning_20160504
LearningTech
Reflection & activator
Reflection & activator
LearningTech
Peggy markdown
Peggy markdown
LearningTech
Node child process
Node child process
LearningTech
20160415ken.lee
20160415ken.lee
LearningTech
More Related Content
Similar to 20131209 ms build_using_task By Anney
Ch07
Ch07
jashliao
J2ee面试知识
J2ee面试知识
yiditushe
Kissy component model
Kissy component model
yiming he
Ecma script edition5-小试
Ecma script edition5-小试
lydiafly
旺铺前端设计和实现
旺铺前端设计和实现
hua qiu
NeteaseBlog Objective-C Style Guide
NeteaseBlog Objective-C Style Guide
jenkinv
Spring入门纲要
Spring入门纲要
yiditushe
Similar to 20131209 ms build_using_task By Anney
(7)
Ch07
Ch07
J2ee面试知识
J2ee面试知识
Kissy component model
Kissy component model
Ecma script edition5-小试
Ecma script edition5-小试
旺铺前端设计和实现
旺铺前端设计和实现
NeteaseBlog Objective-C Style Guide
NeteaseBlog Objective-C Style Guide
Spring入门纲要
Spring入门纲要
More from LearningTech
vim
vim
LearningTech
PostCss
PostCss
LearningTech
ReactJs
ReactJs
LearningTech
Docker
Docker
LearningTech
Semantic ui
Semantic ui
LearningTech
node.js errors
node.js errors
LearningTech
Process control nodejs
Process control nodejs
LearningTech
Expression tree
Expression tree
LearningTech
SQL 效能調校
SQL 效能調校
LearningTech
flexbox report
flexbox report
LearningTech
Vic weekly learning_20160504
Vic weekly learning_20160504
LearningTech
Reflection & activator
Reflection & activator
LearningTech
Peggy markdown
Peggy markdown
LearningTech
Node child process
Node child process
LearningTech
20160415ken.lee
20160415ken.lee
LearningTech
Peggy elasticsearch應用
Peggy elasticsearch應用
LearningTech
Expression tree
Expression tree
LearningTech
Vic weekly learning_20160325
Vic weekly learning_20160325
LearningTech
D3js learning tips
D3js learning tips
LearningTech
git command
git command
LearningTech
More from LearningTech
(20)
vim
vim
PostCss
PostCss
ReactJs
ReactJs
Docker
Docker
Semantic ui
Semantic ui
node.js errors
node.js errors
Process control nodejs
Process control nodejs
Expression tree
Expression tree
SQL 效能調校
SQL 效能調校
flexbox report
flexbox report
Vic weekly learning_20160504
Vic weekly learning_20160504
Reflection & activator
Reflection & activator
Peggy markdown
Peggy markdown
Node child process
Node child process
20160415ken.lee
20160415ken.lee
Peggy elasticsearch應用
Peggy elasticsearch應用
Expression tree
Expression tree
Vic weekly learning_20160325
Vic weekly learning_20160325
D3js learning tips
D3js learning tips
git command
git command
20131209 ms build_using_task By Anney
1.
MSBuild-Inline Task Anney
2.
需求說明 在 MSBuild
中想要自行撰寫程式。 Task Name 為 MyTest 參數為 P1 2 2013/12/17
3.
UsingTask Task 3 2013/12/17
4.
Example 4 2013/12/17
5.
Properties Property TaskName [require] AssemblyFile [require] 這項屬性接受完整路徑或相對路徑。 可以使用 AssemblyName 屬性來指定內嵌
TaskFactory 類別 的完整名稱,它通常位於全域組件快取 (GAC) 中。 TaskFactory 5 Description [require] 2013/12/17
6.
Child Element Element Description ParameterGroup Inline 程式中所需要的
input or output 的參數 Task Reference Using namespaces that you want to access. Code 6 specifies references to the .NET assemblies that you are using in your code. Inline 程式碼 2013/12/17
7.
ParameterGroup Properties Property Required [optional] 預設為 false ParameterType [optional] 預設為
System.String Output 7 Description [optional] 預設為 false 的選擇性屬性。若為 true,則在 從 Execute 方法傳回之前必須提供值給此參數。 2013/12/17
8.
Code Element -
Properties Property Description Language 指定用於撰寫程式碼的語言。 可接受的值為 cs (適用於 C#)、vb (適用於 Visual Basic), 和 js (適用於 JScript)。 Type • • • 8 Class,則 Code 項目會包含衍生自 ITask 介面之類別的 程式碼。 Method,則程式碼會定義 ITask 介面之 Execute 方法 的覆寫。 Fragment,則程式碼會定義 Execute 方法的內容,但 並非簽章或 return 陳述式。 2013/12/17
9.
Example 9 2013/12/17
10.
本日練習主題 Copy Target
Copy D:testMSBuildMyApp Folder to D:testMSBuildDST Task: Copy Delete Target Delete D:testMSBuildDST*.txt Task: Delete Show Target Show D:testMSBuildDST*.* Files Task: Message Clean Target Task: RemoveDir Task References http://msdn.microsoft.com/en-us/library/vstudio/7z253716.aspx 10 2013/12/17
11.
本日練習主題(2) - Incremental
請在 Copy, Del Target 上加入 Incremental build 請執行 msbuild Test.targets /t:Copy;Del;Show 2 次,結果 為何? 11 2013/12/17
12.
本日練習主題(3) - UsingTask
Taskname: MyReplaceTextTask Input Param: oldText, newText 12 2013/12/17
13.
Reference http://msdn.microsoft.com/en-us/library/dd722601.aspx 13 2013/12/17
14.
~ THE END~ 14 2013/12/17
Download now