sln2008 build doesnt work

I setup teamcity and everything checked out great for the project and it looks great. But I cant get my file to build. Im running visual studio 2008 and I can build the file locally and on the test server using visual studio 2008 without any errors. Then when I go to the sln2008 build agent in teamcity and try to do the build im always getting an error on the same file. Here is the errors:

  1. c:\storesecured_checkout\website_code\manage\dnStore\AspNetControls\Common\DBFilterFactory.ascx.cs(97, 0): error CS0234: The type or namespace name 'dnstore_aspnetcontrols_common_dbfilterbox_ascx' does not exist in the namespace 'ASP' (are you missing an assembly reference?)

  2. c:\storesecured_checkout\website_code\manage\dnStore\AspNetControls\Common\DBFilterFactory.ascx.cs(181, 0): error CS0234: The type or namespace name 'dnstore_aspnetcontrols_common_dbfilterbox_ascx' does not exist in the namespace 'ASP' (are you missing an assembly reference?)

  3. c:\storesecured_checkout\website_code\manage\dnStore\AspNetControls\Common\DBFilterFactory.ascx.cs(182, 0): error CS0234: The type or namespace name 'dnstore_aspnetcontrols_common_dbfilterbox_ascx' does not exist in the namespace 'ASP' (are you missing an assembly reference?)


So my question is why do I get this different error in this automatic build versus building it from within visual studio and how can I fix this?

We are referencing the files in c# and the pages are working properly.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DBFilterFactory.ascx.cs" Inherits="dnStore_AspNetControls_Common_DBFilterFactory" %>
<%@ Reference Control="~/dnStore/AspNetControls/Common/DBFilterBox.ascx" %>

Id really like to use this automatic build but at this point im stuck.

1 comment

Please check the user name that is used for BuildAgent service.

Do you use some libs that placed in GAC or local directory(not VCS dir)?

Could you please try to build your solution with MSBuild from console. Does that work? To do it, run msbuild.exe in the folder where your colution is. command line arguments should force msbuild to rebuild your project and make Release version.
So, please start the following commandline:
msbuild.exe <.sln path> /p:Configuration=Release /t:Rebuild


Thanks!

0

Please sign in to leave a comment.