Problem with copy content to client site by ClickOnce deployment.

Posted by Ekkapop on Stack Overflow See other posts from Stack Overflow or by Ekkapop
Published on 2010-04-09T04:51:53Z Indexed on 2010/04/09 8:13 UTC
Read the original article Hit count: 249

Filed under:
|
|

I have create 2 projects, first is main project and another is content file (excel file). I have set property of these file to copy to output directory = copy always and build action = content. However when I deploy to user site using ClickOnce, it can't find these excel file. I use code as show below to get file path.

string.Format(@"{0}{1}", System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase), @"file.xlsx");

I want to know, how can I solve this problem?

© Stack Overflow or respective owner

Related posts about clickonce

Related posts about deployment