You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #10578 (comment): throughout the Razor codebase, there's a recurring pattern of using UriBuilder to construct file-schema URIs. It would be useful to create a global helper method for URI creation and update all instances where the UriBuilder pattern is used with this helper method.
Examples
One common usage pattern observed is:
var newComponentUri = new UriBuilder
{
Scheme = Uri.UriSchemeFile,
Path = updatedComponentPath,
Host = string.Empty,
}.Uri;
Proposal
Implement a global helper method, e.g., CreateFileUri(string path), that encapsulates the UriBuilder pattern.
The text was updated successfully, but these errors were encountered:
Description
As mentioned in #10578 (comment): throughout the Razor codebase, there's a recurring pattern of using
UriBuilder
to construct file-schema URIs. It would be useful to create a global helper method for URI creation and update all instances where theUriBuilder
pattern is used with this helper method.Examples
One common usage pattern observed is:
Proposal
Implement a global helper method, e.g.,
CreateFileUri(string path)
, that encapsulates theUriBuilder
pattern.The text was updated successfully, but these errors were encountered: