Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Objects Object-Oriented Programming Practice Writing Classes

Darya Zata
Darya Zata
2,562 Points

Error: no files to compile were specified

when I compile the prog, there is an error: Error: no files to compile were specified is it normal? the code is the same..

Steven Parker
Steven Parker
231,268 Points

To facilitate analysis, make a snapshot of your workspace and post the link to it here. Also please show the command you use to compile.

Can you send what you input into the console please?

James Churchill
James Churchill
Treehouse Teacher

Darya,

Were you able to resolve this issue?

Thanks ~James

2 Answers

Rasmus Hall
Rasmus Hall
1,260 Points

just type mcs *.cs

Robert Patterson
Robert Patterson
2,915 Points

without knowing what you entered, it sounds to me like you forgot the file list for the compiler :

mcs -out:TreehouseDefense.exe <<filelist>>

in the case of this project, the file list should all of your csharp source files(*.cs), so your command line should be:

treehouse:~/Workspace$ mcs -out:TreehouseDefense.exe *.cs