Skip to content
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

Update the minimum framework to net472 #723

Merged
merged 3 commits into from
May 1, 2022

Conversation

coreyshuman
Copy link
Contributor

This PR sets the minimum targeted framework to .NET 4.7.2 in all of the projects in the solution. This PR achieves the intent of the discussion in issue #650. This PR also updates the README to match these updated requirements.

This PR is helpful because Visual Studio 2022 natively includes .NET 4.7.2, but support for 4.6.2 - 4.7.1 requires additional installation.

Additionally, due to the use of C#10 File Scoped Namespaces in the lib project, the solution no longer compiles in VS2019. Because of this, I added a line in the README stating that "Compiling LibreHardwareMonitor requires Visual Studio 2022."

If we would like to change this verbiage, or if someone knows a workaround to retain VS2019 support, please let me know and I'll make those updates to this PR.

Fixes #650

@pomianowski
Copy link
Contributor

Well, we can also add a .vsconfig file with the required components and it will all work while still being backwards compatible. Simply Visual Studio will tell you what libraries are missing.

@coreyshuman
Copy link
Contributor Author

coreyshuman commented May 1, 2022

The solution was already moved to .NET 4.7.0 in this commit:
c3c7925

And the desktop app moved to .NET 4.7.2 in this commit:
dbdedb8

The goal of this PR is to synchronize that minimum version across projects and reflect those changes in the README.

LibreHardwareMonitorLib/LibreHardwareMonitorLib.csproj Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@coreyshuman
Copy link
Contributor Author

@PhyxionNL updated as requested! Also just noticed net452\LibreHardwareMonitor.exe in the "How to Compile" section and updated to match these changes.

@PhyxionNL PhyxionNL merged commit 14b4fbb into LibreHardwareMonitor:master May 1, 2022
@coreyshuman coreyshuman deleted the update-to-net472 branch May 2, 2022 07:50
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.

.NET 4.5.2 base assemblies are not available in VS 2022
3 participants