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# Creating Projects

Compile in VS

I created a project for TreehouseDefense using the same ConsoleApp template as in the video. I added the classes except for the Game.cs. I copied the lines from Game.cs to Program.cs. I kept the directives VS put in the Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

I compiled and got the output below. What does that mean?

'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\14.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\14.0.0.0b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\14.0.0.0b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'c:\users\mama\documents\visual studio 2015\Projects\TreehouseDefense1\TreehouseDefense1\bin\Debug\TreehouseDefense1.vshost.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0b77a5c561934e089\System.Data.DataSetExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0b03f5f7f11d50a3a\Microsoft.CSharp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. The program '[11484] TreehouseDefense1.vshost.exe' has exited with code 0 (0x0). 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'c:\users\mama\documents\visual studio 2015\Projects\TreehouseDefense1\TreehouseDefense1\bin\Debug\TreehouseDefense1.exe'. Symbols loaded. 'TreehouseDefense1.vshost.exe' (CLR v4.0.30319: TreehouseDefense1.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0_b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. The thread 0x2628 has exited with code 0 (0x0). The thread 0x27c0 has exited with code 0 (0x0). The thread 0x2e78 has exited with code 0 (0x0). The program '[11244] TreehouseDefense1.vshost.exe' has exited with code 0 (0x0).

3 Answers

Randy Eichelberger
Randy Eichelberger
535 Points

Something you will notice as a developer is you should always provide the answer to your question, whether copying and pasting or linking ;)

Steven Parker
Steven Parker
231,110 Points

This looks like typical debugging details.

I don't see anything here indicating a problem — did you have any trouble running your program? This just appears to be the normally verbose output generated while debugging.

It compiles without errors. But when I run it does not output anything. I created a simple program and it would not print out the word "result". I think the last three lines of the Output signal that something is wrong, but what?

The thread 0x2e94 has exited with code 0 (0x0). The thread 0x1e74 has exited with code 0 (0x0).

The program '[11860] Calculator.vshost.exe' has exited with code 0 (0x0).

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

namespace Calculator { class Calculate { public static void Main() { int x = 5; int y = 7; string operation = "/"; Console.WriteLine("result " );

        //           Calculator calculator = new Calculator();

        //           if (!calculator.Validate(x, y, operation))
        //           {
        //               Console.WriteLine("invalid input data ");
        //           }
        //           else
        //           {
        //               Console.WriteLine("result " + calculator.Calculate(x, y, operation));
        //           }
    }
}

}

'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0_b77a5c561934e089\mscorlib.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\14.0.0.0b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0b77a5c561934e089\System.Windows.Forms.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0b77a5c561934e089\System.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Drawing.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\14.0.0.0b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\14.0.0.0b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'c:\users\mama\documents\visual studio 2015\Projects\Calculator\Calculator\bin\Debug\Calculator.vshost.exe'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0b77a5c561934e089\System.Core.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0b77a5c561934e089\System.Xml.Linq.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0b77a5c561934e089\System.Data.DataSetExtensions.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0b03f5f7f11d50a3a\Microsoft.CSharp.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0b77a5c561934e089\System.Data.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Net.Http.dll'. Symbols loaded. 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0_b77a5c561934e089\System.Xml.dll'. Symbols loaded. The thread 0x2d38 has exited with code 0 (0x0). The thread 0x2c8c has exited with code 0 (0x0). 'Calculator.vshost.exe' (CLR v4.0.30319: Calculator.vshost.exe): Loaded 'c:\users\mama\documents\visual studio 2015\Projects\Calculator\Calculator\bin\Debug\Calculator.exe'. Symbols loaded. The thread 0x2e94 has exited with code 0 (0x0). The thread 0x1e74 has exited with code 0 (0x0). The program '[11860] Calculator.vshost.exe' has exited with code 0 (0x0).

This is solved. I found an answer on stackoverflow.