Publishing via MS build in th Build Machine, where there is no Visual Studio 2010

I have a build machine where I have not installed Visual Studio 2010. I am trying to use ms build to publish an ASP.net MVC project, but unfortunately it does not work. Only bin is placed in the output directory, but not Views and other related files. Below is my ms build project.

<Project ToolsVersion="4.0" xmlns = "http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="BuildRegistration"> <Exec Command="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild /t:Rebuild /p:OutDir=..\..\..\BuildOutput\Registration\;Configuration=Release;UseWPP_CopyWebApplication=True;PipelineDependsOnBuild=False Registration\ASP.MVC\Registration\Fenix.Registration.csproj" /> </Target> </Project> 
+4
source share
2 answers

you have so many people who are reviewing ways too often, look at this fragment, we use it in production and work like a charme!

 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup /> <Target Name="EndToEndIteration" Condition=" '$(IsDesktopBuild)'!='true' " DependsOnTargets="$(EndToEndIterationDependsOn)" > <CallTarget Targets="Build"/> </Target> <Target Name="Build"> <MSBuild Projects=".\RWS.Core\RWS.Core.sln" Properties="Configuration=Debug;OutDir=bin\" /> </Target> </Project> 

PS you need a complete installation of the .NET framework, which will be available on the build machine, also pay attention to the relative solution path related to the folder from which my TfsBuild.proj is located. I have this file configured to automatically build TFS and just works :)

also look at this question and answer: Is a separate Visual Studio license for the build machine?

0
source

I am running MSBuild to create and deploy an mvc 3 application on a 2008 server. I am using the following build script

msbuild.exe {solution file} / p: Configuration = Release; DeployOnBuild = true; DeployTarget = Package; _PackageTempDir = {location for build}

I believe that I had to copy some files or maybe install some iis publication. Sorry, I donโ€™t remember that it was a while, but I donโ€™t have a visual studio on the machine.

0
source

All Articles