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 8916721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:18:54+00:00 2026-06-15T05:18:54+00:00

I am using Visual Studio 2012 to deploy a Worker Role to Azure. I

  • 0

I am using Visual Studio 2012 to deploy a Worker Role to Azure.
I can add a file to my project and mark it as:
Build Action: Content
Copy to Output Directory: Always

When I do this, Visual Studio copies the file into my project directory and then deploys this local copy to the approot directory. I’d like the deployment phase to take files from an external location and copy that into the output directory.

Is this possible?

Note: I do this because I want to deploy files that are in source control under a different directory and I don’t want to maintain a different local copy.

  • 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-15T05:18:56+00:00Added an answer on June 15, 2026 at 5:18 am

    The easiest way to do this is by adding the file as link:

    1. Right click your worker role project, choose Add > Existing Item
    2. Choose a file (this can be from a different directory) and make sure you choose Add As Link. After clicking Add As Link, the file will show up in your project with something like a shortcut icon.
      Add As Link
    3. Set the Copy to Output Directory property to Copy always for that file
    4. Package the application. If you check the cspkg, you’ll see that the file is in your approot folder: AppRoot content
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Visual Studio 2012, I'd like to create a C++ project folder called Include
In Visual Studio 2012, using publish profiles along with web deploy simplifies the deployments
Using Visual Studio 2012 to generate stubs with Add Fakes Assembly, everything works as
Using Visual Studio 2012, I created a new ASP.NET MVC 4 web project, using
Using Visual Studio 2012 RC, from the page, I started an Azure Cloud Service.
Using visual studio 2012 and tfs 2012. What's the difference between build checkin policy
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
I'm using Visual Studio 2012 for Windows Phone 7 and this is my first
I am using Visual Studio Express 2012 RC. If a create a blank hello
I'm using SOAP through Visual Studio 2012 RC with C# to use the Magento

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.