zaafar / ClickableTransparentOverlay

A library for creating transparent overlay using windows API & ImGui.NET
Apache License 2.0
87 stars 33 forks source link

Is support for .Net Framework 4.8 and under possible? #41

Closed ImmuneLion318 closed 1 year ago

ImmuneLion318 commented 1 year ago

Yes this question sounds dumb like who would be using .Net Framework still but I have reasons and I could really use if this supported that. Thanks

zaafar commented 1 year ago

Yeah this is dumb. However, I will give it a try to see if I can.

ImmuneLion318 commented 1 year ago

sounds great keep me notified, but yea I accept how dumb this is.

zaafar commented 1 year ago

under possible

how much under you wanna go? or .Net Framework 4.8 is enough?

ImmuneLion318 commented 1 year ago

under possible

how much under you wanna go? or .Net Framework 4.8 is enough?

4.8 is enough anymore is just complementary for anyone else lol but yea 4.8 is good

ImmuneLion318 commented 1 year ago

Any luck or just gave up by this point lol

zaafar commented 1 year ago

I have some good news and some bad news.

good news is that net48 branch of this repo works with .net framework 4.8.

The bad news is that this branch is made from old code base (i.e. CTO 3.5.0) rather than the latest code (i.e. CTO 6.2.1). This is because latest code have some code that is only available in latest .net c# languages as shown in screenshot below.

language_8_0_features

ImmuneLion318 commented 1 year ago

Ah my immediate solution would be set the Lang version in the csproj 11.0 but this is amazing already so thanks

zaafar commented 1 year ago

that's a good idea, here's another branch, see if it works for you. it support net48 and net7 with lang version 11.0.

https://github.com/zaafar/ClickableTransparentOverlay/tree/f/net7

ImmuneLion318 commented 1 year ago

Give me a bit my pc is unfortunately pretty bad so if it isn't getting via nuget and I have to build my vs has a stroke and just takes 10 years to do it lol

zaafar commented 1 year ago

I haven't released it on nuget yet. Let me do that now.

ImmuneLion318 commented 1 year ago

i'd appreciate that it would make doing this a whole lot easier on my crappy pc lol

ImmuneLion318 commented 1 year ago

just let me know when you push the nuget so i can download it to my project afk

zaafar commented 1 year ago

done. give 7.0.0 a try.

zaafar commented 1 year ago

hmm, looks like the deps i rely on aren't gonna work on .netframework 4.8.

image

zaafar commented 1 year ago

so this is the only branch that works & it contain old code. https://github.com/zaafar/ClickableTransparentOverlay/tree/f/net48

ImmuneLion318 commented 1 year ago

Ok i'll give it a try now i'm on 4.8 i can go to 4.8.1 just fine

ImmuneLion318 commented 1 year ago

unfortunately i forgot to install net framework 4.8.1 so let me grab it real fast

ImmuneLion318 commented 1 year ago

I should have red about your deps i just tried via nuget and forgot lol and realized yea the constraints in deps

ImmuneLion318 commented 1 year ago

Well i got it to start but it appears an exception is thrown

ImmuneLion318 commented 1 year ago

image

zaafar commented 1 year ago

which branch are you using?

ImmuneLion318 commented 1 year ago

The latest that builds on 4.8

ImmuneLion318 commented 1 year ago

image It appears create context is not doing so well at that lol

ImmuneLion318 commented 1 year ago

I hate that this is causing you so much trouble if you wish to stop and just cease working on below .Net into framework then i'd understand it was just for a side project i had in framework.

zaafar commented 1 year ago

not a problem, let me make a nuget release from tag 3.5.0, that should fix your issue.

zaafar commented 1 year ago

i have just released version 3.5.1 on nuget. that should fix your issue.

zaafar commented 1 year ago

if that doesn't work, then i am out. not sure what else to do. maybe try to move to .net 6 or .net 7.

ImmuneLion318 commented 1 year ago

I will look into when i'm home from class thanks again I usually use .Net 6/7 but this projects came with the need to use framework unfortunately

ImmuneLion318 commented 1 year ago

image in the 3.5.1 nuget release for me i'm lost rn lol, but it's fine you did work so it's my respect you've earned entirely