Copying website not copying in visual studio 2010

Posted on 2012-09-17
Last Modified: 2012-09-30
I have  a website and I am using the Copy Website option to copy it to multiple servers.

On the left, I have a file with a date older than the one on the right. And another file with a date newer than the one on the right.

But the one on the right shows an arrow pointing left like I need to copy it to the left, even though the first file on the left is identical to the one on the right -- it's just that the first time it was copied it kept the date of the copy date instead of the file creation date. And the second file on the left is newer than the one on the right, but the one on the right shows an arrow to the left that it should be copied.

If I did what it says I'd be wiping out my coding changes!

Even if I select the directory and click to copy on the right, it ignores the fact that the one on the left has a newer date and does not copy it at all.

So none of my changed files are being copied at all.

I copy this to two different servers, which may or may not be messing up the little "logs" that track the copied files.

How do I clear things out and make sure new stuff is copied to the right, etc. as it should be?

Question by:BobCSD
    LVL 96

    Expert Comment

    by:Bob Learned
    What are the properties for the file, when selected in the Solution Explorer, and viewed on the Property Window?

    There are two important values (Build Action and Copy to Output Directory).
    LVL 1

    Author Comment

    the only property is the Full Path.

    There is no build action, etc.
    LVL 96

    Accepted Solution

    The Build Action needs to be Content in order to get deployed.
    LVL 1

    Author Comment

    This is not helping. I'm just closing this out.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now