Problems building a simple VS 2008 Solution and a Website

Problems building a simple VS 2008 Solution and a Website
Hi,

I’ve recently installed TeamCity 3.1 and having problems with my build configuration.
I’ve configured sln2008 on my build runner to compile the solution. The solution conatins of 2 c# librarys and one web project.
TeamCity build the solution without a problem and everything works fine, but:

Where is my compiled website? Where can I configure TeamCity to copy the compiled website to my IIS directory for that website?
All I see in my working directory is empty bin folder and a PrecompiledApp.config file?!?!

What am I missing here?

Any help/tip would be very much appreciated!

9 comments
Comment actions Permalink

Please have a look to .sln file with notepad.exe. There are options for Web projects that defines paths where web project is compiled.

You may define msbuild property OutDir to define a path where MSBuild will place built web site projects. To define that property
please open system properties and environment tab on build configuration and add build system property 'system.OutDir'.

You may define output folders for other projects using Visual Studio properties tab.

To make TeamCity to pick artifacts, please try using
Artifacts(http://www.jetbrains.net/confluence/x/DwAs).
You may define artifacts paths on Build Configuration settings
page(http://www.jetbrains.net/confluence/x/oQAs).

Thanks!

0
Comment actions Permalink

Hi,

thanks for the quick answer.

No i don't have any of these settings in my sln file, just 2 rows, one for the web and one for the c# lib project.

(just the usual Project( ...... EndProjcet)

No path for the procompiled web or so.

So, where/how do I get the correct settings in there (syntax?) and is the path absolut on the host (e.g e:\wwwroot\.XXX)?

thanks again for the help!

0
Comment actions Permalink

Could you please attach you .sln file and all .*proj files from your project.
What kind of web project is it? I mean what kind of deployment is used.

Thanks!

0
Comment actions Permalink

Hi,

please find attached my sln file:

Microsoft Visual Studio Solution File, Format Version 10.00

  1. Visual Studio 2008

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjcetName", "Path to project file", "{2CD2EA7A-5A1E-4BD5-9101-69522F03A90F}"

EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjcetName", Path to project file", "{96FD3512-A63E-4F6C-A200-7BFD66DD4026}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjcetName", Path to project file", "{C550E2AE-F1B4-4CDE-A413-F623CEE59A79}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{ XXX some GUIDs }
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

0
Comment actions Permalink

What kind of web project is it?

Could you please attach referenced in .sln web project file

0
Comment actions Permalink

I am not to sure what you mean with "what kind of web project" it's a simple ASP.NET Webapplication project.

0
Comment actions Permalink

Do you deploy it to IIS? Or do you use VS embedded application server?
What's about project file of that web project?

0
Comment actions Permalink

ah ok, I see what you mean.

We are using the local IIS on our dev machines (win xp) for the webproject and IIS 6 on the target webserver.

0
Comment actions Permalink

Ok. Do you have same IIS on the build agent machine? How do you specify path to you web project on .sln file?
I think it would be link http://localhost/some_path/project.csproj

How do you checkout sources for that IIS handled part?

Thanks!

0

Please sign in to leave a comment.