File tree Expand file tree Collapse file tree 4 files changed +24
-10
lines changed Expand file tree Collapse file tree 4 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
pull_request :
8
- branches :
9
- - master
8
+ env :
9
+ DOTNET_NOLOGO : true
10
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
11
+ MINVERBUILDMETADATA : build.${{ github.run_id }}.${{ github.run_attempt}}
10
12
permissions :
11
13
contents : read
12
14
concurrency :
19
21
runs-on : windows-latest
20
22
steps :
21
23
- name : Checkout
22
- uses : actions/checkout@v4
24
+ uses : actions/checkout@v4.2.0
23
25
with :
24
26
fetch-depth : 0
25
27
- name : Setup dotnet
44
46
runs-on : ubuntu-latest
45
47
steps :
46
48
- name : Checkout
47
- uses : actions/checkout@v4
49
+ uses : actions/checkout@v4.2.0
48
50
with :
49
51
fetch-depth : 0
50
52
- name : Setup dotnet
57
59
run : ./Build.ps1
58
60
shell : pwsh
59
61
- name : Push to MyGet
62
+ if : github.ref == 'refs/heads/master'
60
63
env :
61
64
NUGET_URL : https://f.feedz.io/lucky-penny-software/automapper/nuget/index.json
62
65
NUGET_API_KEY : ${{ secrets.FEEDZIO_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 29
29
<AdditionalApiCompatOptions >--exclude-non-browsable --exclude-compiler-generated</AdditionalApiCompatOptions >
30
30
</PropertyGroup >
31
31
32
+ <PropertyGroup Condition =" '$(IsWindows)' == 'true' " >
33
+ <TargetFrameworks >$(TargetFrameworks);net462</TargetFrameworks >
34
+ </PropertyGroup >
35
+
32
36
<ItemGroup >
33
37
<ResolvedMatchingContract Include =" ..\LastMajorVersionBinary\AutoMapper.dll" />
34
38
</ItemGroup >
40
44
</ItemGroup >
41
45
42
46
<ItemGroup >
43
- <PackageReference Include =" Microsoft.Extensions.Logging" Version =" [8.0.0, )" />
47
+ <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions " Version =" [8.0.0, )" />
44
48
<PackageReference Include =" Microsoft.Extensions.Options" Version =" [8.0.0, )" />
45
49
<PackageReference Include =" Microsoft.IdentityModel.JsonWebTokens" Version =" [8.0.1, )" />
46
50
<PackageReference Include =" Microsoft.Bcl.HashCode" Version =" [6.0.0, )" Condition =" '$(TargetFramework)' == 'netstandard2.0'" />
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net9.0</TargetFramework >
4
+ <TargetFrameworks >net9.0</TargetFrameworks >
5
5
<NoWarn >$(NoWarn);618</NoWarn >
6
6
<AssemblyOriginatorKeyFile >..\..\AutoMapper.snk</AssemblyOriginatorKeyFile >
7
7
<SignAssembly >true</SignAssembly >
8
- <PublicSign Condition =" '$(OS)' != 'Windows_NT' " >true</PublicSign >
8
+ </PropertyGroup >
9
+
10
+ <PropertyGroup Condition =" '$(IsWindows)' == 'true' " >
11
+ <PublicSign >true</PublicSign >
12
+ <TargetFrameworks >$(TargetFrameworks);net462</TargetFrameworks >
9
13
</PropertyGroup >
10
14
11
15
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(OS)' != 'Windows_NT' " >net9.0</TargetFramework >
5
- <TargetFrameworks Condition =" '$(OS)' == 'Windows_NT' " >net481;net9.0</TargetFrameworks >
4
+ <TargetFrameworks >net9.0</TargetFrameworks >
6
5
<NoWarn >$(NoWarn);649;618</NoWarn >
7
6
<AssemblyOriginatorKeyFile >..\..\AutoMapper.snk</AssemblyOriginatorKeyFile >
8
7
<SignAssembly >true</SignAssembly >
9
- <PublicSign Condition =" '$(OS)' != 'Windows_NT' " >true</PublicSign >
10
8
</PropertyGroup >
11
9
10
+ <PropertyGroup Condition =" '$(IsWindows)' == 'true' " >
11
+ <PublicSign >true</PublicSign >
12
+ <TargetFrameworks >$(TargetFrameworks);net462</TargetFrameworks >
13
+ </PropertyGroup >
14
+
12
15
<ItemGroup >
13
16
<ProjectReference Include =" ..\AutoMapper\AutoMapper.csproj" />
14
17
<PackageReference Include =" Microsoft.Extensions.Diagnostics.Testing" Version =" 9.6.0" />
You can’t perform that action at this time.
0 commit comments