-
-
Notifications
You must be signed in to change notification settings - Fork 888
Add net5.0 targetframework #1519
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
Conversation
* add it in ImageSharp.csproj * update Buildscript
|
We had several discussions about this with @JimBobSquarePants, and if I'm not mistaken the conclusion was that Nevertheless, it's very important to make our CI run tests against |
|
@antonfirsov Sure i can make that change. The pr in shared infrastructure needs to be merged too. Because I got only errors when I added net50 as target |
|
Build is not working without the .net50 target framework |
I am able to build it as it is right now (without the .net50 target framework in the Not sure why it does not work for @stefannikolei and the CI. @stefannikolei: which .Net SDK version are you using? |
|
On my Mac and rider I do not see that problem. Gonna look into the build script what they call there. |
|
Ok i now know where the problem is. |
The build works now, but the test execution fails on |
|
@brianpopow it is a vicious circle. It can not run because the .net5.0 dll was not build ... If i remove the explicit Targetframework in ci-build.ps1 it builds all frameworks and the tests execute |
|
Wrap separate |
|
@JimBobSquarePants I added the env variable. But now i am hitting the problem why i opened SixLabors/SharedInfrastructure#15 on SharedInfrastructure... |
JimBobSquarePants
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment regarding the targetframework options.
Codecov Report
@@ Coverage Diff @@
## master #1519 +/- ##
=======================================
Coverage 83.50% 83.50%
=======================================
Files 742 742
Lines 32801 32801
Branches 3671 3671
=======================================
Hits 27392 27392
Misses 4691 4691
Partials 718 718
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
|
Oooh @stefannikolei I approved this but just realized there's an issue. We only want NET5 on the build/test part, not on publish so we should be using a custom environmental property as the filter instead. Use We're explicitly setting the |
So just change CI with SIXLABORS_TESTING? |
Yep but you need to set it in both steps not just ImageSharp/.github/workflows/build-and-test.yml Lines 67 to 76 in 954d233
|
|
@JimBobSquarePants Want me to change TestEnvironment.cs to check for SIXLABORS_TESTING rather than CI, or should i add the CI back to the build script... Hmm test failure seems unrelated, or am i mssing something? |
|
The failure is unrelated. It happens every so often when there’s heavy traffic in GitHub Actions. The CI environmental variable is always true here. GitHub set it. Check the link I shared for a list of defaults. |
Add net5.0 targetframework
#1432