Update README.md
updated the c# script to fetch the BPARules from GitHub to be more robust.
This commit is contained in:
parent
fc3d05e623
commit
4651f4dfaf
@ -19,8 +19,9 @@ Following these steps will automatically load the Best Practice Rules into your
|
|||||||
System.Net.WebClient w = new System.Net.WebClient();
|
System.Net.WebClient w = new System.Net.WebClient();
|
||||||
|
|
||||||
string userName = System.Environment.UserName;
|
string userName = System.Environment.UserName;
|
||||||
|
string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);
|
||||||
string url = "https://raw.githubusercontent.com/microsoft/Analysis-Services/master/BestPracticeRules/BPARules.json";
|
string url = "https://raw.githubusercontent.com/microsoft/Analysis-Services/master/BestPracticeRules/BPARules.json";
|
||||||
string downloadLoc = @"C:\Users\"+userName+@"\AppData\Local\TabularEditor\BPARules.json";
|
string downloadLoc = path+@"\TabularEditor\BPARules.json";
|
||||||
|
|
||||||
w.DownloadFile(url, downloadLoc);
|
w.DownloadFile(url, downloadLoc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user