From 0bb0e1cd3cbbea9a99ad62a88e35672462f91455 Mon Sep 17 00:00:00 2001 From: Paul Welter Date: Wed, 1 May 2024 11:09:20 -0500 Subject: [PATCH] tweak build --- .github/workflows/dotnet.yml | 2 +- coverlet.runsettings | 2 -- .../Properties/launchSettings.json | 14 ++++++++++++++ .../generation.yml | 1 + .../Properties/launchSettings.json | 14 ++++++++++++++ src/Directory.Build.props | 1 + 6 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 samples/Tracker.WebService.EntityFrameworkCore/Properties/launchSettings.json create mode 100644 samples/Tracker.WebService.MongoDB/Properties/launchSettings.json diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b9f43f9e..e4350c9d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -79,7 +79,7 @@ jobs: - name: Create Packages if: success() && github.event_name != 'pull_request' - run: dotnet pack --configuration Release --include-symbols --include-source --no-build --output "${{env.BUILD_PATH}}" + run: dotnet pack --configuration Release --no-build --output "${{env.BUILD_PATH}}" - name: Upload Packages if: success() && github.event_name != 'pull_request' diff --git a/coverlet.runsettings b/coverlet.runsettings index 4eac22c9..b28750fb 100644 --- a/coverlet.runsettings +++ b/coverlet.runsettings @@ -5,8 +5,6 @@ lcov - Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute,TestSDKAutoGeneratedCode - true diff --git a/samples/Tracker.WebService.EntityFrameworkCore/Properties/launchSettings.json b/samples/Tracker.WebService.EntityFrameworkCore/Properties/launchSettings.json new file mode 100644 index 00000000..387bf0c7 --- /dev/null +++ b/samples/Tracker.WebService.EntityFrameworkCore/Properties/launchSettings.json @@ -0,0 +1,14 @@ +{ + "profiles": { + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:64984;http://localhost:64986", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/samples/Tracker.WebService.EntityFrameworkCore/generation.yml b/samples/Tracker.WebService.EntityFrameworkCore/generation.yml index e2097074..4a620ec8 100644 --- a/samples/Tracker.WebService.EntityFrameworkCore/generation.yml +++ b/samples/Tracker.WebService.EntityFrameworkCore/generation.yml @@ -59,6 +59,7 @@ model: baseClass: AbstractValidator<{Model.Name}> namespace: '{Project.Namespace}.Domain.Validation' directory: '{Project.Directory}\Domain\{Entity.Name}\Validation' + attributes: '[RegisterSingleton>]' script: context: - templatePath: '..\..\templates\DomainJsonContext.csx' diff --git a/samples/Tracker.WebService.MongoDB/Properties/launchSettings.json b/samples/Tracker.WebService.MongoDB/Properties/launchSettings.json new file mode 100644 index 00000000..7ebdee84 --- /dev/null +++ b/samples/Tracker.WebService.MongoDB/Properties/launchSettings.json @@ -0,0 +1,14 @@ +{ + "profiles": { + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:64983;http://localhost:64985", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 7e17e584..6d9b12bf 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -19,6 +19,7 @@ embedded true + false