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

Fix: Update nuget packages. #1569

Closed
wants to merge 13 commits into from
Closed

Fix: Update nuget packages. #1569

wants to merge 13 commits into from

Conversation

AraHaan
Copy link

@AraHaan AraHaan commented Jun 17, 2020

I decided to update the nuget packages here as they seem to work well at the moment locally as well anyway. Plus I see no harm in updating the analyzer as well so updated that as well.

Note: I locally use the pre-release packages from the dotnet5 feeds and stuff and as such I had to ensure that I use the latest stables instead on this pull request. Local copy works fine with the dotnet 5 preview packages though.
Fixes #1568
Changes:

  • latest stable nuget packages from the nuget feeds.
  • Replaced a few packages with other packages.
  • Remove OS check on TargetFrameworks and instead only reference the nuget package for the .NET Framework reference assemblies with an TargetFramework that is .NET Framework is being compiled, it also makes them able to compile on non-windows os removing the need for the OS check on the project file.
  • Added check on the CI to cleanly state if any packages are outdated in the solution file's projects.
  • Added .NET 5.0 to the TargetFrameworks since some people would want to target Discord bots to that framework in the future possibly to use updated packages that resolves security issues that dropped support to anything older than .NET 5.0.

The reason I added .NET 5.0 support is because I do not know if the .NET 5.0 SDK would recognize Discord.NET as compatible with it at all.

@AraHaan AraHaan changed the title Updated nuget packages. Fix: Updated nuget packages. Jun 17, 2020
@AraHaan AraHaan changed the title Fix: Updated nuget packages. Fix: Update nuget packages. Jun 17, 2020
@liny-fox
Copy link

liny-fox commented Oct 22, 2020

Is there any update on this? A release with #1571 merged in is getting closer to needing to be released before all stable releases become unusable. The solution of getting the latest nightly from myget is not a solution for those that want only release versions.

@AraHaan
Copy link
Author

AraHaan commented Nov 2, 2020

I could update this again.

@AraHaan
Copy link
Author

AraHaan commented Nov 2, 2020

It seems the example, and the analyzer project as well as the test for that analyzer project in this repository needs an update to some packages which I can do as well.

* Update JetBrains.Annotations to 2020.1.0.

* Update Microsoft.CodeAnalysis.CSharp.Scripting to v3.7.0.

* Update Microsoft.Extensions.DependencyInjection to v3.1.9.

* Update packages on the tests.

* Silence annoying warning from samples.

The EOL framework warning was annoying as hell so disabled it on all projects.
@AraHaan
Copy link
Author

AraHaan commented Jan 5, 2021

Well shit looks like the other package breaks it.

@AraHaan
Copy link
Author

AraHaan commented Jan 7, 2021

There it all seems to work now.

@quinchs
Copy link
Member

quinchs commented Jan 11, 2022

This was added in 3.0 of dnet. ref #1923

@quinchs quinchs closed this Jan 11, 2022
@AraHaan AraHaan deleted the patch-1 branch January 13, 2022 07:02
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.

Update nuget packages.
5 participants