# Bug / missing: obfuscation

**URL:** https://talk.remobjects.com/t/bug-missing-obfuscation/16953
**Category:** Oxygene
**Created:** [July 19, 2018, 2:27pm UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953 "2018-07-19T14:27:16Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 19, 2018, 2:27pm UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/1 "2018-07-19T14:27:17Z")

</div>

The [assembly: obfuscation] does not react to the parameter PublicMembers := true.

And in the documentation is stated:

> This metadata is stored in the .fx file, so that the binary files (such as .dlls, .jars, or .a files) that will eventually be distributed to your end-users only contain the obfuscated names. When targeting .NET or Java (which does not emit .fx files by default), you will want to enable the Create .fx File option in project settings, to enable this.

I can not find this setting anywhere.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [July 20, 2018, 5:08am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/2 "2018-07-20T05:08:41Z")

</div>

Thanks, logged as bugs://80597

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [July 20, 2018, 5:22am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/3 "2018-07-20T05:22:31Z")

</div>

Obfuscate:  
you want PublicTypes, not PublicMembers. (Docs have just been updated to reflect this)

VS or Water?

Water has it here:

 ![afbeelding](https://talk.remobjects.com/uploads/default/original/2X/4/42a376190f51cb658478497d173725fa2ef7463e.png)

Seems VS doesn’t show it, i’ll log. For now: add `<CreateFXFile>True</CreateFXFile>` to the project file.

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 20, 2018, 6:08am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/4 "2018-07-20T06:08:38Z")

</div>

> [@ck](#):
>
> `<CreateFXFile>True</CreateFXFile>`

Where do I add it in the project file?

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 20, 2018, 6:09am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/5 "2018-07-20T06:09:16Z")

</div>

> [@ck](#):
>
> you want PublicTypes, not PublicMembers. (Docs have just been updated to reflect this)

Works 😄

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [July 20, 2018, 6:21am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/6 "2018-07-20T06:21:56Z")

</div>

in the top property group.

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 20, 2018, 6:29am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/7 "2018-07-20T06:29:11Z")

</div>

I do not get an .fx after compile file in Visual Studio

My project file:  
[buildITDb.elements](https://talk.remobjects.com/uploads/default/original/2X/4/4036732ce138bc7aa86ee005aa17dc1d47023663.elements) (4.4 KB)

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 20, 2018, 6:32am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/8 "2018-07-20T06:32:30Z")

</div>

@ck: I see the problem; it is created in the Obj folder, but not copied to the bin folder.

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 20, 2018, 6:36am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/9 "2018-07-20T06:36:18Z")

</div>

@ck:  
I copied the .fx file to the bin folder, but with a project reference only the obfuscated members are visible.  
I tried to reference the .fx file instead, but that is not accepted by Visual Studio.

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 20, 2018, 6:41am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/10 "2018-07-20T06:41:35Z")

</div>

@ck: This problem is unrelated.  
I have the same problem again; I did now recompile without obfuscation, and the dependent project doesn’t see the namespaces (see my mail to you and Marc).

This one started as soon as I compile the dll with obfuscated public types. The exe did not see the namespaces anymore (as was expected). Copying the fx file to the bin folder did not help. And it does still not see the namespaces after I recompiled the dll without obfuscation.

Removed the reference, compiled (errors of cause), made a project reference again, an now it works again.

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 20, 2018, 6:51am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/11 "2018-07-20T06:51:35Z")

</div>

Summary of the problems left:

1. Fx file is not copied to the bin (map file is also not copied)
2. If I use a project reference, the fx file is not used
3. If I try to reference the fx file itself, I get:  
 ![image](https://talk.remobjects.com/uploads/default/original/2X/5/535f2e33696bc1b47c933bf6728962b463daff9b.png)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [July 20, 2018, 7:33am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/12 "2018-07-20T07:33:06Z")

</div>

Thanks, logged as bugs://80600

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [July 20, 2018, 7:34am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/13 "2018-07-20T07:34:28Z")

</div>

3 isn’t really a bug per se (the error should just be better); you should reference the dll on .NET.

1 question though; you explicitly mention fx files used not working for project references; does that mean it works if it’s a regular reference?

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 20, 2018, 7:41am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/14 "2018-07-20T07:41:10Z")

</div>

I didn’t try that …

But no, referencing the dll (copied the fx file to the bin first) does also not work.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [July 20, 2018, 8:58am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/15 "2018-07-20T08:58:25Z")

</div>

bugs://80600 got closed with status fixed.

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [July 20, 2018, 8:58am UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/16 "2018-07-20T08:58:34Z")

</div>

Both should be fixed.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [July 20, 2018, 8:33pm UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/17 "2018-07-20T20:33:56Z")

</div>

bugs://80597 got closed with status fixed.

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 23, 2018, 12:33pm UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/18 "2018-07-23T12:33:58Z")

</div>

> [@RemObjectsSoftware](#):
>
> bugs://80597 got closed with status fixed.

Fix confirmed; fx file is copied and is used for references.

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [July 23, 2018, 1:00pm UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/19 "2018-07-23T13:00:15Z")

</div>

Just found another bug: Go to reference does not work when the reference is obfuscated (but mapped by the fx file).  
In the output window is logged: Could not find external type

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [July 23, 2018, 1:25pm UTC](https://talk.remobjects.com/t/bug-missing-obfuscation/16953/20 "2018-07-23T13:25:29Z")

</div>

Thanks, logged as bugs://80643

[Next page](https://talk.remobjects.com/t/bug-missing-obfuscation/16953.md?page=2)
