diff --git a/.github/workflows/build-template.yml b/.github/workflows/build-template.yml index 12309b8b..cefbed6b 100644 --- a/.github/workflows/build-template.yml +++ b/.github/workflows/build-template.yml @@ -52,7 +52,8 @@ jobs: - name: Generate csproj working-directory: templates/Template.DatasyncServer run: | - (Get-Content -path "Template.DatasyncServer.csproj.template") -replace "${NUGET_VERSION}", $BUILD_VERSION | Set-Content -Path "./Template.DatasyncServer.csproj" + Write-Host "BUILD_VERSION (env)=$($env:BUILD_VERSION)" + (Get-Content -path "Template.DatasyncServer.csproj.template") -replace "{NUGET_VERSION}", $env:BUILD_VERSION | Set-Content -Path "./Template.DatasyncServer.csproj" shell: pwsh - name: Build template diff --git a/templates/Template.DatasyncServer/Template.DatasyncServer.csproj.template b/templates/Template.DatasyncServer/Template.DatasyncServer.csproj.template index c1051599..91010622 100644 --- a/templates/Template.DatasyncServer/Template.DatasyncServer.csproj.template +++ b/templates/Template.DatasyncServer/Template.DatasyncServer.csproj.template @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable enable latest @@ -10,8 +10,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive