Wednesday, January 1, 2014

C# - Project Structure and MSBuild

Project structure for MVC Application
This is a typical project structure you'll get when you create a MVC application from Visual Studio 2013.

App_Start has Configurations to initialize from Global.asax

Content has styling files and Scripts folder has all the Script files (JavaScript etc.)

Views folder has Views in MVC with a separate Web.Config file for views.

packages.config is the file for Nuget packages. see SO.

Web.config file has all configuration information about the application.

MSDN - MVC Framework and Application Structure






Project structure for Windows Forms Application


This is a sample project structure for a windows forms application (got from CodeProject). 










MSBuild (Microsoft Build Engine)

It is a build too. MSBuild does not depend on Visual Studio but Visual Studio depends on MSBuild. You can run MSBuild even from the command window.

MSBuild Project File

Is a XML file. For C# it has the extension of .csproj.

Basic elements,

Items #
Inputs into the build system, typically represents files
You can put items inside ItemGroup element

Properties #
name value pairs

Tasks

Targets

References
http://msdn.microsoft.com/en-us/library/dd393573.aspxhttp://stackoverflow.com/questions/6446361/what-does-the-csproj-file-do
http://www.asp.net/web-forms/overview/deployment/web-deployment-in-the-enterprise/understanding-the-project-file
http://www.asp.net/web-forms/overview/deployment/web-deployment-in-the-enterprise/understanding-the-build-process

0 comments:

Post a Comment

Powered by Blogger.


Software Architect at Surge Global/ Certified Scrum Master

Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.

Search This Blog

Facebook