Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created .props file to copy .env files to the publish directory #138

Merged
merged 15 commits into from
Jun 30, 2023
Merged
Prev Previous commit
Next Next commit
Updated README.md
  • Loading branch information
MrDave1999 committed Jun 29, 2023
commit 11932d31c804b99fc4010c010589ceb7a664f58b
14 changes: 13 additions & 1 deletion props/README.md
Original file line number Diff line number Diff line change
@@ -6,4 +6,16 @@ This .props file excludes the following sample .env files:
- `.env.sample`
- `sample.env`
- `.env.template`
- `template.env`
- `template.env`

## Installation

Run the following command from the terminal:
```
dotnet add package DotEnv.Core.Props
```

## How to use it?

The .props file does not need to be used directly, simply run the `dotnet publish` command and MSBuild will copy the .env files to the publish directory.