Update README.md

This commit is contained in:
m-kovalsky 2021-05-19 14:12:46 +03:00 committed by GitHub
parent 4ce04bf286
commit 8d39512336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,13 +22,15 @@ Following these steps will automatically load the Best Practice Rules into your
2. Connect to a model.
3. Run the following code in the Advanced Scripting window.
System.Net.WebClient w = new System.Net.WebClient();
string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);
string url = "https://raw.githubusercontent.com/microsoft/Analysis-Services/master/BestPracticeRules/BPARules.json";
string downloadLoc = path+@"\TabularEditor\BPARules.json";
w.DownloadFile(url, downloadLoc);
```C#
System.Net.WebClient w = new System.Net.WebClient();
string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);
string url = "https://raw.githubusercontent.com/microsoft/Analysis-Services/master/BestPracticeRules/BPARules.json";
string downloadLoc = path+@"\TabularEditor\BPARules.json";
w.DownloadFile(url, downloadLoc);
```
4. Close and reopen [Tabular Editor](https://tabulareditor.com/ "Tabular Editor").
5. Connect to a model.
@ -66,4 +68,4 @@ Following these steps will automatically load the Best Practice Rules into your
## Requirements
[Tabular Editor](https://tabulareditor.com/ "Tabular Editor") version 2.12.1 or higher.
[Tabular Editor](https://tabulareditor.com/ "Tabular Editor") version 2.16.1 or higher.