Skip to content

Commit 7ee4c9b

Browse files
authored
(#195) Updated csproj.template to support build version (#203)
* (#195) Updated csproj.template to support build version
1 parent 381a064 commit 7ee4c9b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build-template.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
- name: Generate csproj
5353
working-directory: templates/Template.DatasyncServer
5454
run: |
55-
(Get-Content -path "Template.DatasyncServer.csproj.template") -replace "${NUGET_VERSION}", $BUILD_VERSION | Set-Content -Path "./Template.DatasyncServer.csproj"
55+
Write-Host "BUILD_VERSION (env)=$($env:BUILD_VERSION)"
56+
(Get-Content -path "Template.DatasyncServer.csproj.template") -replace "{NUGET_VERSION}", $env:BUILD_VERSION | Set-Content -Path "./Template.DatasyncServer.csproj"
5657
shell: pwsh
5758

5859
- name: Build template

templates/Template.DatasyncServer/Template.DatasyncServer.csproj.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<LangVersion>latest</LangVersion>
@@ -10,8 +10,8 @@
1010
<ItemGroup>
1111
<PackageReference Include="CommunityToolkit.Datasync.Server" Version="{NUGET_VERSION}" />
1212
<PackageReference Include="CommunityToolkit.Datasync.Server.EntityFrameworkCore" Version="{NUGET_VERSION}" />
13-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.8" />
14-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.8">
13+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.1" />
14+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.1">
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
</PackageReference>

0 commit comments

Comments
 (0)