© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago
Cyan

ASP.NET Website project without namespaces. Converting to ASP.NET Web application.

Hi guys, I have a legacy ASP.NET Website project which I want to convert to ASP.NET Website application. So I can actually reference it from outside and unit test. The problem is now. I have followed the guide and copied the code over to a new project. Everything went well. Just one big problem. Classes don't see each other references anymore. I get hundreds of errors.

So I tried using resharper to create namespaces for every class. This went kinda well and now every class has a namespace App_Code.

Now, for some reason using import App_Code doesn't work but I am able to directly reference classes by using var example = new App_Code.ExampleClass;

I have hundreds of lines I need to edit to directly reference the classes.

Anyone have any tip or advice how I can make my life less of a hell?
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

✅ ASP.NET 'web' application
C#CC# / help
2y ago
✅ ASP.NET CORE Web Application
C#CC# / help
15mo ago
❔ ASP.NET Core web app vs ASP.net web application(.NET Framework)
C#CC# / help
4y ago
❔ Converting ASP.NET 6 to ASP.NET 5
C#CC# / help
4y ago