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!

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#

Is it normal for VS to be a bit slow building? [Solved]

Hi all,

I've just got to the part of the C# track where we start using Visual Studio (I'm using 2017) and I've noticed that it's taking a lot longer to build, and wanted to check I haven't set something up wrong?

For example, a really basic hello world program:

using System;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Test");
            Console.ReadLine();
        }
    }
}

Built in 2.07sec in VS( fastest, once it was nearly 4), but when I went to the same file in bash on windows and built it with mono, bash timed it at 0.676Sec real time.

(Note that was timing a brand new project with the code pasted into VS as I realised it only builds the changes you make, and caches builds).

If that's just life, that's okay, it just seemed really slow for a simple Hello World, so I wanted to check I didn't miss something :)

Thanks in advance!

Raffael Dettling
Raffael Dettling
32,998 Points

Hm 4 sec for this code is a bit so slow for VS. Tested your code in my VS 2017 i only need 0.7 sec.

1 Answer

Thanks Raffael!

I used the Visual Studio installer to run "repair" and it's now building the same thing at 1.1 Seconds. No idea how I managed to break it just by installing it, but whoo! :)