Getting file-content on AppHarbor?

Be sure to mark the files as Content (right click file in Solution Explorer, set Build Action to Content ). If you don't do this, the file will not be included in the msbuild output and thus not deployed by AppHarbor.

Be sure to mark the files as Content (right click file in Solution Explorer, set Build Action to Content). If you don't do this, the file will not be included in the msbuild output and thus not deployed by AppHarbor.

1 Thanks, that did the trick :). I was certain it would be set to Content by default. Is there any way I can get VS10 to recognize .

Tmpl-files and automatically set them to Content? – Alxandr May 18 at 2:00 I've been wondering the same thing, I have many content files - not just for AppHarbor Deployment, but in general. VS2010 doesn't really have a setup that I know of, that marks these.It's manual going at this point.

:/ – Adron Sep 20 at 15:34.

I recently started to create a project on AppHarbor just to try it out. And I've run into a small problem. I've created small files containing jQuery-templates which I've named .

Tmpl-files and placed inside "~/Templates/". To get the content of one of these files I use HttpRequest.Current.Server. MapPath(path);, and File.

Open, and this all just works perfectly on my local machine, however, on AppHarbor I get that the file does not exist. Is there a workaround to make this work? Do I need to mark the files in some way, or is there something I can put inside my Web.

Config/project-settings that can make this work?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions