Skip to content

Commit 7d4006b

Browse files
committed
Added the following tags to the adapter
this.RegisterSupportTag("asp:validationsummary"); this.RegisterSupportTag("asp:modelerrormessage"); this.RegisterSupportTag("asp:comparevalidator"); this.RegisterSupportTag("asp:fileupload"); this.RegisterSupportTag("asp:regularexpressionvalidator"); this.RegisterSupportTag("asp:gridview"); this.RegisterSupportTag("asp:boundfield"); this.RegisterSupportTag("asp:detailsview"); this.RegisterSupportTag("asp:templatefield");
1 parent 03dc01a commit 7d4006b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/WebFormsToBlazorServerCommands/Migration/Adapters/AspxToBlazorControlConverter.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ public AspxToBlazorControlConverter(IAdapterHost adapterHost) : base(adapterHost
4242
this.RegisterSupportTag("asp:placeholder");
4343
this.RegisterSupportTag("asp:requiredfieldvalidator");
4444
this.RegisterSupportTag("asp:literal");
45+
46+
this.RegisterSupportTag("asp:validationsummary");
47+
this.RegisterSupportTag("asp:modelerrormessage");
48+
this.RegisterSupportTag("asp:comparevalidator");
49+
this.RegisterSupportTag("asp:fileupload");
50+
this.RegisterSupportTag("asp:regularexpressionvalidator");
51+
this.RegisterSupportTag("asp:gridview");
52+
this.RegisterSupportTag("asp:boundfield");
53+
this.RegisterSupportTag("asp:detailsview");
54+
this.RegisterSupportTag("asp:templatefield");
55+
4556
}
4657

4758
/// <summary>

src/WebFormsToBlazorServerCommands/Migration/WebFormToBlazorServerMigration.Logic.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ await _statusTracking.UpdateCurrentStatusAsync(MigrationStepEnum.AppLogic, Messa
8585
if (!projFiles.Any(c => c.Name.ToLower().Equals(logicDocument.Name.ToLower()) ) ) {
8686

8787
docText = docText.Replace(source.Classes.First().Namespace, $"{blazorServerProject.Name}");
88+
8889
var thing = await blazorServerProject.AddDocumentAsync(logicDocument.Name, docText);
89-
90+
9091
//Updating the dialog with a status
9192
await _statusTracking.UpdateCurrentStatusAsync(MigrationStepEnum.AppLogic, MessageTypeEnum.Information,
9293
$"Copied static file: {logicDocument.Name} to project {blazorServerProject.Name} location: {Path.Combine(blazorServerProject.Path, logicDocument.Name)}");

0 commit comments

Comments
 (0)