How do I make a C# Console app build and debug in Visual Studio Code?   

William_Thompson: <p>How do I make a C# Console app build and debug in Visual Studio Code?</p>
<p>I have already built my C# Console App in Visual Studio Code.  The issue I have is when I reopen the folder where the project file is in Visual Studio Code and then rebuilding the code and debugging it again.</p>
<p>Here is what I do and what happens.  After I open the folder where the project file resides,  I click on this to process the code to debug:</p>
<p>                    <a href="https://likablelogic.org/images/lost/07.png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://likablelogic.org/images/lost/07.png" width="47" height="52">
          </a>

</p>
<p>And then I click on the appearing “Run and Debug” button</p>
<p>                    <a href="https://likablelogic.org/images/lost/08.png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://likablelogic.org/images/lost/08.png" width="281" height="210">
          </a>

</p>
<p>But then the bottom status bar says “Looking for CSS classes in the workspace…” followed by a percentage in paragraphs.  Why is this?  Why does this happen when there are no CSS classes at all and my project is a C# project?</p>
<p>                    <a href="https://likablelogic.org/images/lost/09.png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://likablelogic.org/images/lost/09.png" width="690" height="27">
          </a>

</p>
<p>Why is this?  This is just a brief snapshot of some difficulties I find when I reopen a project after I have closed Visual Studio Code.  I have experienced other errors and problems in building and running my code.</p>
<p>To continue, in order to deal with the project as a solution, I click on this icon to open the solution panel.</p>
<p>                    <a href="https://likablelogic.org/images/lost/10.png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://likablelogic.org/images/lost/10.png" width="55" height="60">
          </a>

</p>
<p>This seemingly allows me to view the solution.  As the following view appears, I click on the project.cs file and attempt a debugging session from there.</p>
<p>                    <a href="https://likablelogic.org/images/lost/11...png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://likablelogic.org/images/lost/11...png" width="276" height="209">
          </a>

</p>
<p>With this file being displayed, I clicked on the menu option, Run → Start Debugging</p>
<p>                    <a href="https://likablelogic.org/images/lost/12...png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://likablelogic.org/images/lost/12...png" width="288" height="149">
          </a>

</p>
<p>Then, at this point, in the pop up option window that appears in the middle and top of the development environment, I pick “C#”:</p>
<p>                    <a href="https://likablelogic.org/images/lost/13...png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://likablelogic.org/images/lost/13...png" width="331" height="220">
          </a>

</p>
<p>Something went wrong and in the bottom right of my IDE, I get this message:</p>
<p>                    <a href="https://likablelogic.org/images/lost/14.png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://likablelogic.org/images/lost/14.png" width="466" height="153">
          </a>

</p>
<p>Please advise.  What should I do now?</p>

ptrblck: <p>Could you explain if and how your project is related to PyTorch? General dev questions might be better asked at e.g. StackOverflow.</p>