Click here to Skip to main content
15,885,890 members
Articles / Web Development / ASP.NET

w00t: Building a new app from the ground up: setting up the environment

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
20 Oct 2009CPOL1 min read 8.9K   3  
Ok, here are the steps to setup the development environment for my new project...

This is one of the articles in our series; the parts are:

  1. Methodology, technology & tools used
  2. Setting up the environment
  3. First specs and getting started
  4. IOC, database and other stuff; a real framework 

Happy reading !

Ok, here are the steps to setup the development environment for my new project:

Prerequisites

The Steps

  1. Create a project folder
  2. Start Git bash on this folder (right click in windows explorer)
  3. Get MSpec : type in git bash:
    git clone git://github.com/machine/machine.specifications.git
  4. Get Subsonic : type in git bash:
    git clone git://github.com/subsonic/SubSonic-3.0.git 
  5. Search for Subsonic.Core.csproj and build it
  6. Search for Machine.specifications.sln and build it
  7. Make a folder Tools in the project folder
  8. Make a folder Lib in the project folder
  9. Make a folder Source in the project folder
  10. In the folder Tools, create a file named "CopyDependenciesAndTools.cmd" with the following content:
    @echo off
    echo.
    echo   Copying all tools & dependencies
    echo.
    copy ..\machine.Specifications\Build\Release\*.dll
    copy ..\machine.Specifications\Build\Release\*.exe
    copy ..\machine.Specifications\Build\Release\*.dll ..\lib\*.*
    copy ..\machine.Specifications\Build\Release\*.dll ..\lib\*.*
    copy ..\subsonic-3.0\lib\*.dll ..\lib\*.*
    copy ..\subsonic-3.0\subsonic.core\bin\release\*.dll ..\lib\*.*
    pause
  11. Execute this cmd-file
  12. Make another cmd file in the tools-folder: "CleanUp.cmd" with the following content:
    @Echo off
    echo.
    echo   Cleaning up
    echo.
    dir /ad /b /s ..\bin > folderstodelete.txt
    dir /ad /b /s ..\obj >> folderstodelete.txt
    dir /ad /b /s ..\build >> folderstodelete.txt
    for /f %%i in (folderstodelete.txt) do rd %%i /s /q
    pause
  13. Execute it
  14. Start up Visual studio and create a new ASP.NET MVC 2 application in the src folder (make sure the checkbox create directory for this solution is off)
  15. Once the project is created, choose File/New project / Windows/Class library, name it "Specs", and make sure you choose the option "Add to solution"
  16. Save and close Visual Studio
  17. Execute "Tools\CleanUp.Cmd"
    15. Go back to the Git Bash and type 
    (line by line, do not copy and paste this in one block):
    git init
    git add .
    git commit -m "+ Initial commit"

That's all there is to it; our initial setup. In the next post, we'll get started writing specs !!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Virtual Sales Lab
Belgium Belgium

Comments and Discussions

 
-- There are no messages in this forum --