Can you still load .NET assemblies inside your PowerShell script even if .NET Framework is not installed? It confuses me because C:\Windows\Microsoft.NET\Framework is there with folders from versions 1 to 4 in there. But if I look at Programs and Features, Microsoft .NET Framework is not installed in there.
I’m asking because in one of my environment where I have my script and .NET 4.0 is installed, it works fine. But in the environment where .NET framework is not installed but the assemblies are in there, it fails saying that it cannot find type System.Runtime.Serialization.Json.DataContractJsonSerializer. I have code which loaded the System.Runtime.Serialization assembly.