-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated the launch.json to use config env var
- Loading branch information
solomiofactura
committed
Sep 26, 2024
1 parent
2d320b8
commit f1370a4
Showing
3 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Check if the Configuration variable is set | ||
if [ -z "$Configuration" ]; then | ||
echo "Error: Configuration environment variable is not set." | ||
exit 1 | ||
fi | ||
|
||
# Run the .NET application with the specified Configuration | ||
dotnet build "${workspaceFolder}/PersistedAssemblyBuilder.ConsoleApp/PersistedAssemblyBuilder.ConsoleApp.csproj" --configuration "$Configuration" | ||
dotnet "${workspaceFolder}/PersistedAssemblyBuilder.ConsoleApp/bin/$Configuration/net9.0/PersistedAssemblyBuilder.ConsoleApp.dll" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters