Error in VS 2012

Sep 12, 2013 at 3:12 PM
When building any solution with VS 2012 and SharePoint 2013 (German Version) I get the following errors:

Fehler 1 Unerwarteter Fehler bei der FixPackageManifestTask-Aufgabe.
System.ArgumentException: Das Objekt mit dem Typ "Microsoft.Build.Execution.ProjectItemInstance+TaskItem" kann nicht in den Typ "Microsoft.Build.Framework.ITaskItem" konvertiert werden.
bei System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
bei System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
bei System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
bei System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
bei System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
bei Microsoft.Build.Execution.TaskFactoryWrapper.SetPropertyValue(ITask task, TaskPropertyInfo property, Object value)
bei Microsoft.Build.BackEnd.TaskExecutionHost.InternalSetTaskParameter(TaskPropertyInfo parameter, Object parameterValue) Components

and

Der Manifest=$(LayoutPath)%(EnumeratedFiles.Package)\manifest.xml-Parameter für die FixPackageManifestTask-Aufgabe ist ungültig. Components

and

Die FixPackageManifestTask-Aufgabe konnte nicht mit den Eingabeparametern initialisiert werden. Components

Thank you for your help.

Kind regards

mike
Coordinator
Oct 28, 2013 at 9:29 PM
Hi Mike,

sorry for the late reply. Somehow that issue got lost on my todo list :(

You can disable the FixPackageManifest Target in the SPSF.targets file.
  1. To do that remove the reference in all "DependsOn=" dependencies
  2. Save
  3. Close and reload the entire solution (the targets file is cached in VS)
The FixPackageManifest task is not necessary and will be removed in the next version of SPSF.

BR

Matthias
Coordinator
Oct 28, 2013 at 9:30 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.