TabularEditorScripts icon indicating copy to clipboard operation
TabularEditorScripts copied to clipboard

VSCode Version of GetMacro

Open samaguire opened this issue 2 years ago • 2 comments

https://www.esbrina-ba.com/c-scripting-nirvana-effortlessly-use-visual-studio-as-your-coding-environment/

  • create a c# project for the classes
  • pull the classes into C# scripts
  • create a class for converting VSCode scripts into Tabular Editor scripts
  • reverse for point above
  • update management scripts to use above classes instead of inline script
  • create script for creating dll
  • update management scripts to ref dll when importing into TE (taking into account above changes) if the classes are referenced.
  • create script to import from existing script files

samaguire avatar May 14 '23 23:05 samaguire

Reviewing this again i think:

  1. change this to use references to nuget packages for the code anlysis
  2. update so that common library also uses nuget package locations and doesn't include the code to copy as this is execute every time
  3. create a script to update all the environment variables and create the macro import script
  4. fix TE2 macro error due to this ref #r "Microsoft.AnalysisServices.Core"

samaguire avatar Aug 11 '23 22:08 samaguire

https://twitter.com/AgulloBernat/status/1657367476483547137

Could look at script to convert the custom classes csx to cs and compile from there

samaguire avatar Aug 11 '23 22:08 samaguire