Skip to content

Commit 4f6c60c

Browse files
author
Warren Buckley
committed
Updates readme for <our-version>
1 parent bc0192f commit 4f6c60c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,16 @@ This tag helper element `<our-fallback>` uses the same fallback mode logic that
198198
<h3><our-fallback property="Header" mode="Fallback.ToAncestors">I do NOT have a Header property set on ANY parent and ancestors</our-fallback></h3>
199199
```
200200

201+
## `<our-version>`
202+
This tag helper element `<our-version>` prints out version number for a given Assembly name loaded into the current AppDomain or if none is given then the EntryAssembly version is displayed, which would be the Umbraco website project you are building.
203+
204+
```cshtml
205+
<!-- Prints out the Website Project Assembly Version -->
206+
<our-version />
207+
208+
<!-- Prints out the version number of a specific assembly loaded into Current AppDomain -->
209+
<our-version="Our.Umbraco.TagHelpers" />
210+
```
201211

202212
## Video 📺
203213
[![How to create ASP.NET TagHelpers for Umbraco](https://user-images.githubusercontent.com/1389894/138666925-15475216-239f-439d-b989-c67995e5df71.png)](https://www.youtube.com/watch?v=3fkDs0NwIE8)

0 commit comments

Comments
 (0)