Skip to content

Commit

Permalink
Always try to write attribute to project file if property descriptor …
Browse files Browse the repository at this point in the history
…is not available.
  • Loading branch information
reduckted committed Oct 17, 2022
1 parent a6a7b50 commit 0c3f3c5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ public async Task<bool> TrySetAttributeAsync(string name, object value)
return true;
}
}
// Then write straight to project file
else if (hierarchy is IVsBuildPropertyStorage storage)

// If the property descriptor was not available, then write straight to the project file.
if (hierarchy is IVsBuildPropertyStorage storage)
{
ErrorHandler.ThrowOnFailure(storage.SetItemAttribute(itemId, name, value?.ToString()));
return true;
Expand Down

0 comments on commit 0c3f3c5

Please sign in to comment.