We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa985b3 + 0c3f3c5 commit a824d61Copy full SHA for a824d61
src/toolkit/Community.VisualStudio.Toolkit.Shared/Solution/PhysicalFile.cs
@@ -146,8 +146,9 @@ public async Task<bool> TrySetAttributeAsync(string name, object value)
146
return true;
147
}
148
149
- // Then write straight to project file
150
- else if (hierarchy is IVsBuildPropertyStorage storage)
+
+ // If the property descriptor was not available, then write straight to the project file.
151
+ if (hierarchy is IVsBuildPropertyStorage storage)
152
{
153
ErrorHandler.ThrowOnFailure(storage.SetItemAttribute(itemId, name, value?.ToString()));
154
0 commit comments