| Author |
Message |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Thu Apr 26, 2012 11:43 am Post subject: |
|
|
Hi Kal,
Sorry, no I can't reproduce. And just to clarify, the references we are talking about are in the actual assembly after build, not the .csproj. This is why I suggested your compiler may be to blame. You have to open the assembly in something like .NET Reflector and check the references after build. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
kal_ahmed
Joined: 19 Apr 2012 Posts: 10
|
Posted: Thu Apr 26, 2012 12:27 pm Post subject: |
|
|
Hi Brian
I checked with dotPeek and for the unobfuscated assembly it shows one reference to:
mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
When I expand that reference, I get the mscorlib assembly with the WindowsPhone71 profile.
For the obfuscated assembly, it references the same mscorlib but also System.Windows.Browser (System.Windows.Browser, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
Can you give me a pointer on what compiler settings might be causing this problem - I'm happy to try things out, but I am very confused as to why this is happening at all with an empty, unmodified project and I'm not sure where to start with poking around at compiler settings.
Cheers
Kal |
|
| Back to top |
|
 |
kal_ahmed
Joined: 19 Apr 2012 Posts: 10
|
Posted: Thu Apr 26, 2012 12:30 pm Post subject: |
|
|
Further to my last message, this is the output from msbuild when compiling the assembly:
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,
1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;SILVERLIGHT;W
INDOWS_PHONE /reference:"C:\Program Files (x86)\Reference Assemblies\Microsof
t\Framework\Silverlight\v4.0\Profile\WindowsPhone71\mscorlib.dll" /reference:
"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight v4.0\Profile\WindowsPhone71\mscorlib.extensions.dll" /reference:"C:\Program F
iles (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile WindowsPhone71\System.Core.dll" /reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\system
.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Frame
work\Silverlight\v4.0\Profile\WindowsPhone71\System.Net.dll" /reference:"C:\P
rogram Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0 Profile\WindowsPhone71\System.Windows.dll" /reference:"C:\Program Files (x86)
\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPho
ne71\System.Xml.dll" /debug+ /debug:full /optimize- /out:obj\Debug\PhoneClass
Library1.dll /target:library Class1.cs Properties\AssemblyInfo.cs "C:\Users\K
al\AppData\Local\Temp\Silverlight,Version=v4.0,Profile=WindowsPhone71.Assembl
yAttributes.cs"
All references are definitely only to the WindowsPhone71 profile of Silverlight. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Thu Apr 26, 2012 12:48 pm Post subject: |
|
|
Yes, but can you please look at the references in the assembly after build??? _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Thu Apr 26, 2012 12:48 pm Post subject: |
|
|
Or can you send the assembly in? _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
kal_ahmed
Joined: 19 Apr 2012 Posts: 10
|
Posted: Thu Apr 26, 2012 1:07 pm Post subject: |
|
|
Hi
Sorry - it got a bit out of order, but if you look at the post preceding that last one, I did use dotNetPeek on the assembly both before obfuscation with SA and after obfuscation and noted the differences.
What email address should I use for sending in the assembly ?
Cheers
Kal |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Thu Apr 26, 2012 2:33 pm Post subject: |
|
|
support@red-gate.com and please quote F0059434 in the subject line. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Tue May 01, 2012 3:32 pm Post subject: |
|
|
If you protect a phone app with an evaluation version of SmartAssembly, it adds the reference to System.Windows.Browser. I did not have this problem because I had a valid serial number for it. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
kal_ahmed
Joined: 19 Apr 2012 Posts: 10
|
Posted: Wed May 02, 2012 1:28 pm Post subject: |
|
|
Hi Brian,
Thanks for the response. If this issue can be fixed by using a licensed copy of SmartAssembly, then that is definitely good news. It is a shame that we can't test the use of the assembly ourselves with the evaluation version, but if we have an assurance from Redgate that we will be able to obfuscate our WP 7.1 assembly and let our customers use it in their projects without this Silverlight dependency, then I am happy to proceed and get the licenses we need.
Many thanks for your assistance!
Cheers
Kal |
|
| Back to top |
|
 |
|