MapFile Element (Feature)
SharePoint 2010
Published: May 2010
Specifies a mapping between files during a Feature upgrade.
<MapFile FromPath = string ToPath = string />
This element is mis-understood...
... and poorly documented. It will not actually carry out a move as assumed by the Thomas/Jeremy but is used to map a location that a file had prior to a feature upgrade to the file post the upgrade (in case the file location has changed, think renaming of a feature) to ensure that documents and pages ghosted in the database can still find the file on the FE file system...
Not working in RTM
This feature is not working in SharePoint Server 2010 RTM at all. Tried all different scenarios here.
Moving file:
<MapFile FromPath="StyleSheet\Sample.txt" ToPath="SPDevWiki\Sample.txt" />
Just renaming file
<MapFile FromPath="StyleSheet\Sample.txt" ToPath="StyleSheet\Sample1.txt" />
Doesn't throw an error, but leaves file where it is.
Moving file:
<MapFile FromPath="StyleSheet\Sample.txt" ToPath="SPDevWiki\Sample.txt" />
Just renaming file
<MapFile FromPath="StyleSheet\Sample.txt" ToPath="StyleSheet\Sample1.txt" />
Doesn't throw an error, but leaves file where it is.
- 6/12/2010
- Jeremy Thake
- 7/12/2010
- Thomas Lee
