Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Executing PowerShell code at the API level
#14
If don't want to change role, here is another way.

Code:
Copy      Help
if (script.role == SRole.MiniProgram) {
    var refLink = pathname.getDirectory(System.Reflection.Assembly.GetEntryAssembly().Location) + @"\ref";
    if (!filesystem.exists(refLink)) filesystem.more.createSymbolicLink(refLink, folders.Workspace + @".nuget\ps\ref", CSLink.Junction);
}


Messages In This Thread
RE: Executing PowerShell code at the API level - by Gintaras - 05-27-2024, 08:03 AM

Forum Jump:


Users browsing this thread: 12 Guest(s)