I have a C++ project (assembly) and a C# project (client that uses the C++
assembly). These projects used to work when compiled under VS 2003 but when
I upgraded my projects to VS 2005 I got the following error when I compile
the C# client,
----------------------------------------------------------------------------
--------------------------------------------
The "ResolveNativeReference" task failed unexpectedly.
System.ArgumentNullException: Parameter "metadataValue" cannot be null.
at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowA rgumentNull(Object
parameter, String parameterName)
at Microsoft.Build.Utilities.TaskItem.SetMetadata(Str ing metadataName,
String metadataValue)
at
Microsoft.Build.Tasks.ResolveNativeReference.Extra ctFromManifest(ITaskItem
taskItem, String path, Hashtable containingReferenceFilesTable, Hashtable
containedPrerequisiteAssembliesTable, Hashtable containedComComponentsTable,
Hashtable containedTypeLibrariesTable, Hashtable
containedLooseTlbFilesTable, Hashtable containedLooseEtcFilesTable)
at Microsoft.Build.Tasks.ResolveNativeReference.Execu te()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask (ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup
projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
----------------------------------------------------------------------------
--------------------------------------------
I searched the MSDN forum and found another guy had the same problem
(
http://forums.microsoft.com/msdn/Sho...isthread=false
&siteid=1&authhash=300d160e0f32a3abd006853e6246666 0da83fab9&ticks=6328166038
53148671
). Any one seen this and know how to fix it?
Thanks.