Skip to content

Commit 64b5433

Browse files
Update build
1 parent 9d6493e commit 64b5433

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

build/build.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
Run("dotnet", "build " +
2828
"--no-restore " +
2929
"--configuration Release " +
30-
$"/p:Version={version.SemVer} " +
31-
$"/p:AssemblyVersion={version.AssemblySemVer} " +
32-
$"/p:FileVersion={version.AssemblySemFileVer} " +
33-
$"/p:InformationalVersion={version.InformationalVersion}");
30+
$"--property Version={version.SemVer} " +
31+
$"--property AssemblyVersion={version.AssemblySemVer} " +
32+
$"--property FileVersion={version.AssemblySemFileVer} " +
33+
$"--property InformationalVersion={version.InformationalVersion}");
3434
});
3535

3636
Target("test", DependsOn("build"), () =>
@@ -40,7 +40,7 @@
4040

4141
Target("package", DependsOn("build", "test"), () =>
4242
{
43-
Run("dotnet", $"pack --configuration Release --no-restore --no-build --output artifacts /p:Version={version.SemVer}");
43+
Run("dotnet", $"pack --configuration Release --no-restore --no-build --property PackageOutputPath=../../artifacts --property Version={version.SemVer}");
4444
});
4545

4646
Target("publish", DependsOn("package"), () =>

build/build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

src/Prefab/templates/prefab/.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
jobs:
1313
build:
1414
name: build
15-
runs-on: windows-latest
15+
runs-on: ubuntu-latest
1616

1717
steps:
1818
- name: Checkout

src/Prefab/templates/prefab/.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
jobs:
1111
publish:
1212
name: publish
13-
runs-on: windows-latest
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Checkout

src/Prefab/templates/prefab/build/build.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
Run("dotnet", "build " +
2828
"--no-restore " +
2929
"--configuration Release " +
30-
$"/p:Version={version.SemVer} " +
31-
$"/p:AssemblyVersion={version.AssemblySemVer} " +
32-
$"/p:FileVersion={version.AssemblySemFileVer} " +
33-
$"/p:InformationalVersion={version.InformationalVersion}");
30+
$"--property Version={version.SemVer} " +
31+
$"--property AssemblyVersion={version.AssemblySemVer} " +
32+
$"--property FileVersion={version.AssemblySemFileVer} " +
33+
$"--property InformationalVersion={version.InformationalVersion}");
3434
});
3535

3636
Target("test", DependsOn("build"), () =>
@@ -40,7 +40,7 @@
4040

4141
Target("package", DependsOn("build", "test"), () =>
4242
{
43-
Run("dotnet", $"pack --configuration Release --no-restore --no-build --output artifacts /p:Version={version.SemVer}");
43+
Run("dotnet", $"pack --configuration Release --no-restore --no-build --property PackageOutputPath=../../artifacts --property Version={version.SemVer}");
4444
});
4545

4646
Target("publish", DependsOn("package"), () =>

src/Prefab/templates/prefab/build/build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)