add-type Questions

4

Solved

I want to use PowerShell with selenium and download selenium from http://www.java2s.com/Code/Jar/s/Downloadseleniumremotedriver2350jar.htm . When I try to load one of the dlls, I got errors. Hope s...
Nudism asked 14/9, 2013 at 11:49

5

Solved

I'm using classes in PS with WinSCP PowerShell Assembly. In one of the methods I'm using various types from WinSCP. This works fine as long as I already have the assembly added - however, because o...
Cockneyfy asked 16/3, 2017 at 14:49

6

Solved

I'm currently writing a library in C# and was using PowerShell to quickly test it on some occasions. However, this prevents me from re-building the project as PowerShell obviously still has the DLL...
Rostellum asked 30/7, 2010 at 8:6

3

Solved

When you want to add an assembly from a network UNC share using the command: $scriptPath = Split-Path ($MyInvocation.MyCommand.Path) Add-Type -path "$scriptPath\selenium-dotnet\net40\WebDriver.dll...
Coussoule asked 13/11, 2013 at 15:4

5

Solved

Consider the following PowerShell snippet: $csharpString = @" using System; public sealed class MyClass { public MyClass() { } public override string ToString() { return "This is my class. The...
Wysocki asked 14/5, 2013 at 21:2
1

© 2022 - 2024 — McMap. All rights reserved.