© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4mo ago•
11 replies
Bruno.uy

dotnet test app.cs

.NET 10 can run a C# file directly using dotnet run app.cs. But my .cs doesn't have a Main(). It's actually a small xunit test class for https://adventofcode.com/2024/day/N Can I get away with not creating a .csproj for test files?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

error CS1061, error CS0105, CS0103
C#CC# / help
2y ago
❔ Jenkins Pipeline with dotnet test
C#CC# / help
4y ago
docker-angular-dotnet app
C#CC# / help
2y ago