3 ms·
Good news. You can write C# that powershell will compile on the fly. It's so ingrained in Microsoft applications that even MSSQL Server will do it as well, if y
by martinsnow 2y ago
Good news. You can write C# that powershell will compile on the fly. It's so ingrained in Microsoft applications that even MSSQL Server will do it as well, if you want to go down that route.
- oblio 2y agoHow?
- martinsnow 2y agoExecuting C# in Powershell: https://blog.adamfurmanek.pl/2016/03/19/executing-c-code-using-powershell-script/index.html https://blog.adamfurmanek.pl/2016/03/19/executing-c-code-usi... Executing C# in SQL Server: https://learn.microsoft.com/en-us/sql/language-extensions/how-to/call-c-sharp-from-sql?view=sql-server-ver16 https://learn.microsoft.com/en-us/sql/language-extensions/ho... An anecdote: about 7 years ago I made an postal code lookup function for SQL server, that would parse a csv from the danish postal services, that was retrieved from a HTTP GET in T-SQL, then parsed with C# to get the city from a postal code. It was a project i did for fun at school.