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

  • Home
  • SEARCH
  • 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 7949771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:04:29+00:00 2026-06-04T02:04:29+00:00

I am working on a ClickOnce application. I am trying to publish it from

  • 0

I am working on a ClickOnce application. I am trying to publish it from command line using this:

msbuild Project.csproj /t:Publish /p:configuration=release;

The problem is I want to set some other properties along with configuration, like ‘PublishUrl’ etc.

I’ve tried this:

msbuild Project.csproj /t:Publish /p:configuration=release;publishurl="\\sdmm\publish\"

It builds successfully but the output of that project will be copied to the debug folder of application in app.publish folder.

How should I handle this thing? Thanks.

  • 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-04T02:04:30+00:00Added an answer on June 4, 2026 at 2:04 am

    You could set any property you want from the command line but before doing so, you need to open your .csproj file in some texteditor(notepad etc). Find the property that you want to edit. In your case it is publish url. Remove this property from csproj file.

    Then you could do this

    msbuild /target:clean,publish /p:publishurl=c:\publish_location\
    

    you must clean the project before you publish it.

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

Sidebar

Related Questions

We're trying to publish a ClickOnce application through MSBuild . We've got it working
I am working on a ClickOnce application, and deploying using Mage. Is there a
I'm trying to publish my app with ClickOnce to install from a Web page.
I am using VS2008 to publish my application files using ClickOnce. I read somewhere
My application creates a ClickOnce application via the command line tool Mage . If
I am working on a project that is click-once deployed from an IIS 7.5
This will be a Windows Forms application deployed through ClickOnce. The plan is to
I have a Windows Forms ClickOnce application that performs its own application updates. This
Has anyone else experience this...on machines which I have an application updated via ClickOnce,
I'm working on automating the installer for a .NET 4.0 ClickOnce WPF application, which

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.