betwixt-labs / dot-env-generator

A source generator for C# that turns .env files into runtime constants.
MIT License
32 stars 3 forks source link

No DotEnv class, namespace or file is generated #4

Open nickpreston24 opened 1 month ago

nickpreston24 commented 1 month ago

When I build after copy/pasting the example.env, there doesn't seem to be any indication of any code changes. No files added.

image

In my screenshot, the build succeeded and the only file changed is my csproj from adding the package.

Was there supposed to be C# code generated somewhere?

OS: Manjaro Linux .net version: .net 8.0

andrewmd5 commented 1 month ago

Sorry for the delay - if you pull this repo and try the example, does it work?

nickpreston24 commented 1 month ago

No prob.

I did this:

  1. Cloned the repo.
  2. nano and copied the example.env
  3. dotnet build.

I was unsure where to put the ItemGroup, however, so I left it out.

Nothing was generated, or if it was, it's hidden somehow (I'm new to generation, but looking to get into it).