File tree Expand file tree Collapse file tree 4 files changed +15
-17
lines changed
src/Exceptionless/Configuration Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 13
13
- name : Setup .NET Core
14
14
uses : actions/setup-dotnet@v1
15
15
with :
16
- dotnet-version : 3.1.100
16
+ dotnet-version : 3.1.101
17
17
- name : Build Reason
18
18
run : " echo ref: ${{github.ref}} event: ${{github.event_name}}"
19
19
- name : Build Version
Original file line number Diff line number Diff line change @@ -5,16 +5,11 @@ VisualStudioVersion = 16.0.29209.152
5
5
MinimumVisualStudioVersion = 10.0.40219.1
6
6
Project ("{2150E333-8FDC-42A3-9474-1A3956D46DE8}" ) = "Solution Items" , "Solution Items" , "{728C18BC-4085-4492-B0B2-8211CA209A50}"
7
7
Project Section (SolutionItems ) = preProject
8
- appveyor .yml = appveyor .yml
9
- build \Build .ps1 = build \Build .ps1
8
+ .github \workflows \build .yml = .github \workflows \build .yml
10
9
build \common .props = build \common .props
11
10
CONTRIBUTING .md = CONTRIBUTING .md
12
11
LICENSE .txt = LICENSE .txt
13
- build \Package .ps1 = build \Package .ps1
14
12
README .md = README .md
15
- build \Settings .ps1 = build \Settings .ps1
16
- build \sourcelink .props = build \sourcelink .props
17
- build \version .props = build \version .props
18
13
EndProject Section
19
14
EndProject
20
15
Project ("{2150E333-8FDC-42A3-9474-1A3956D46DE8}" ) = "Platforms" , "Platforms" , "{D363E15F-621D-40E4-8C96-DEE41A7070FF}"
Original file line number Diff line number Diff line change 25
25
26
26
<GenerateAssemblyTitleAttribute >false</GenerateAssemblyTitleAttribute >
27
27
<GenerateAssemblyDescriptionAttribute >false</GenerateAssemblyDescriptionAttribute >
28
- <GenerateAssemblyProductAttribute >false </GenerateAssemblyProductAttribute >
29
- <GenerateAssemblyCompanyAttribute >false </GenerateAssemblyCompanyAttribute >
30
- <GenerateAssemblyCopyrightAttribute >false </GenerateAssemblyCopyrightAttribute >
31
- <GenerateAssemblyConfigurationAttribute >false </GenerateAssemblyConfigurationAttribute >
32
- <GenerateAssemblyVersionAttribute >false </GenerateAssemblyVersionAttribute >
33
- <GenerateAssemblyFileVersionAttribute >false </GenerateAssemblyFileVersionAttribute >
34
- <GenerateAssemblyInformationalVersionAttribute >false </GenerateAssemblyInformationalVersionAttribute >
28
+ <GenerateAssemblyProductAttribute >true </GenerateAssemblyProductAttribute >
29
+ <GenerateAssemblyCompanyAttribute >true </GenerateAssemblyCompanyAttribute >
30
+ <GenerateAssemblyCopyrightAttribute >true </GenerateAssemblyCopyrightAttribute >
31
+ <GenerateAssemblyConfigurationAttribute >true </GenerateAssemblyConfigurationAttribute >
32
+ <GenerateAssemblyVersionAttribute >true </GenerateAssemblyVersionAttribute >
33
+ <GenerateAssemblyFileVersionAttribute >true </GenerateAssemblyFileVersionAttribute >
34
+ <GenerateAssemblyInformationalVersionAttribute >true </GenerateAssemblyInformationalVersionAttribute >
35
35
</PropertyGroup >
36
36
37
37
<PropertyGroup Label =" Signing" >
Original file line number Diff line number Diff line change @@ -19,11 +19,14 @@ public class ExceptionlessConfiguration {
19
19
private const string DEFAULT_CONFIG_SERVER_URL = "https://config.exceptionless.io" ;
20
20
private const string DEFAULT_HEARTBEAT_SERVER_URL = "https://heartbeat.exceptionless.io" ;
21
21
private const string DEFAULT_USER_AGENT = "exceptionless/" ;
22
- private static Lazy < string > _version = new Lazy < string > ( ( ) => {
22
+ private static readonly Lazy < string > _version = new Lazy < string > ( ( ) => {
23
23
#if ! PORTABLE
24
- return Assembly . GetEntryAssembly ( ) . GetCustomAttribute < AssemblyFileVersionAttribute > ( ) . Version ;
24
+ var assembly = Assembly . GetExecutingAssembly ( ) ;
25
+ var attribute = assembly . GetCustomAttribute < AssemblyFileVersionAttribute > ( ) ;
26
+ return attribute . Version ;
25
27
#else
26
- return "" ;
28
+ // NOTE: This is hard coded for a single release. The next release will deprecate portable.
29
+ return "4.4.0.0" ;
27
30
#endif
28
31
} ) ;
29
32
private const int DEFAULT_SUBMISSION_BATCH_SIZE = 50 ;
You can’t perform that action at this time.
0 commit comments