I have a project which can be compiled without problems on windows 7. Now I am trying to move to windows 10 and the exact same project can not be compiled on windows 10.
I have a german environment so I will try to translate the error message.
The primary reference “system.management.automation” (version 3.0.0.0) could not be resolved, because it has a dependence to Microsoft.Management.Infrastructure.Native (version 1.0.0.0) which is build on .net framework 4.5.
because of this message i tried to change my target framework to point to .net 4.5. targeting 4.5 it works fine, but because of other assemblies I need to compile everything with .net 4.
As I mentioned, on a windows 7 machine the exact same code can be compiled without any issues.
It is my first post on powershell.org and I hope this is the correct forum for my question.
Thanks in advance
Alex