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
Copy file name to clipboardExpand all lines: docs/Migration/NET-Standard.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
# .NET Standard to the Rescue
2
-
3
1
.NET Standard is the definition of a contract, a series of APIs, that all .NET frameworks must implement to be considered a .NET framework. .NET Framework, .NET Core, Xamarin, and Mono all implement various .NET Standard versions (or specifications) and this now becomes a vehicle for you to build your class libraries to be re-usable across various version of .NET.
4
2
5
3
>> Needs links to the .NET Standard specifications and repository on GitHub
@@ -19,8 +17,16 @@ For your existing Web Forms applications, unless you are executing unsafe code o
19
17
20
18
## Sample 1: Update an existing class library
21
19
22
-
The first sample demonstrates updating a simple class library to .NET Standard. In this model, we're assuming that you already have your business logic code properly separated from your user-interface and managed inside a class-library project that targets .NET Framework 4.5. You can find the source and directions for this sample in the [samples/netstandard-1](samples/netstandard-1) folder.
20
+
The first sample demonstrates updating a simple class library to .NET Standard. In this model, we're assuming that you already have your business logic code properly separated from your user-interface and managed inside a class-library project that targets .NET Framework 4.5.
21
+
22
+
### Sample
23
+
24
+
This is a simple migration sample, demonstrating migrating a class-library from .NET Framework 4.5 to .NET Standard 2.0
23
25
24
26
## Sample 2: Refactoring Business Logic
25
27
26
-
The second sample shows how to take an existing ASP<span></span>.NET application and refactor our some business logic as a .NET Standard project. You can find the source and directions for this sample in the [samples/netstandard-2](samples/netstandard-2) folder.
28
+
The second sample shows how to take an existing ASP<span></span>.NET application and refactor our some business logic as a .NET Standard project.
29
+
30
+
### Sample
31
+
32
+
This sample shows how to refactor some business logic from our Web Forms application into a .NET Standard library that can eventually be re-used in the .NET Core / ASP<span></span>.NET Core / Server-side Blazor application.
Copy file name to clipboardExpand all lines: docs/Migration/Strategies.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,10 @@
1
-
# Migration Strategies
2
-
3
1
Migration from ASP<span></span>.NET Web Forms to Blazor is not simple and this repository attempts to make it easier for developers to reuse as much of their Web Forms application as possible. The two technologies are 'concept compatible', but run on different implementations of the .NET runtime (.NET Framework vs. .NET Core / .NET 5+)
4
2
5
3
We, the maintainers of this project, believe that with a little ingenuity the markup from a Web Forms application can be copied over with minimal changes and function similarly to its original purpose. We believe that well formatted and maintained code in Web Forms should be easily migrated. Applications that are a significant mix of C# and markup will have a more difficult time going through this process.
6
4
7
5
## Readiness Planning
8
6
9
-
Migrating an application to Blazor is not a trivial process and it would be great to have some indication ahead of time how much work is needed and what steps you need to take to prepare to migrate. Check our migration [readiness document](../migration_readiness.md) to help determine how much work will be needed for your application to begin the process.
7
+
Migrating an application to Blazor is not a trivial process and it would be great to have some indication ahead of time how much work is needed and what steps you need to take to prepare to migrate. Check our migration [readiness document](migration_readiness.md) to help determine how much work will be needed for your application to begin the process.
10
8
11
9
## Known Required Changes
12
10
@@ -34,7 +32,7 @@ The concept of a MasterPage does not exist in Blazor. Instead, your ASPX pages
34
32
35
33
### Page Directive Changes
36
34
37
-
### No <%#: DataBinding expressions
35
+
### No <%#: DataBinding expressions
38
36
39
37
Databinding expressions in Web Forms let you evaluate the content of the elements and format them appropriately for presentation. For editor controls, it also allows you to setup a 2-way binding so that you can receive values entered into the same variable bound to the control.
40
38
@@ -50,25 +48,25 @@ For editor components, simply `@bind` the variable to the component. This will
50
48
<inputtype="text"name="foo"@bind="bar" />
51
49
```
52
50
53
-
### No Namespaces, No Tag-Prefixes
51
+
### No Namespaces, No Tag-Prefixes
54
52
55
53
Namespaces and tag-prefixes are gone. You can do a Find and Replace on `asp:` and remove those from your markup.
56
54
57
55
### Redirect Color to WebColor
58
56
59
-
This change should **NOT** require any coding modifications. In Web Forms, you could refer to `System.Drawing.Color` objects when setting `BackColor`, `BorderColor`, and `ForeColor` to name a few properties. You could _ALSO_ freely use HTML hex-color notation freely in these fields.
57
+
This change should **NOT** require any coding modifications. In Web Forms, you could refer to `System.Drawing.Color` objects when setting `BackColor`, `BorderColor`, and `ForeColor` to name a few properties. You could _ALSO_ freely use HTML hex-color notation freely in these fields.
60
58
The `System.Drawing.Color` object does not have a converter that allows you to convert between these two formats, so we wrapped the object and made `BlazorWebFormsComponents.WebColor` that performs the same task and allows the interchange of `System.Drawing.Color` object with HTML hex notation.
Copy file name to clipboardExpand all lines: docs/Migration/migration_readiness.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
# Web Forms Application Migration Readiness
2
-
3
1
This document is intended as a primer for prospective teams to review in preparation for migrating their Web Forms applications to Server-Side Blazor. We believe the migration is a multi-step process and this application review and preparation is the first step in migrating / rewriting an application using Blazor.
0 commit comments