Please help with .sln file and Teamcity

Hi All,

Thank you for such a great product. Please can you help me with the following setup and what I am doing wrong. I have a website that I would like to build and release but how do I change the paths in the .sln file to point to the Agent build folder? It wants to build the files from the original project folder. Or should I be setting this up in a different way to get the builds running for websites? How should I be setting up the .sln file and the build folder to run nightly builds?

So here is my msbuild file

<Project ToolsVersion="3.5" xmlns="">
    <ProjectToBuild Include="Octo.sln"></ProjectToBuild>
  <Target Name="BuildSolution">
    <MSBuild Projects="@(ProjectToBuild)"
             Properties="Configuration=Release;Platform=Any CPU"/>           

My Solution file (Octo.sln)

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Web", "Web","{81F2AEA2-9654-4084-B024-AB4A5A51F9AD}"
    ProjectSection(WebsiteProperties) = preProject
        TargetFrameworkMoniker = ".NETFramework,Version%3Dv3.5"
        Debug.AspNetCompiler.VirtualPath = "/Octo"
        Debug.AspNetCompiler.PhysicalPath = ""
        Debug.AspNetCompiler.TargetPath = ""
        Debug.AspNetCompiler.Updateable = "true"
        Debug.AspNetCompiler.ForceOverwrite = "true"
        Debug.AspNetCompiler.FixedNames = "false"
        Debug.AspNetCompiler.Debug = "True"
        Release.AspNetCompiler.VirtualPath = "/Web"
        Release.AspNetCompiler.PhysicalPath = ""
        Release.AspNetCompiler.TargetPath = "..\Build\"
        Release.AspNetCompiler.Updateable = "true"
        Release.AspNetCompiler.ForceOverwrite = "true"
        Release.AspNetCompiler.FixedNames = "false"
        Release.AspNetCompiler.Debug = "False"
        VWDPort = "52702"
        DefaultWebSiteLanguage = "Visual C#"
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {81F2AEA2-9654-4084-B024-AB4A5A51F9AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {81F2AEA2-9654-4084-B024-AB4A5A51F9AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE

Build Agent Directory


Please sign in to leave a comment.