Skip to content

Instantly share code, notes, and snippets.

@kzu
Created September 12, 2012 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kzu/3708340 to your computer and use it in GitHub Desktop.
Save kzu/3708340 to your computer and use it in GitHub Desktop.
Failed resource generation task
After hardcoding a fix to the GenerateResourceDesigner in the targets file with:
<GenerateResourceDesigner
IsApplication="true"
NetResgenOutputFile="$(ResgenTemporaryDirectory)\$(AndroidResgenFilename)"
JavaResgenInputFile="$(_GeneratedPrimaryJavaResgenFile)"
Namespace="$(AndroidResgenNamespace)"
Resources="@(_AndroidResourceDest)"
ResourceDirectory="$(MonoAndroidResDirIntermediate)"
/>
Exception is thrown:
Error 43 The "GenerateResourceDesigner" task failed unexpectedly.
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
at Xamarin.Android.Tasks.GenerateResourceDesigner.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets 499 2 AndroidApplication4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment