Here the Build.proj file, use it with gated check-in in TFS2010 to build the solution and copy the result to a folder on the server.
If you point the IIS virtual directory of the server to this folder you have the latest version of the website(s) for every check-in.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Publish" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<Target Name="Publish">
		<MSBuild Projects="$(SourceFileRootFolder)..\EyeSoft.WebSites.sln" Targets="Clean;Build" />
		<Message Text="Matteo $OutDir\_PublishedWebsites\EyeSoft.Web.Mvc\\"/>
		<ItemGroup>
			<BuildFiles Include="$(OutDir)_PublishedWebsites\EyeSoft.Web.Mvc\**\*.*" />
		</ItemGroup>
		<Copy 
			SourceFiles="@(BuildFiles)" 
			DestinationFiles="@(BuildFiles->'D:\Development.LastBuild\EyeSoft.Web.Mvc\%(RecursiveDir)%(Filename)%(Extension)')">
		</Copy>
	</Target>
</Project>

Last edited Apr 2, 2011 at 12:23 PM by EyeOpenAgent, version 2

Comments

No comments yet.