This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
0 Replies Last post: May 23, 2013 12:51 PM by Gavin Armitage  
Gavin Armitage Newbie 1 posts since
May 23, 2013
Currently Being Moderated

May 23, 2013 12:51 PM

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="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <ProjectToBuild Include="Octo.sln"></ProjectToBuild>
  </ItemGroup>
  <Target Name="BuildSolution">
    <MSBuild Projects="@(ProjectToBuild)"
             Targets="Rebuild"
             Properties="Configuration=Release;Platform=Any CPU"/>          
  </Target>
</Project>

 

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#"
    EndProjectSection
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
    EndGlobalSection
    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
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal

 

Build Agent Directory

 

 

Capture.PNG

More Like This

  • Retrieving data ...