© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
20 replies
MagicJinn

ILSpy decompiles namespaces incorrectly

I'm having an issue where ILSpy is decompiling scripts like this:

namespace Sunless.Game.AI;

public class HuntingPlus : AIBehaviour{ code here }
namespace Sunless.Game.AI;

public class HuntingPlus : AIBehaviour{ code here }


Instead of
namespace Sunless.Game.AI
{
public class HuntingPlus : AIBehaviour{ code here }
}
namespace Sunless.Game.AI
{
public class HuntingPlus : AIBehaviour{ code here }
}



Which is a big issue for the around 1000+ scripts it generates. I cannot fix it all manually. Did I configure something wrong?
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

✅ namespaces
C#CC# / help
3y ago
Inconsistent namespaces
C#CC# / help
4y ago
are theses considered namespaces?
C#CC# / help
2y ago
✅ TCP Socket incorrectly reading
C#CC# / help
3y ago