-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
.NET Core, .NET Standard, .NET 5 Support #302
Comments
Not at all. The support for the core-like versions of .NET is broken with .NET Core 3 onwards. |
Is any work in progress with this |
What is broken from .NET Core 3 onwards? If the project was targeting .NET Standard 2.1 (or earlier versions) would that still be the case? Would really like to use Confuser.Core.dll within a project, that is written in .NET 5, I suppose I can just go the subprocess route; however, that is not necessarily ideal. |
The problem is the assembly resolving. Everything up to .NET Core 2.x and .NET Standard 2.0 can work when explicitly referencing all the required assemblies in the project file. @NotoriousRebel: I am unsure if I understand correctly what you are trying to say here. But if you want to use the The runtimes ConfuserEx is able to obfuscate and the version of .NET ConfuserEx itself uses to run, are two different things. Now regarding the plan moving forward:
|
So I need to wait some time for v2 release? I have an app with .NET 4 and it won't launch after confusing. |
The release/2.0 branch has not been updated for months. |
Great work @mkaring ! |
I got a concept on how to approach the problem and a first rough version that works for all the .NET Framework, .NET 5/6, .NET Core and .NET Standard versions. There are still some problems when mixing different versions inside one ConfuserEx project and the performance is… problematic. Also it's not always injecting the correct runtime versions, leading the assemblies that target .NET Standard and .NET Framework at the same time and things like that. I'm expecting a first version that is ready for testing in October. |
Hi, Is there any update on when the first version that works for .net5 will be available? The Aug 19th comment mentions a first version ready for testing this October. |
Hello, |
.net 5 support would be much appreciated. Bought you some coffee, perhaps that helps ^_^ |
Please consider focusing on .NET6 as this is LTS edition from MS |
I don't think there is a big difference between .NET6, .NET5, and even net core 3.1 in terms of ConfuserEx support. |
do you have any plan to test how compatible with .Net6? |
Hi, |
Same here, just waiting :) |
mkaring, any update on this? I tried getting the latest release (1.6.0) to work with my .NET Core 6.0 project, w/o success. The same project was able to be obfuscated when it still targeted .NET Framework 4.8. I also tried https://github.com/obfuscar/obfuscar which worked w/ my .NET Core project, but didn't obfuscate private method contents which is key IMHO. Thank you in advance - ConfuserEx is amazing! |
Same here, just waiting :)...... May be another new ConfuseEx project target only .net core? |
.Net 5 Support is exactly what I need :) |
If you want to make it work with the latest .net versions, you will maybe have to resolve some dependencies issues.
|
@Kratheon is possible to migrate a Net 4.7.2 WPF app to Net 5 or Net 6 and use ConfuserEx this way? Or it is not supported yet. If some one share an history it will be welcome. |
Doesn't work for me. With 1.6.0 I get the Error: With 2.0.0-alpha-0191 I get: But didn't invest much time TBH |
Was hoping to get this working with Blazor WASM on .NET 6.0, but keep getting this in browser console:
The obfuscated DLL is being generated, but I guess the "blazor.webassembly.js" WASM runtime has a problem with it. |
P.S. to everyone who wants that .net latest support, I'm sure @mkaring would appreciate any donations (sponsor button below). |
That's very good progress, actually. Which branch has the commits? I cannot find it under master/2.0 Now, this could be a stupid question but, would it be possible to skip the "mixed assemblies problem" for now and release a version that would simply confuse Net6 assemblies? Thanks again, man, you rock. |
Hello! With @Kratheon, we are able to obfuscate .NET Standard 2.0 libraries and some simple .NET 6 projects, using ConfuserEx 1.6 and the probePath workaround. I just have a small question for you, @mkaring...
I suspect the "mixed assemblies" problem. Can you please confirm (or not) this assumption? The full log:
|
Hi All, What is the status for .NET 5 and 6 please ? |
Is not working with .Net 6? :( |
I do not think @mkaring has made a commit to any of his repos in almost a year, whatever the reason. So, a big thanks to him for taking up the project but we are royally screwed moving forward, it would seem, unless someone with the know-how picks it up again. |
We've found it to be working with ConfuserEx 1.6 within the limits that mkaring described in his answer above while adding the required probe paths as described in an earlier post. It has been applied to a reasonably complex .NET 6 project and was working with the following protections:
It is clearly a reduced scope of protections but probably what you can expect to work at this point in time until someone picks up the incredible work that has been done on ConfuserEx. |
Inserting probe paths like below made it work with .net 6. C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.6 |
Please I would like to know the status of this project on dotnet 6 support |
wait for v2.0 support all .net |
Any fresh & exciting news for .NET 7 (seven) support please?... |
wait |
OK, 2023 is in the air! .NET 8 is the successor to .NET 7. It will be supported for three years as a long-term support (LTS) release. You can download .NET 8 here. Microsoft suggests we focus only on 6/7/8, |
@greenozon Im using ConfuserEX to obfuscate NET 6 [WPF] project. Not working out of the box, i needed to add probe paths of the installed NET manually:
and |
I want to use ConfuseEx for dotnet 7 asp.net core web app but it is not working. |
@aboah find your dotnet installed directory (might be |
@aboah add those directory paths here in ConfuserEx: You can find your .NET directories here: Since you're using .NET 7, you'll want to add the following directories:
That's assuming you have the current version of .NET 7 installed (7.0.5 as of today). Browse to each of the above directories on your computer to find the latest version you have installed. For example, when I browse to the "Microsoft.AspNetCore.App" directory on my computer, I found 7.0.5 is the latest version I have installed. That's why I'm using "7.0.5" in the directory path above. Note: Your installed .NET version could be different for each of those directories. |
Does anybody try arleady this approach on .NET 8? |
@greenozon I haven't tried .NET 8 yet, but the instructions I shared above should work. |
Instructions above works for me for .NET6 for both WPF and ASP.NET |
UPD: Works on NET 8 for both ASP.NET and WPF projects.
To make it work out of the box - maybe at some spare time ill try creating a PR (within my fork) which would add those paths automatically if dll to obfuscate targeting NET 6/7/8. |
the new era has come |
@tshcherban Thank you for your reply |
@singerscreations Thank you for your reply |
[ERROR] Failed to resolve dependency of 'Sunshine.dll'. |
@aboah you might need some additional probe paths, if dependencies come from a nuget packages. We are adding a path to every nuget package, so Confuser can find its dll. |
@aboah double check your .NET probe paths. I see errors like that when any of those paths are pointed to the wrong version of .NET. |
Thanks to all. I will try again and get back to you |
Not really an issue, just wondering how compatible this project is with .Net 5 apps?
The text was updated successfully, but these errors were encountered: