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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:11:51+00:00 2026-06-05T08:11:51+00:00

I have the following setup: Main Website – MVC 3 project, to be hosted

  • 0

I have the following setup:

  • Main Website – MVC 3 project, to be hosted on http://www.domain.com

  • Intranet Web App – MVC 3 project, windows authentication, hosted on admin.domain.com, which is only accessible from within the local subnet.

  • CDN Website – A simple web app that merely serves images to both of the above. It will be hosted (publically) on cdn.domain.com, when we go live. I have set up a local project to mock the CDN during development.

I’ve written a business layer that allows users in the admin panel to upload images, which are then physically saved to the CDN path that’s configured (currently on the local machine i.e. C:\Code\SolutionName\CDNProject\images). The main website then uses the same business layer to find and distribute the images via http://cdn.domain.com/images/. http://cdn.domain.com is currently set to http://localhost:55555, while we develop.

Whenever an image is created via the admin panel, it is physically created on disk. Each developer works on his own machine, we we want to be able to check these files in to TFS, for the time being. As you might have guessed, adding files to the file system does not automatically reference them in the project:

Broken references

I thought there may be some way to reference these images as resources, or set a directory to a “content” directory of sorts… but I can’t find anything.

Some developers work remotely via VPN, and do not have access to the local network (only TFS), so a network path is not an acceptable solution.

I thought I might be able to set a pre-build event up, to add all files in a directory to the project?

  • 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-05T08:11:52+00:00Added an answer on June 5, 2026 at 8:11 am

    There is no very easy way to do that. There are a few ways to think about:

    1) Write VS adding which adds new files to project (via DTE – starting point). Find out how to automatically run this VS addin on Pre-Build step. Install this addin to your developers machines.

    2) Extend your admin logic to automatically check-in the uploaded files to TFS via TFS API

    3) try to apply more sofisticated techonologies like this one: T4 Tutorial: Integrating Generated Files in Visual Studio Projects

    Hope that helps,

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

Sidebar

Related Questions

I have the following setup in my project: com.foo - Main com.foo.util - StringUtil
I have the following setup in app.config: <hibernate-configuration xmlns=urn:nhibernate-configuration-2.2 > <session-factory name=Nh.Data> <property name=connection.provider>
I have the following setup for my daily/main/only development environment Hardware/Tin = 4gb ram,
I have two applications in the following setup: /srv/http/myroot -> main site /srv/http/myroot/myforum ->
I have the following setup: Main assembly that contains a WcfService and IWcfService contract.
I have an ASP.NET MVC website and an area project called 'Admin'. So far
i have an asp.net mvc website. http:/mywebsite.com (just for this example) I have been
I have the following setup: I have an eclipse project which uses generated sourced
I have following setup, but when I put 1024 and replace all 512 with
I have following models setup in my Django application class School(models.Model): name = models.TextField()

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.