Windows > Windows Forms Forums > ClickOnce and Setup & Deployment Projects > Some options missing from project designer
Ask a questionAsk a question
 

QuestionSome options missing from project designer

  • Monday, November 12, 2007 10:10 PMdeb.harper Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    I am attempting to update an Outlook Addin that our company has previously developed (from Office 2003 to Office 2007).  I'm trying to use ClickOnce deployment for the first time.  Some files need to be included as data files. 

     

    I have added the files to the project and have set the "Build Action" to "Content" and "Copy to Output Directory" is set to "Always Copy".

     

    I have read other posts/tutorials that explain that you have to click the Application Files button on the Publish tab of the Project Designer.  My publish tab does not have an Application Files button.  I'm hoping that this is a simple configuration problem, but I can't find it myself.

     

    I am currently using VS 2008 B2 on a Vista machine, but I don't think the operating system or IDE version is the problem.  I have encountered the same thing with VS 2008 B2 on XP and VS 2005 SE on XP.  Is this something related to Office Addins?

     

    Thanks in advance,

    Deb

All Replies

  • Tuesday, November 13, 2007 9:16 PMdeb.harper Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    My project includes a few different types of files that I want to have in the data directory.  The Access database file is being correctly copied to the data directory, but the other files (Word templates) are being copied to the directory which contains my application. 

     

    The database file is copied to this location:

    C:\Users\deb.harper\AppData\Local\apps\2.0\Data\B9D50RN3.2OJ\VJ2ZWRMZ.8PO\mite..vsto_a8b3fe0cb536274d_0003.0000_4f3d817d0740e65a\Data

    I can reference this location in my application by using System.Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory.

     

    The other files are copied to this location:

    C:\Users\deb.harper\AppData\Local\apps\2.0\4HGX0A1Z.4CW\K6L44HZP.Q8L\mite..vsto_a8b3fe0cb536274d_0003.0000_4f3d817d0740e65a

     

    I either need a way to change the directory where these files are installed, or, if I can't change it, I need a way to reference the directory that is used.

     

    Deb

     

     

  • Friday, November 06, 2009 12:00 AMMarino van der Heijden [Macaw] Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am having the exact same case. I upgraded my VSTO solution from Outlook 2003 to 2007 and also upgraded from Visual Studio 2005 to Visual Studio Team System 2008 (Developer Edition). I was looking for the "Application Files" option on the Publish tab but cannot find it. After some tests I discovered that I get this screen with all my VSTO projects, also new ones, but not in other type of projects.

    My screen:
    This is how my publish tab looks like

    How I would expect it:
    This is the publish tab how it should be

    Is there anyone out there who knows what's going wrong? Am I missing a VSTO SDK or something?
  • Thursday, November 12, 2009 4:29 AMRobinDotNetMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Nope, you're not missing anything. There is no Application Files dialog for VSTO ClickOnce applications.

    Having said that, what kind of files are you trying to include, and I'll tell you how to include them. Assuming that is your problem.

    RobinDotNet
    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev