Reputation: 147
I'm working on an asp.net web form. Today I did some changes to 3 files:
details.aspx
regions.aspx
regions.aspx.cs
I rebuilt and published.
One of the aspx files (details.aspx) hasn't changed. On the server, It is still showing as it was last modified a month ago.
I know I could simply overwrite that one file but I am trying to understand what I did wrong. Or is it to be expected from Visual Studio (2012) ?
Upvotes: 0
Views: 860
Reputation: 13875
In the publish window go to
Settings -> File Publish Options
and check off Delete all existing files prior to publish.
You could also manually clear all files from the publish folder then republish, but the setting takes care of it automatically.
Upvotes: 1
Reputation: 182
In my experience I wouldn't say it was to be expected. I'd try publishing to a new folder just to remove any risk of it just trying to publish updated files. I'd check that the Property on the page in VS is Build Content and not something funny that's causing it not to be copied.
Upvotes: 0
Reputation: 83
Please make sure you have the BuildAction set to Content. Select the file in Visual Studio, press F4 and check the BuildAction property.
Upvotes: 0