@@ -78,7 +78,11 @@ public StaticWebAsset(StaticWebAsset asset)
78
78
79
79
public string Identity
80
80
{
81
- get => _identity ??= GetOriginalItemMetadata ( "FullPath" ) ;
81
+ get
82
+ {
83
+ return _identity ??= GetOriginalItemMetadata ( "FullPath" ) ;
84
+ }
85
+
82
86
set
83
87
{
84
88
_modified = true ;
@@ -1270,7 +1274,6 @@ IDictionary ITaskItem2.CloneCustomMetadataEscaped()
1270
1274
{
1271
1275
var result = new Dictionary < string , string >
1272
1276
{
1273
- { nameof ( Identity ) , Identity } ,
1274
1277
{ nameof ( SourceId ) , SourceId } ,
1275
1278
{ nameof ( SourceType ) , SourceType } ,
1276
1279
{ nameof ( ContentRoot ) , ContentRoot } ,
@@ -1305,7 +1308,7 @@ IDictionary ITaskItem2.CloneCustomMetadataEscaped()
1305
1308
1306
1309
string ITaskItem . GetMetadata ( string metadataName ) => metadataName switch
1307
1310
{
1308
- nameof ( Identity ) => Identity ?? "" ,
1311
+ "FullPath" => Identity ?? "" ,
1309
1312
nameof ( SourceId ) => SourceId ?? "" ,
1310
1313
nameof ( SourceType ) => SourceType ?? "" ,
1311
1314
nameof ( ContentRoot ) => ContentRoot ?? "" ,
@@ -1333,9 +1336,6 @@ void ITaskItem.SetMetadata(string metadataName, string metadataValue)
1333
1336
{
1334
1337
switch ( metadataName )
1335
1338
{
1336
- case nameof ( Identity ) :
1337
- Identity = metadataValue ;
1338
- break ;
1339
1339
case nameof ( SourceId ) :
1340
1340
SourceId = metadataValue ;
1341
1341
break ;
@@ -1402,7 +1402,6 @@ void ITaskItem.RemoveMetadata(string metadataName)
1402
1402
1403
1403
void ITaskItem . CopyMetadataTo ( ITaskItem destinationItem )
1404
1404
{
1405
- destinationItem . SetMetadata ( nameof ( Identity ) , Identity ) ;
1406
1405
destinationItem . SetMetadata ( nameof ( SourceId ) , SourceId ) ;
1407
1406
destinationItem . SetMetadata ( nameof ( SourceType ) , SourceType ) ;
1408
1407
destinationItem . SetMetadata ( nameof ( ContentRoot ) , ContentRoot ) ;
0 commit comments