Activity overview
Latest activity by DanielRose
With Windows 10 and .NET 4.6 being out, a small update for SmartAssembly to correctly recognize them in feature usage reporting would be nice [image] / comments
With Windows 10 and .NET 4.6 being out, a small update for SmartAssembly to correctly recognize them in feature usage reporting would be nice
IIRC I had that bug when I used a SQL-server on a different machine, with the address given as
\serverSQLExpress
Instead, the address needs to be
serverSQLExpress
I.e. without the starting \. Since smartassembly is crashing on startup, you'll need to manually change it in the settings file in C:ProgramDataRed GateSmartAssembly. / comments
IIRC I had that bug when I used a SQL-server on a different machine, with the address given as
\serverSQLExpress
Instead, the address needs to be
serverSQLExpress
I.e. without the starting \. Sin...
After lots of updating and testing, I finally figured out the problem: The .NET 2.0 assembly used a different key to sign the assembly, so the MandatoryPath doesn't work.
With the following change I get it to compile: <Assembly AssemblyName="mscorlib, Culture=neutral, PublicKeyToken=b77a5c561934e089" MandatoryPath="C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll" />
<Assembly AssemblyName="mscorlib, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" MandatoryPath="C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll" />
However, I now get the following warning:
One or more of the merged assemblies uses internal members of unmerged assemblies via InternalsVisibleToAttribute. Your assembly may not work.
However, so far I have not noticed any problems. / comments
After lots of updating and testing, I finally figured out the problem: The .NET 2.0 assembly used a different key to sign the assembly, so the MandatoryPath doesn't work.
With the following change ...
nyxling wrote:
IF NOT EXIST "0001_Obfuscate" ( mkdir "0001_Obfuscate" )
IF EXIST "0001_Obfuscate\Assembly-CSharp.dll" ( del "0001_Obfuscate\Assembly-CSharp.dll" )
"C:\Program Files\Red Gate\SmartAssembly 6\SmartAssembly.com" /build "%system.teamcity.build.checkoutDir%/../0001.saproj"
IF EXIST "0001_Obfuscate\Assembly-CSharp.dll" ( copy "0001_Obfuscate\Assembly-CSharp.dll" "0001_Build\0001_Data\Managed\Assembly-CSharp.dll" )
AFAIK the copy command sets the errorlevel as well. So if the SA build fails, but the file was created, it gets copied. If copying succeeded, this will return 0.
So the correction would be:
"C:\Program Files\Red Gate\SmartAssembly 6\SmartAssembly.com" /build "%system.teamcity.build.checkoutDir%/../0001.saproj"
IF ERRORLEVEL 1 EXIT 1
IF EXIST "0001_Obfuscate\Assembly-CSharp.dll" ( copy "0001_Obfuscate\Assembly-CSharp.dll" "0001_Build\0001_Data\Managed\Assembly-CSharp.dll" )
/ comments
nyxling wrote:
IF NOT EXIST "0001_Obfuscate" ( mkdir "0001_Obfuscate" )
IF EXIST "0001_Obfuscate\Assembly-CSharp.dll" ( del "0001_Obfuscate\Assembly-CSharp.dll" )
"C:\Program Fi...
I have over 42000 samap files, of which I only need a couple hundred. With that amount of files, any manual search and delete won't work in any reasonable amount of time.
So please add me to the list of people who could really use such a tool! / comments
I have over 42000 samap files, of which I only need a couple hundred. With that amount of files, any manual search and delete won't work in any reasonable amount of time.
So please add me to the li...
If you are doing your own handling: There is a method SetProxy() on the UnhandledExceptionHandler. / comments
If you are doing your own handling: There is a method SetProxy() on the UnhandledExceptionHandler.
Unable to change Maps location in SA program
Last Friday the hard discs on one of our main file servers crashed hard. It is currently in repair. That server also contained the SA map files. The data was restored from backups to a different se...
Reflector disassembles managed code (CLI). It doesn't work for unmanaged C or C++ code. / comments
Reflector disassembles managed code (CLI). It doesn't work for unmanaged C or C++ code.
Hi Alex,
I put the resources assembly (with stripped strong-name) in the target location of the build, but it didn't change anything (still the same error). / comments
Hi Alex,
I put the resources assembly (with stripped strong-name) in the target location of the build, but it didn't change anything (still the same error).