SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 30 day free trial to unlock unlimited reading.
A (very) opinionated guide to MSBuild and Project Files
A (very) opinionated guide to MSBuild and Project Files
1.
Things (I think) you
should know
about project files and MSBuildDavid Wengier
Developer - .NET Project System
Microsoft
@davidwengier twitch.tv/davidwengier
2.
@davidwengier twitch.tv/davidwengier
What is a Project System?
Project
System
Test Explorer
MSBuild
VS API (DTE)
Debugger
Solution Explorer
Compiler
3.
@davidwengier twitch.tv/davidwengier
What is a project file?
4.
@davidwengier twitch.tv/davidwengier
A project file is an MSBuild
file.
5.
@davidwengier twitch.tv/davidwengier
Legacy vs SDK-style
19.
@davidwengier twitch.tv/davidwengier
VS Build logging
20.
@davidwengier twitch.tv/davidwengier
Imports Tree
21.
@davidwengier twitch.tv/davidwengier
In summary:
• Project files are MSBuild files
• Project files are code
• Code reuse (Import)
• Separation of concerns (Import, Include vs Update)
• Order is important
• Use /pp or /bl to see what is going on
• Stuff we didn’t cover:
• Function calls (Tasks)
• Variables (properties)
• Conditionals (condition)
22.
Thank You
@davidwengier twitch.tv/davidwengier
Editor's Notes
An MSBuild file
An MSBuild file
/clp:PerformanceSummary=true
0 likes
Be the first to like this
Views
Total views
127
On SlideShare
0
From Embeds
0
Number of Embeds
0
You have now unlocked unlimited access to 20M+ documents!
Unlimited Reading
Learn faster and smarter from top experts
Unlimited Downloading
Download to take your learnings offline and on the go
You also get free access to Scribd!
Instant access to millions of ebooks, audiobooks, magazines, podcasts and more.
Read and listen offline with any device.
Free access to premium services like Tuneln, Mubi and more.