Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sample for .env files uses $dotEnv (capital letter E) instead of $dotenv which appear to be case sensitive #36559

@jvarsl

Description

@jvarsl

Description

X-UserName: {{$dotEnv USERNAME}}

I get error HTTP0012: Unable to evaluate expression '$dotEnv USERNAME'. It reads fine with {{$dotenv USERNAME}}.

Having this behavior on Visual Studio 2026 Version: 18.0.0.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-10.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/test/http-files.md

Document ID

26f1374f-556a-35fc-cc42-b8911746db80

Platform Id

816aec78-770f-4b7d-c919-4cdece185115

Article author

@tdykstra

Metadata

  • ID: 26f1374f-556a-35fc-cc42-b8911746db80
  • PlatformId: 816aec78-770f-4b7d-c919-4cdece185115
  • Service: aspnet-core
  • Sub-service: testing

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions