Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find System.Object VB.NET

Tags:

vb.net

Error : Fody: Could not find 'System.Object'. WindowsApp1

hi, something called Fody, it embed dlls assembly into project.

problem is it work only with C# |and i need use it as VB, i cant reduce Netframwork less than 4.6 cause dll's required high netframwork.

error only occurs when running Fody on a VB assembly using the full .Net Framework

the tested result

so they say it can be solve By

try adding explicit references to your VB project

<Reference Include="mscorlib" />
<Reference Include="System" />

how can do it, because not automatically included in VB projects

like image 955
Darzy08 Avatar asked Dec 17 '22 17:12

Darzy08


1 Answers

  • Go to your Project file
  • edit vbproj
  • you can find <Reference Include="System" />
  • add before it <Reference Include="mscorlib" />
like image 60
Dev I.A Avatar answered Jan 16 '23 00:01

Dev I.A