I am teaching myself C# by building a PowerShell module. I want to retrieve the PSScriptRoot property from the InvocationInfo class but it appears to be something that is called indirectly. Does anyone have guidance on a) how to invoke it or b) how to use it to spit out the script root?
Hi everyone,
Is it possible to do scaffolding after install our program and run it? Is using powershell right way to go to do this? Or what else can I do?
I need any advice of you.
Thank you.
Hi,
I need to do scaffolding in code. To do this I wrote this method;
public string RunScript(string scriptText)
{
string dir = @"C:\Users\demetsen\source\repos\ScaffoldingInCode\ScaffoldingInCode";
Directory.SetCurrentDirectory(dir);
Runspace...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.