© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
17 replies
Pillow

❔ Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly

Full error:
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'xTile, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'xTile, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null'
   at ToasterMapCLI.ToasterMapCLI.Main(String[] args)
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'xTile, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'xTile, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null'
   at ToasterMapCLI.ToasterMapCLI.Main(String[] args)


the part of the csproj for it
<ItemGroup>
        <Reference Include="xTile" HintPath="C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\xTile.dll" />
    </ItemGroup>
<ItemGroup>
        <Reference Include="xTile" HintPath="C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\xTile.dll" />
    </ItemGroup>
that dll exists, both in the hintpath and the compiled folders though
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unhandled exception. System.IO.FileNotFoundException
C#CC# / help
2y ago
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.SqlClient
C#CC# / help
15mo ago
Exception Unhandled : Could not load file or assembly 'Serilog.Extensions.Hosting
C#CC# / help
3y ago
❔ Exception System.IO.FileNotFoundException
C#CC# / help
4y ago