nippe / Prowlin

A .Net library and console app to send notifications to iPhones using Prowl (http://www.prowlapp.com)
6 stars 4 forks source link

Cannot load .NET Assembly into powershell #2

Open Lunat1k opened 13 years ago

Lunat1k commented 13 years ago

This is a known issue with building .NET 4.0 libraries and using powershell. This issue is more of an FYI than a problem. I have done the following workaround but it is something you should consider as the other prowl.net library is currently supported for Powershell without recompiling the assembly or editing the config files.

Details http://connect.microsoft.com/PowerShell/feedback/details/525435/net-4-0-assemblies-and-powershell-v2#

nippe commented 13 years ago

Good point!

All I use form .NET 4.0 is the DataAnnotations for object validation. If I re-write that it should run fine on .NET 3.5. I'll have a look at it during the summer.

Lunat1k commented 13 years ago

I can understand the use of DataAnnotations as I use them all the time in my work projects. Which is why I figured I would share this info in case anyone else decides to load the assembly directly into powershell to cut down on load times. With the workaround it actually works just great.

I was also reading that powershell 3 will support 4.0 by default. However from my understanding it's not going to be released until Windows 8 gets released.