diff --git a/RecommendationTools/UnitTests/S3SyncTests.cs b/RecommendationTools/UnitTests/S3SyncTests.cs index 1d5a701..8fb14d3 100644 --- a/RecommendationTools/UnitTests/S3SyncTests.cs +++ b/RecommendationTools/UnitTests/S3SyncTests.cs @@ -40,11 +40,14 @@ public async Task ValidateS3RecommendationContentMatchesRepository() ZipFile.ExtractToDirectory("github.zip", TempExtractDir); var pathToRepoRecs = $@"{TempExtractDir}\porting-assistant-dotnet-datastore-master\recommendation"; var pathToRepoTemplates = $@"{TempExtractDir}\porting-assistant-dotnet-datastore-master\Templates"; + var pathToTagConfigs = $@"{TempExtractDir}\porting-assistant-dotnet-datastore-master\tagconfigs"; var allRepoFilesToCheck = Directory.EnumerateFiles(pathToRepoRecs, "*", SearchOption.AllDirectories).ToList(); var allRepoTemplates = Directory.EnumerateFiles(pathToRepoTemplates, "*", SearchOption.AllDirectories).ToList(); + var allRepoConfigs = Directory.EnumerateFiles(pathToTagConfigs, "*", SearchOption.AllDirectories).ToList(); allRepoFilesToCheck.AddRange(allRepoTemplates); + allRepoFilesToCheck.AddRange(allRepoConfigs); Assert.Multiple(async () => { diff --git a/Templates/webforms/appsettings.json b/Templates/webforms/appsettings.json new file mode 100644 index 0000000..d9d9a9b --- /dev/null +++ b/Templates/webforms/appsettings.json @@ -0,0 +1,10 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "AllowedHosts": "*" +} diff --git a/recommendation/project.all.json b/recommendation/project.all.json index 5689f54..49eda3e 100644 --- a/recommendation/project.all.json +++ b/recommendation/project.all.json @@ -82,6 +82,12 @@ "Type": "ProjectFile", "Value": "", "Description": "Migrate csproj file to core" + }, + { + "Name": "WebFormsPorting", + "Type": "ProjectType", + "Value": "", + "Description": "Perform WebForms specific porting steps" } ] }, @@ -124,6 +130,12 @@ "Type": "ProjectFile", "Value": "", "Description": "Migrate csproj file to core." + }, + { + "Name": "WebFormsPorting", + "Type": "ProjectType", + "Value": "", + "Description": "Perform WebForms specific porting steps" } ] }, @@ -166,6 +178,12 @@ "Type": "ProjectFile", "Value": "", "Description": "Migrate csproj file to core." + }, + { + "Name": "WebFormsPorting", + "Type": "ProjectType", + "Value": "", + "Description": "Perform WebForms specific porting steps" } ] } diff --git a/tagconfigs/asp.BoundField.yaml b/tagconfigs/asp.BoundField.yaml new file mode 100644 index 0000000..837c0c4 --- /dev/null +++ b/tagconfigs/asp.BoundField.yaml @@ -0,0 +1,16 @@ +!Template +TagName: asp:BoundField + +Invocations: + - !AddUsingDirective + NamespaceName: BlazorWebFormsComponents + +Templates: + Default: | + + #InnerHtml# + diff --git a/tagconfigs/asp.Button.yaml b/tagconfigs/asp.Button.yaml new file mode 100644 index 0000000..cc2f286 --- /dev/null +++ b/tagconfigs/asp.Button.yaml @@ -0,0 +1,14 @@ +!Template +TagName: asp:Button +CodeBehindType: System.Web.UI.WebControls.Button +CodeBehindHandler: Default + +Templates: + Default: | + \ No newline at end of file diff --git a/tagconfigs/asp.ButtonField.yaml b/tagconfigs/asp.ButtonField.yaml new file mode 100644 index 0000000..3a2b2b4 --- /dev/null +++ b/tagconfigs/asp.ButtonField.yaml @@ -0,0 +1,19 @@ +!Template +TagName: asp:ButtonField + +Invocations: + - !AddUsingDirective + NamespaceName: BlazorWebFormsComponents + +Templates: + Default: | + + #InnerHtml# + diff --git a/tagconfigs/asp.Content.yaml b/tagconfigs/asp.Content.yaml new file mode 100644 index 0000000..e1a198f --- /dev/null +++ b/tagconfigs/asp.Content.yaml @@ -0,0 +1,4 @@ +!Template +TagName: asp:Content +Templates: + Default: "#InnerHtml#" \ No newline at end of file diff --git a/tagconfigs/asp.ContentPlaceHolder.yaml b/tagconfigs/asp.ContentPlaceHolder.yaml new file mode 100644 index 0000000..89d7b46 --- /dev/null +++ b/tagconfigs/asp.ContentPlaceHolder.yaml @@ -0,0 +1,4 @@ +!Template +TagName: asp:ContentPlaceHolder +Templates: + Default: "@Body" \ No newline at end of file diff --git a/tagconfigs/asp.GridView.yaml b/tagconfigs/asp.GridView.yaml new file mode 100644 index 0000000..f80debf --- /dev/null +++ b/tagconfigs/asp.GridView.yaml @@ -0,0 +1,33 @@ +!Template +TagName: asp:GridView +CodeBehindType: System.Web.UI.WebControls.GridView +CodeBehindHandler: Default + +Invocations: + - !AddUsingDirective + NamespaceName: BlazorWebFormsComponents + +Templates: + Default: | + + #InnerHtml# + \ No newline at end of file diff --git a/tagconfigs/asp.HyperLink.yaml b/tagconfigs/asp.HyperLink.yaml new file mode 100644 index 0000000..772d243 --- /dev/null +++ b/tagconfigs/asp.HyperLink.yaml @@ -0,0 +1,14 @@ +!Template +TagName: asp:HyperLink +CodeBehindType: System.Web.UI.WebControls.HyperLink +CodeBehindHandler: Default + +Templates: + Default: | + + #Text# + #InnerHtml# + \ No newline at end of file diff --git a/tagconfigs/asp.HyperLinkField.yaml b/tagconfigs/asp.HyperLinkField.yaml new file mode 100644 index 0000000..a98663e --- /dev/null +++ b/tagconfigs/asp.HyperLinkField.yaml @@ -0,0 +1,22 @@ +!Template +TagName: asp:HyperLinkField + +Invocations: + - !AddUsingDirective + NamespaceName: BlazorWebFormsComponents + +Templates: + Default: | + + #InnerHtml# + \ No newline at end of file diff --git a/tagconfigs/asp.Label.yaml b/tagconfigs/asp.Label.yaml new file mode 100644 index 0000000..259b6d1 --- /dev/null +++ b/tagconfigs/asp.Label.yaml @@ -0,0 +1,13 @@ +!Template +TagName: asp:Label +CodeBehindType: System.Web.UI.WebControls.Label +CodeBehindHandler: Default + +Templates: + Default: | + \ No newline at end of file diff --git a/tagconfigs/asp.ListView.yaml b/tagconfigs/asp.ListView.yaml new file mode 100644 index 0000000..8c01b3e --- /dev/null +++ b/tagconfigs/asp.ListView.yaml @@ -0,0 +1,50 @@ +!Template +TagName: asp:ListView +CodeBehindType: System.Web.UI.WebControls.ListView +CodeBehindHandler: Default + +Invocations: + - !AddUsingDirective + NamespaceName: BlazorWebFormsComponents + +Templates: + Default: | + + #InnerHtml# + \ No newline at end of file diff --git a/tagconfigs/asp.PlaceHolder.yaml b/tagconfigs/asp.PlaceHolder.yaml new file mode 100644 index 0000000..1714dcd --- /dev/null +++ b/tagconfigs/asp.PlaceHolder.yaml @@ -0,0 +1,4 @@ +!Template +TagName: asp:PlaceHolder +Templates: + Default: "@#ID#" \ No newline at end of file diff --git a/tagconfigs/asp.RadioButton.yaml b/tagconfigs/asp.RadioButton.yaml new file mode 100644 index 0000000..4c68e14 --- /dev/null +++ b/tagconfigs/asp.RadioButton.yaml @@ -0,0 +1,30 @@ +!Template +TagName: asp:RadioButton +CodeBehindType: System.Web.UI.WebControls.RadioButton +CodeBehindHandler: Default + +Conditions: + - !HasAttribute + AttributeName: Text + ForTemplates: [WithLabel] + +Templates: + WithLabel: | + + + WithoutLabel: | + \ No newline at end of file diff --git a/tagconfigs/asp.TemplateField.yaml b/tagconfigs/asp.TemplateField.yaml new file mode 100644 index 0000000..21d881d --- /dev/null +++ b/tagconfigs/asp.TemplateField.yaml @@ -0,0 +1,15 @@ +!Template +TagName: asp:TemplateField + +Invocations: + - !AddUsingDirective + NamespaceName: BlazorWebFormsComponents + +Templates: + Default: | + + #InnerHtml# + \ No newline at end of file diff --git a/tagconfigs/asp.TextBox.yaml b/tagconfigs/asp.TextBox.yaml new file mode 100644 index 0000000..6a3f8da --- /dev/null +++ b/tagconfigs/asp.TextBox.yaml @@ -0,0 +1,48 @@ +!Template +TagName: asp:TextBox +CodeBehindType: System.Web.UI.WebControls.TextBox +CodeBehindHandler: Default + +Conditions: + - !HasAttributeWithValue + AttributeName: TextMode + AttributeValue: MultiLine + ForTemplates: [TextArea] + - !HasAttributeWithValue + AttributeName: TextMode + AttributeValue: Password + ForTemplates: [Password] + +Templates: + TextArea: | + + Password: | + + Default: | + \ No newline at end of file diff --git a/tagconfigs/body.yaml b/tagconfigs/body.yaml new file mode 100644 index 0000000..38a2c85 --- /dev/null +++ b/tagconfigs/body.yaml @@ -0,0 +1,4 @@ +!Template +TagName: body +Templates: + Default: "#InnerHtml#" \ No newline at end of file diff --git a/tagconfigs/head.yaml b/tagconfigs/head.yaml new file mode 100644 index 0000000..d9867c0 --- /dev/null +++ b/tagconfigs/head.yaml @@ -0,0 +1,7 @@ +!Template +TagName: "head" +Templates: + Default: | + @* + #InnerHtml# + *@ \ No newline at end of file diff --git a/tagconfigs/html.yaml b/tagconfigs/html.yaml new file mode 100644 index 0000000..6b8e9ca --- /dev/null +++ b/tagconfigs/html.yaml @@ -0,0 +1,4 @@ +!Template +TagName: html +Templates: + Default: "#InnerHtml#" \ No newline at end of file