|
|
|
Community Member
|
|
I have one development system that this occurs on when building via the IDE. I tried the suggested re-installation of PostSharp and that didn't help.
http://www.postsharp.org/forum/integration/invalidcastexception-build-t891.html
C:\Program Files (x86)\PostSharp 1.5\PostSharp-1.5.targets(261,5): error MSB4018: System.InvalidCastException: Unable to cast transparent proxy to type 'PostSharp.MSBuild.PostSharpRemoteTask'.
Adding <PropertyGroup> <PostSharpUseCommandLine>True</PostSharpUseCommandLine> </PropertyGroup> works fine.
I would have to add this to a lot of .csproj files which isn't a very good solution since out of 100 systems this only occurs on one so far.
Also building the same projects via the msbuild command line the build works just fine.
Does anyone have any other suggestions?
-Michael Clark
|
|
|
|
|
Gael Fraiteur
SharpCrafters
|
|
Probably the easiest way is to set the environment variable:
set PostSharpUseCommandLine=True
All environment variables are considered plain MSBuild properties.
-gael
|
|
|
|