Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

XamlCTask error on new cross plat solution.

$
0
0

The "XamlCTask" task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly 'Mono.Cecil.Pdb, Version=0.10.0.0, PublicKeyToken=50cebf1cceb9d05e' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
File name: 'Mono.Cecil.Pdb, Version=0.10.0.0, PublicKeyToken=50cebf1cceb9d05e' ---> System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at System.AppDomain.nApplyPolicy(AssemblyName an)
at System.AppDomain.ApplyPolicy(String assemblyName)
at Microsoft.VisualStudio.Platform.VsAppDomainManager.MatchAssemblyName(AssemblyName reference, AssemblyName definition)
at Microsoft.VisualStudio.Platform.VsAppDomainManager.FindAssembly(String name, IEnumerable1 probingPaths) at Microsoft.VisualStudio.Platform.VsAppDomainManager.VsAssemblyResolver.CoreAssemblyResolveHandler(Object sender, ResolveEventArgs args) at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName) at Mono.Cecil.Cil.SymbolProvider.GetSymbolType(SymbolKind kind, String fullname) at Mono.Cecil.Cil.SymbolProvider.GetReaderProvider(SymbolKind kind) at Mono.Cecil.Cil.DefaultSymbolReaderProvider.GetSymbolReader(ModuleDefinition module, String fileName) at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters) at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters) at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters) at Xamarin.Forms.Build.Tasks.XamlCTask.Execute(IList1& thrownExceptions)
at Xamarin.Forms.Build.Tasks.XamlTask.Execute()
at Microsoft.Build.Framework.ITask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

Done building project "TestApp.Android.csproj" -- FAILED.
Build FAILED.

at Xamarin.VisualStudio.Android.Services.AndroidToolsBuildService.RunMSBuildTarget(Project project, IProgressReport progress, String msbuildTarget, MsBuildLogger msbuildLogger, IDictionary2 properties, IDictionary2 globalProperties, Boolean runInProc) in E:\A_work\61\s\src\Core\VisualStudio.Android\Services\AndroidToolsBuildService.cs:line 184
at Xamarin.VisualStudio.Android.Services.AndroidToolsBuildService.InstallPackage(Project project, IMonoAndroidDevice device, Boolean preserveDeviceData, IProgressReport progress, Boolean runInProc) in E:\A_work\61\s\src\Core\VisualStudio.Android\Services\AndroidToolsBuildService.cs:line 120
Mono.Debugging.VisualStudio.DebugLauncher|Error|0|Controller.Launch ()
Xamarin.VisualStudio.ProgressReport|Error|0|System.Runtime.InteropServices.COMException (0x89710015): Unable to start debugging.

The system cannot find the file specified.

at Microsoft.VisualStudio.Shell.Interop.IVsDebugger4.LaunchDebugTargets4(UInt32 DebugTargetCount, VsDebugTargetInfo4[] pDebugTargets, VsDebugTargetProcessInfo[] pLaunchResults)
at Mono.Debugging.VisualStudio.DebugLauncher.StartDebugger(SoftDebuggerSession session, StartInfo startInfo) in E:\A_work\84\s\src\Debugging.VisualStudio\DebugLauncher.cs:line 49
at Mono.Debugging.VisualStudio.MonoDebuggerLauncher.StartSession(StartInfo startInfo, SoftDebuggerSession session) in E:\A_work\84\s\src\Debugging.VisualStudio\MonoDebuggerLauncher.cs:line 29
at Xamarin.VisualStudio.Android.CommandHandlers.DebugCommandHandler.StartDebugger(IProgressReport progress, IAndroidProjectProperties properties, AndroidDevice device, String package, String activity, Project project) in E:\A_work\61\s\src\Core\VisualStudio.Android\CommandHandlers\DebugCommandHandler.cs:line 126
at Xamarin.VisualStudio.Android.CommandHandlers.DebugCommandHandler.Execute(DebugCommand command, IProgressReport progress, CancellationToken cancellationToken) in E:\A_work\61\s\src\Core\VisualStudio.Android\CommandHandlers\DebugCommandHandler.cs:line 85
at Xamarin.VisualStudio.Commands.CommandHandlerBase`1.Execute(TCommand command, CancellationToken cancellationToken) in E:\A_work\61\s\src\Core\VisualStudio\Commands\CommandHandlerBase.cs:line 62

VS2017 Enterprise 15.6.1
Xamarin 4.9.0.749
Anyone had this issue? this started happening after I updated VS and started to have this issue few times and worked fine then now its constant error on new pcl forms project as well.

I have tried many solutions but did not work.

cleans,rebuild solution,
deleted bin and obj folders
restarted VS as admin
deleted nuget package and restored
build configuration, unchecked build and apply and rechecked build,deploy
etc...


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>