Skip to content

Following the instructions gives me different results.  #27896

@jimmythecode

Description

@jimmythecode
  1. Using dotenv new console doesn't create a file with the results that follow the article text: "... Open Program.cs. It should look like this:"
  2. Following the instruction: "Create a new file using the File:New command. Name it BankAccount.cs. Add the following code to your BankAccount.cs file:" creates a file but not in the same directory. Where should we save it?
  3. When pasting the code into Program.cs I get an error line under BankAccount in this line: var account = new BankAccount("jimmy", 1000);. The error reads: CS0246 The type or namespace name 'BankAccount' could not be found (are you missing a using directive or an assembly reference?)

These are trivial issues if you've some coding experience, but these are aimed at beginners so I would imagine are unusable for many new-starters


Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions