trail version of smart assembly on devops pipe line
Akshay
Posts: 7 New member
Hi Team,
I am unable to download trail version of smart assembly on devops pipe line. I am looking for license key to test some scenarios..if everything works then thinking to but the product..could you please help me.
Thanks
Akshay
I am unable to download trail version of smart assembly on devops pipe line. I am looking for license key to test some scenarios..if everything works then thinking to but the product..could you please help me.
Thanks
Akshay
Answers
where can I get $(SA_KEY)` for trai version?
do i need do self hosting agent on our machine or azure pipeline agent ? please do suggest.
Error message
PowerShell exited with code '1'.
$p = Start-Process -FilePath msiexec -Args "/qn /i `"$msiPath`" INSTALLDIR=`"$saInstallLocation`" RG_LICENSE=`"$(SA_KEY)`" RG_WARNING=`"Ignore`" REBOOT=`"ReallySuppress`" RG_I=`"Red Gate Software Ltd.`"" -Wait -Verbose -PassThru
if ($p.ExitCode -ne 0) {
throw "SmartAssembly installation failed. Installer exited with code: $($p.ExitCode)"
}
where can I get $(SA_KEY)` for trai version?
do i need do self hosting agent on our machine or azure pipeline agent ? please do suggest.
Error message
PowerShell exited with code '1'.
$p = Start-Process -FilePath msiexec -Args "/qn /i `"$msiPath`" INSTALLDIR=`"$saInstallLocation`" RG_LICENSE=`"$(SA_KEY)`" RG_WARNING=`"Ignore`" REBOOT=`"ReallySuppress`" RG_I=`"Red Gate Software Ltd.`"" -Wait -Verbose -PassThru
if ($p.ExitCode -ne 0) {
throw "SmartAssembly installation failed. Installer exited with code: $($p.ExitCode)"
}
We've opened a ticket for you (#161538) and I will send you a trial key there.
Regarding the agent, you can use either a self-hosted or Microsoft-hosted agent. (If the latter, you need to make sure to use the steps here https://documentation.red-gate.com/sa7/building-your-assembly/using-smartassembly-with-azure-pipelines. If the former, you can just add a task to call on the SmartAssembly command line on the local hosted machine: https://documentation.red-gate.com/sa/building-your-assembly/using-the-command-line-mode)
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
Please see the below screen shot artificate s and yaml script.
Please help me on this.
yaml Script:
ClickOnce will use the assembly built in the obj/release folder, so you need to make sure that the SmartAssembly project's input assembly comes from that obj/release folder, and that your csproj/vbproj file has OverwriteAssembly = "True" as described here: https://documentation.red-gate.com/sa7/building-your-assembly/using-smartassembly-with-clickonce-and-msi
Can you please give this a try? I hope that helps!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
But if I run build and publish pipeline is self hosting still it is not obfuscating. please suggest.
<!-- SmartAssembly task -->
<UsingTask TaskName="SmartAssembly.MSBuild.Tasks.Build" AssemblyName="SmartAssembly.MSBuild.Tasks, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" />
<Target Name="BuildWithSmartAssembly" AfterTargets="CoreCompile" Condition=" '$(Configuration)' == 'Release' ">
<SmartAssembly.MSBuild.Tasks.Build ProjectFile="$(ProjectDir)$(AssemblyName).saproj" OverwriteAssembly="True" />
</Target>
<!-- /SmartAssembly task -->