c# - aspnet_compiler.exe is not able to find a dependent virtual directory -
i creating web application storing common user controls called commoncontrols. has directory structure looks this:
commoncontrols.csproj |_ controls |_ patient |_ patientnoteslist.ascx
i have web app called backoffice has following folder structure:
backoffice.csproj |_ doctors |_ patientnotes.aspx
both backoffice , commoncontrols in same sln, called ui.sln.
patientnotes.aspx (from backoffice) uses patientnoteslist.ascx control (from commoncontrols) follows:
<%@ register src="~/commoncontrols/controls/patient/patientnoteslist.ascx" tagprefix="cc" tagname="patientnoteslist" %>
when compile in vs2015, no errors , able run backoffice application no issue, , have confirmed patientnotes.aspx page in fact using patientnoteslist.ascx control.
when compile ui.sln via msbuild, succeeds, in line compilation in vs2015. however, in our msbuild scripts each project in sln compiled using aspnet_compiler (after sln compilation), appears this:
c:\windows\microsoft.net\framework\v4.0.30319\aspnet_compiler.exe -v /commoncontrols -p ..\commoncontrols\ -u -f -c ..\debug\commoncontrols ... , ... c:\windows\microsoft.net\framework\v4.0.30319\aspnet_compiler.exe -v /backoffice -p ..\backoffice\ -u -f -c ..\debug\backoffice
the problem aspnet_compiler fails during compiling of backoffice:
/backoffice/doctors/patientnotes.aspx(2): error aspparse: file '/backoffice/commoncontrols/controls/patient/patientnoteslist.ascx' not exist. [c:\workingcopy\alenterpriseui\build\build.xml
how can make commoncontrols visible backoffice can find patientnoteslist.ascx , compile?
wiki
Comments
Post a Comment