Skip to content

Commit 4b0a216

Browse files
authored
Update README.md
1 parent 0a313f7 commit 4b0a216

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Vazor 2.0 (Updated to .NET 6)
22
Copyright (c) 2019-2020 Mohammad Hamdy Ghanem.
3+
34
![vazorpng](https://user-images.githubusercontent.com/48354902/77369645-c1e08f80-6d67-11ea-9929-c62b5529154e.png)
5+
46
Vazor stands for VB.NET Razor.
57
It allows you to write ASP.NET (both MVC Core and Razor Pages) applications with VB.NET including designing the views with vb.net code embedded in XML literals (which VB.NET supports)!
68

@@ -9,16 +11,17 @@ Read about [Vazor history](https://github.com/VBAndCs/Vazor/blob/master/A-Vazor-
911

1012
# Project and Item Templates
1113
To easily crate Vazor apps in VS2019 and VS2022:
12-
Download this VS Extension [VazorEx](https://marketplace.visualstudio.com/items?itemName=ModernVBNET.Vazor), and Double-click the file `VazorEx.vsix` to setup these Vazor templates.
13-
1- A Vazor project template for ASP.NET MVC Core 6.0 .
14-
2- A Vazor project template for ASP.NET Web Pages Core 6.0 .
15-
3- A VazorView item template to add a new vazor view (.vazor and .vbxml.vb files) to the MVC project.
16-
4- A VazorPage item template to add a new vazor page (.cshtml, .cshtml.vb, and .vbxml.vb files) to the Razor Pages project.
14+
Download this VS Extension [VazorEx](https://marketplace.visualstudio.com/items?itemName=ModernVBNET.Vazor), and Double-click the file `VazorEx.vsix` to setup these Vazor templates:
15+
16+
1. A Vazor project template for ASP.NET MVC Core 6.0 .
17+
2. A Vazor project template for ASP.NET Web Pages Core 6.0 .
18+
3. A VazorView item template to add a new vazor view (.vazor and .vbxml.vb files) to the MVC project.
19+
4. A VazorPage item template to add a new vazor page (.cshtml, .cshtml.vb, and .vbxml.vb files) to the Razor Pages project.
1720

1821
After installation:
19-
1- open VS.Net and create a new project. In the search box, write Vazor, and choose one of the 2 vazor project templates.
20-
2- In the project created, right-click a folder in solution explorer and select Add/New Item.
21-
3- From the dialoge box select VazorView (if this is an MVC project) or VazorPage (if this is a Razor Pages project).
22+
1. open VS.Net and create a new project. In the search box, write Vazor, and choose one of the 2 vazor project templates.
23+
2. In the project created, right-click a folder in solution explorer and select Add/New Item.
24+
3. From the dialoge box select VazorView (if this is an MVC project) or VazorPage (if this is a Razor Pages project).
2225

2326
# Html5 Auto-Completion in Vazor:
2427
VazorEx also installs an Html5 CompletionProvider.
@@ -27,7 +30,7 @@ It provides Html5 auto completion in VB XML literals:
2730
The auto completion is enabled only when XML root is `<vbxml>` or `<zml>`:
2831
```VB.NET
2932
Dim x = <vbxml>
30-
<!auto completion for HTML 5 is available here -->
33+
<!auto completion for HTML 5 is available here -->
3134
</vbxml>
3235
```
3336

@@ -141,7 +144,7 @@ End Class
141144
In vbxml code you can follow these rules:
142145
* XML literals have only one root. So, it you don't eant to add extra html5 tag to contain the page content, wrap your code in a `<vbxml>` tag.
143146
* All html tags and their attributes can be represented in XML, but there is no intellisense support for them until now.
144-
* Use Razor conventions and tools, like helper tags, sections, partial views, scripts… etc.
147+
* Use Razor conventions and tools, like helper tags, sections, partial views, scripts… etc.
145148
* Use `<%= VBCode %>` to insert vb code.
146149
* You can use @VBCode, but vb will consider it as a plain text, so you will have no intellisense for it, but it will be evaluated by Razor in runtime. This is why you must use c# syntax for expressions written after the @ symbol.
147150
* Use inline-invoked lambda expression to imbed code blocks, like given in the above sample.

0 commit comments

Comments
 (0)