According to msbuild-results.xml:
- <message level="normal">
- <![CDATA[ For SearchPath "{GAC}".
]]>
</message>
- <message level="normal">
- <![CDATA[ Considered "System.Management.Automation", which was not
found in the GAC.
]]>
</message>
Except that gacutil states:
"System.Management.Automation, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
..and VS2005 on that machine is perfectly happy.
As a general rule you shouldn't build/develop against assemblies in the GAC.
If you install the Windows 6.0 SDK, you can find the PowerShell assemblies
installed at:
%ProgramFiles%\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0
--
Keith
"Keith Hill [MVP]" wrote:
I agree but unfortunately changing the project isn't really possible because
it's frozen by QA. It's also worth noting that the assembly is not in that
location with recent versions of PowerShell. Apparently it's now part of the
Windows SDK.
I guess that VS is able to work around the issue whereas MSBuild can't. Oh
well - I'll have to wait until the project is unfrozen again.
Oops, I didn't read your post properly and see you already mentioned that.