TeamCity – problem with Publish on ASP.net site

teamcity

I am trying to configure TeamCity 5.0 to run "Publish" target on one of my projects.

When I load the solution in VS 2008 and click publish on the project the website is being build nicely – files on server appearing by themselves etc. Yet when I run the sln file via TeamCity Sln2008 runner the TeamCity returns:

[Project "Portal.csproj" (Publish target(s)):] Skipping unpublishable project.

Has anyone had the same problem?

Filip

Best Answer

You could create your own simple build file. For example:

<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>

    <PropertyGroup>
        <PackageFolder>C:\Builds\AppServer\Actual</PackageFolder>
    </PropertyGroup>

    <Target Name="Build" DependsOnTargets="BeforeBuild">
        <MSBuild Projects="TeamWork-AppServer.sln"
                 Targets="Rebuild"
                 Properties="Configuration=Debug;OutDir=$(PackageFolder)\;"></MSBuild>
    </Target>
</Project>

Or you can use VS 2008 Web Deployment Project. Here is a great turtorial.

Related Topic