Xamarin"GenerateResourceDesigner"任务意外失败,无法找到.dll文件 [英] Xamarin "GenerateResourceDesigner" task failed unexpectedly and .dll file could not be found
问题描述
我正在运行一个Xamarin PCL项目,该项目将部署到包括UWP Windows 10和Windows 8在内的所有平台.
我刚刚在git上合并了一个分支,并解决了一些冲突(不是很清楚),并且出现了一些错误.
第一个错误:
The "GenerateResourceDesigner" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Vigour, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Vigour.dll'
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.GetAssembly(String fileName)
at Xamarin.Android.Tasks.GenerateResourceDesigner.<Execute>c__AnonStorey0.<>m__0(String ass)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at Xamarin.Android.Tasks.ResourceDesignerImportGenerator.CreateImportMethods(IEnumerable`1 libraries)
at Xamarin.Android.Tasks.GenerateResourceDesigner.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() Vigour.Droid
第二个:
我知道这是常见问题,我已经尝试取消勾选并勾选解决方案配置中每个项目的构建.
我还试图删除.vs/../.suo文件以重置项目
但是我没有运气.我认为这可能与涉及更改.csproj文件的合并有关.
解决方案是重新安装适用于android的xamarin表单,正如@ hvaughan3所说,删除所有目录的bin和obj文件夹以及软件包. >
Hi I'm running a Xamarin PCL project thats deploying to all platforms including UWP windows 10 and windows 8.
I've just merged a branch on git and resolved some conflicts (not very well clearly) and i'm getting a few errors.
The first error:
The "GenerateResourceDesigner" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Vigour, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Vigour.dll'
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.GetAssembly(String fileName)
at Xamarin.Android.Tasks.GenerateResourceDesigner.<Execute>c__AnonStorey0.<>m__0(String ass)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at Xamarin.Android.Tasks.ResourceDesignerImportGenerator.CreateImportMethods(IEnumerable`1 libraries)
at Xamarin.Android.Tasks.GenerateResourceDesigner.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() Vigour.Droid
The second one:
I know this is a common problem and I've tried to un-tick and tick the build of each project in the solutions configuration.
I've also tried to remove the .vs/../.suo file to reset the project
However I've had no luck. I think that it might have something to do with the merger that involved changing the .csproj files.
Solution to this was to reinstall the xamarin forms for android and as @hvaughan3 said, deleting the bin and obj folder for all directories along with the packages.
这篇关于Xamarin"GenerateResourceDesigner"任务意外失败,无法找到.dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!