© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
Thinker

❔ Predefined type is not defined when using dotnet-script

I'm getting an error for
System.Object
System.Object
and
System.String
System.String
that they're not imported when creating a new .csx file when using dotnet-script. Any ideas?
image.png
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

✅ Predefined type 'System.ValueTuple2' is not defined or imported
C#CC# / help
3y ago
❔ Unity Predefined type 'System.IAsyncDisposable' is not defined or import
C#CC# / help
3y ago
❔ Specify working directory when using dotnet watch
C#CC# / help
3y ago