Skip to content

Commit 5dee431

Browse files
committed
Update Readme with Gist and Net Core.
1 parent 917e0b9 commit 5dee431

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ This project was generated by the [AppLoader](https://ricaun.com/apploader/) Rev
1717
* Compile multiple `IExternalCommand` at once with Revit opened.
1818
* Generate `PushButton` with the compiled `IExternalCommand` with `IExternalCommandAvailability`.
1919
* AutoUpdate plugin using [ricaun.Revit.Github](https://github.com/ricaun-io/ricaun.Revit.Github).
20+
* `Gist` link downloads the content and compiles each file.
2021

21-
## Limitations
22+
## Compiler Limitations
2223

23-
In Revit 2021+ the `CodeDom.Compiler` uses the [Roslyn](https://github.com/aspnet/RoslynCodeDomProvider) version compiler.
24-
The Roslyn compiler is a new compiler that supports C# version 6 and above.
25-
26-
`CodeDom.Compiler` only work with C# compiler version `v4.0` maximum, the following features do not work in C# version 4.
24+
Revit 2017 to 2020 the `CodeDom.Compiler` only work with C# compiler version `v4.0` maximum, the following features do not work in C# version 4.
2725
* Async Features (C# version 5)
2826
* String interpolation (C# version 6)
2927

28+
Revit 2021 to 2024 the `CodeDom.Compiler` uses the [Roslyn](https://github.com/aspnet/RoslynCodeDomProvider) version compiler. The Roslyn compiler is a new compiler that supports C# version 6 and above.
29+
30+
Revit 2025+ the `CodeDom.Compiler` uses the [Microsoft.CodeAnalysis.CSharp](https://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp/) to work with NET Core.
31+
32+
The [RevitAddin.CommandLoader.Tests](RevitAddin.CommandLoader.Tests) have some tests to make sure the compiler works in Net Framework and Net Core.
33+
3034
## Customize `IExternalCommand`
3135

3236
Using `System.ComponentModel` attributes is possible to customize the `IExternalCommand` that is generated in the Revit ribbon.
@@ -39,6 +43,8 @@ If `IExternalCommandAvailability` is added in the same `IExternalCommand` class
3943

4044
### Example
4145

46+
The command below show the version of Revit in a `MessageBox`.
47+
4248
```c#
4349
using System;
4450
using System.ComponentModel;
@@ -68,7 +74,17 @@ namespace RevitAddin
6874
}
6975
```
7076

77+
### Gist Example
78+
79+
The `RevitAddin.CommandLoader` have the feature to download `gist` files from GitHub and compile the `IExternalCommand` with the `gist` file.
80+
81+
Just copy the `gist` link in the `RevitAddin.CommandLoader` compiler and execute.
82+
83+
* [CommandVersion](https://gist.github.com/ricaun/200a576c3baa45cba034ceedac1e708e) - File with Revit defines.
84+
* [CommandCreate](https://gist.github.com/ricaun/4f62b8650d29f1ff837e7e77f9e8b552) - Multiple file each with a `IExternalCommand`.
85+
7186
## Resources
87+
7288
* [ricaun.Revit.UI](https://github.com/ricaun-io/ricaun.Revit.UI)
7389
* [ricaun.Revit.Mvvm](https://github.com/ricaun-io/ricaun.Revit.Mvvm)
7490
* [ricaun.Revit.Github](https://github.com/ricaun-io/ricaun.Revit.Github)

0 commit comments

Comments
 (0)