IlMerge in VSTO project results in FindRibbons error - vsto

I created a fresh VSTO project .NET 4.5.1 (Outlook) and setup IlMerge using the tutorial here.
After the failure I looked in the bin/debug and OutlookAddIn8.dll is there so I'm not sure how it's having a problem finding it. Is there something specific I need to do for VSTO projects?
Error 1 The "FindRibbons" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'OutlookAddIn8, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
or one of its dependencies. The system cannot find the file specified.
File name: 'OutlookAddIn8, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Related

Visual Basic Could not load file or assembly 'System.Data.Common, Version=6.0.0.0 error

So, i sent the project directory to my friend, but whenever he runs it he allwys get this error we are trying to search for a solution but we can find any
The error says:
System.IO.FileNotFoundException: 'Could not load file or assembly
'System.Data.Common, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system could not find the specified file.'

Unable to Strong name an Microsoft.ToolKit.Uwp.UI.Controls assembly with StrongNamer, Any alternative?

Installed Microsoft.ToolKit.Uwp.UI.Controls from nuget to use MarkDownTextBlock control in my xaml user control. But ended up with error assembly is not strongly named.
To avoid it, Installed StrongNamer from nuget but now ended up with error 'Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
Are there any alternatives to avoid errors from step 1 or step 2?

Could not load file or assembly 'LibGit2Sharp.GitServer, Version=14.0.0.0, Culture=neutral, PublicKeyToken=xx' or one of its dependencies

I was trying to execute a powershell script after tfs build by customizing the default process template using vs2017. According to this article i have to use InvokeProcess and ConvertWorkspaceItem activities. Since it was not found in the tool box, referring from here, I tried to add Microsoft.TeamFoundation.Build.Workflow.dll to the tool box. But the following error shows up
Could not load file or assembly 'LibGit2Sharp.GitServer, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
I am really stuck in this. Any help

Package Manager Console not opening

When ever i try to open package manage console from my visual studio 2017(Community) it will give me following error.
Could not load file or assembly 'System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)

Could not load file or assembly 'Mono.Posix'

I'm attempting to run an exe on RHEL 6 using Mono. I've compiled Mono 4.0.2.4 and when I try to run my exe it crashes.
My Command:
/opt/mono/bin/mono /opt/mono/lib/mono/4.5/mono-service.exe -l:plexos.lock ./DALicenseServer.exe
The Error.
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
I think I have the Mono.Posix.dll file:
ls /opt/mono/lib/mono/4.0/Mono.Posix.dll
/opt/mono/lib/mono/4.0/Mono.Posix.dll
This is a bug (Bug 56787) currently tracked by the Xamarin team. You must download and paste the missing dll in your environment then restart visual studio.
for vs 2015 paste here the dll:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin\
for vs 2017 paste here the dll:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Xamarin.VisualStudio
check this link for step by step: https://releases.xamarin.com/common-issues-in-the-xamarin-15-2-2-release-being-tracked-by-the-xamarin-team/
1) Try running mono with trace mode to see if it really is Mono.Posix.dll or a native shared library (.so) that is not being found.
mono --trace /opt/mono/lib/mono/4.5/mono-service.exe -l:plexos.lock ./DALicenseServer.exe
2) Check to see if the assembly has been installed properly in the GAC:
gacutil -l Mono.Posix
The following assemblies are installed into the GAC:
Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756
Number of items = 1
3) If the assembly is not found in the GAC, something went wrong during the install (make install) as this assembly is part of the framework install. You can manually assign the MONO_PATH to tell mono where it should find assemblies that are not in the current directory ($PWD) and/or not in the GAC:
export MONO_PATH=/path/to/assemblies:/another/path/to/assemblies:$PATH