Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8468465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:56:27+00:00 2026-06-10T15:56:27+00:00

Problem Trying to publish an Excel 2007 Addin from the command line produces unexpected

  • 0

Problem
Trying to publish an Excel 2007 Addin from the command line produces unexpected directory names/directory structure when trying to set the PublishDir property.

What I’m doing
I’m trying to publish an Excel 2007 addin via the command line. I have set everything up in the project and when I publish it from Visual Studio everything works perfectly. I can also publish from the commandline with the following and it also works perfectly:

msbuild /t:publish /p:Configuration=release

However, as soon as I add the PublishDir property then things go all batty:

msbuild /t:publish /p:Configuration=release;PublishDir="C:\ExcelAddin\Publish"

When I either publish from Visual Studio or do not specify PublishDir then the files are put into a directory and everything looks like this:

This is the expected (and working) file structure

When I specify PublishDir=”C:\ExcelAddin\Publish” then this is what C:\ExcelAddin looks like.
This is the unexpected (and not working) file structure

Can anyone point me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:56:29+00:00Added an answer on June 10, 2026 at 3:56 pm

    When specifying the PublishDir property, you need to include the trailing \. If the trailing back slash isn’t present, then the directories are smashed together and nothing seems to work correctly. I believe this should work:

    msbuild /t:publish /p:Configuration=release;PublishDir="C:\ExcelAddin\Publish\"
    

    I found a reference to this while looking at http://msdn.microsoft.com/en-us/library/ff624126.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem trying to hide .php extension from the url I have
Im trying to publish an Adview ad to my app. The problem is, a
I am working on a ClickOnce application. I am trying to publish it from
Im trying to publish my new app but ran into a problem. After I
There is my problem : I've been trying to publish a WPF application using
I'm trying to publish a Rails 3.1 (upgraded from 3.0) application. After submitting the
I'm trying to publish messages to RabbitMQ from a php (5.2.x) script on my
I am trying to use Publish in Access Services with a Sharepoint 2007 server.
I have a problem trying to turn my python code into an executable using
I have a problem trying to register my own Event/Listener to the event dispatcher.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.