https://try.dot.net not working?

Dessauvages Cathy 20 Reputation points
2024-06-27T15:11:34.16+00:00

Hi,

I'm following the tutorial and link to https://try.dot.net from page https://learn.microsoft.com/en-us/training/modules/dotnet-introduction/4-build-your-first-app isn't working.

This question is related to the following Learning Module

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
9 questions
{count} votes

Accepted answer
  1. Pradeep M 1,715 Reputation points Microsoft Vendor
    2024-06-28T02:03:16.66+00:00

    Hi Dessauvages Cathy,

    Thank you for reaching out to Microsoft Q & A forum.   

    It looks like the Try .NET editor is already including some hidden code, which is why you're seeing errors when adding the "using System;" statement and the "public class Program" declaration. Try using only the following portion of the code in the editor:

    Console.WriteLine(
    

    This is because the Try .NET environment already handles the necessary setup behind the scenes. Here's a step-by-step guide:

    Clear the editor: Remove any existing code in the Try .NET editor.

    Enter the simplified code: Use only the Console.WriteLine("Hello world!"); line.

    Run the code: Click the green Run button.

    This should resolve the errors you're encountering. If the issue persists, try refreshing your browser or using a different browser to see if that resolves the problem.

    Please feel free to contact us if you have any additional questions.  

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.    

    Thank you.    

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful