MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1
I'm running this file
test.cs
using the terminal but i keep getting the error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1
5 Replies
C# is project based, not file based. Do you have a
.csproj
file too?No
Well, thats why then
you should be creating projects only via
dotnet new
not manually creating empty filesok
thanks
so for this project, a
dotnet new console -n FavoriteNumber
or something like that (FavoriteNumber is your project name) sounds reasonable