ASP.NET MVC resources

Tuesday, 3 November 2009 by alexandrul

Guides, best practices

Dev stack

[Read More…]

Git instaweb using mongoose and msysGit

Monday, 12 October 2009 by alexandrul

Requirements

Mongoose setup

Rename mongoose-2.8.exe to mongoose4instagit.exe and place it in any folder at your choice, in my case: k:\dev\tools\mongoose\mongoose4instagit.exe

Gitweb setup

In a msysGit shell run the following commands to build gitweb.cgi in case it’s not already present (like after running make clean in /git folder):

cd /git
make gitweb/gitweb.cgi

Next, extract CGI.pm archive content, and copy the content of the lib subfolder to /lib/perl5/site_perl, keeping the folder structure:
[Read More…]

Git on Windows with msysGit

Sunday, 20 September 2009 by alexandrul

The article is based on Install MSysGit wiki page from the msysGit website, and you could also read Updating MSysGit.

For best results use one of the following Git versions:

  • Git 1.6.5.2 - recommended
  • Git 1.6.4.4

Requirements

Setting up Git

First unpack msysGit installer to your desired location (7-Zip works just fine). In my case, the location is K:\dev\tools\msysGit. Also, this folder is the root folder inside the msysGit shell, and would be the reference for the rest of the tutorial.

In the K:\dev\tools\msysGit\git folder you will find the Git source code provided with the installer. Delete all the files and folders inside it, and then unpack in the same folder the source code of your desired git version.

Final step would be running K:\dev\tools\msysGit\msys.bat, which will compile and install git, and leave you to a shell prompt.

[Read More…]

Git 1.6.4.2 on Windows with msysGit

Sunday, 30 August 2009 by alexandrul

Updated: Git 1.6.5.2

Git resources

Friday, 28 August 2009 by alexandrul

Why Git

Source code / binaries / GUI

Setting up Git server

[Read More…]

Build virtual machine configuration files to use with VMware Player

Thursday, 27 August 2009 by alexandrul

VMware Player 3.0 can create new virtual machines, but older versions are only running existing virtual machines.

Tutorials

On-line generators

Updated templates for xUnit.net in ASP.NET MVC RTM

Sunday, 3 May 2009 by alexandrul

Environment:

  • Visual Studio 2008 Pro
  • xUnit.net v1.5 (build 1.5.0.1479)

xUnit.net has very few tests by default, so I have adapted the standard Visual Studio tests generated for ASP.NET MVC web applications. This resulted in two files: AccountControllerTests.cs and HomeControllerTests.cs (the last one is similar with HomeControllerFacts.cs)

The xUnit.net template for ASP.NET MVC unit testing can be found on the following location:

%VS2008%\Common7\IDE\ProjectTemplates\CSharp\Test\XunitMvcTestProjectTemplate.cs.zip

After unpacking the content of the template to a temp folder, we must place the new files in the Controllers folder, and update the content of MvcTemplate.csproj and MyTemplate.vstemplate:
[Read More…]

Setup xUnit.net for unit testing in ASP.NET MVC RTM

by alexandrul

Environment:

  • Visual Studio 2008 Pro
  • xUnit.net v1.5 (build 1.5.0.1479)

If you are using a zip file downloaded from the Source Code section of their site, extract it on a temp folder and move the binaries from the Samples\xunit folder to your destination of choice. If you are using the zipped binaries from their downloads page, simply extract them to your desired location.

The next step is running xunit.installer.exe and enabling support for ASP.NET MVC. The result should look like this:

xunit_installer_success.png

If the installer throws an exception like this one:

xunit_installer_error.png

then you should create manually the folder specified in the error message (usually the Test folders).
[Read More…]