Skip to content

Get highest AssemblyFileVersionAttribute version #4270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 16, 2019
Merged

Get highest AssemblyFileVersionAttribute version #4270

merged 1 commit into from
Dec 16, 2019

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Dec 13, 2019

This commit updates the FrameworkDescription logic used to determine
the .NET framework version from the AssemblyFileVersionAttribute on the
assembly containing the base object type to

  1. Get all AssemblyFileVersionAttribute attributes
  2. order by versioning descending
  3. get the first version

This is to workaround an edge case in using this technique to get the
.NET Framework version that appears to affect running an application
under full framework in IIS.

Fixes #4189.

This commit updates the FrameworkDescription logic used to determine
the .NET framework version from the AssemblyFileVersionAttribute on the
assembly containing the base object type to

1. Get all AssemblyFileVersionAttribute attributes
2. order by versioning descending
3. get the first version

This is to workaround an edge case in using this technique to get the
.NET Framework version that appears to affect running an application
under full framework in IIS.

Fixes #4189.
Copy link
Contributor

@codebrain codebrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@russcam russcam merged commit 9cf9ce4 into 7.x Dec 16, 2019
russcam added a commit that referenced this pull request Dec 16, 2019
This commit updates the FrameworkDescription logic used to determine
the .NET framework version from the AssemblyFileVersionAttribute on the
assembly containing the base object type to

1. Get all AssemblyFileVersionAttribute attributes
2. order by versioning descending
3. get the first version

This is to workaround an edge case in using this technique to get the
.NET Framework version that appears to affect running an application
under full framework in IIS.

Fixes #4189.

(cherry picked from commit 9cf9ce4)
@russcam
Copy link
Contributor Author

russcam commented Dec 16, 2019

ported to master

@Mpdreamz Mpdreamz deleted the fix/4189 branch February 10, 2020 10:35
mozerov pushed a commit to mozerov/elasticsearch-net that referenced this pull request Feb 12, 2020
This commit updates the FrameworkDescription logic used to determine
the .NET framework version from the AssemblyFileVersionAttribute on the
assembly containing the base object type to

1. Get all AssemblyFileVersionAttribute attributes
2. order by versioning descending
3. get the first version

This is to workaround an edge case in using this technique to get the
.NET Framework version that appears to affect running an application
under full framework in IIS.

Fixes elastic#4189.
Mpdreamz pushed a commit that referenced this pull request Feb 19, 2020
This commit updates the FrameworkDescription logic used to determine
the .NET framework version from the AssemblyFileVersionAttribute on the
assembly containing the base object type to

1. Get all AssemblyFileVersionAttribute attributes
2. order by versioning descending
3. get the first version

This is to workaround an edge case in using this technique to get the
.NET Framework version that appears to affect running an application
under full framework in IIS.

Fixes #4189.

Co-authored-by: Russ Cam <russ.cam@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants