Skip to content

Commit edede16

Browse files
codez0mb1eCopilot
andcommitted
Add CheckEnvFileExists validation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4ad1b28 commit edede16

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/BinanceBot.MarketBot.Console/BinanceBot.MarketBot.Console.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@
2323
</None>
2424
</ItemGroup>
2525

26+
<Target Name="CheckEnvFileExists" BeforeTargets="Build">
27+
<Error Condition="!Exists('.env')" Text="The .env file is missing. Please create it from .env.example before building." />
28+
</Target>
2629
</Project>

0 commit comments

Comments
 (0)