Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

After Build step not running from command line

$
0
0

This is perplexing me, any help is appreciated! I am trying to add obfuscation using .NET Reactor to our build process.

I have successfully added afterbuild commands to two projects we wish to obfuscate, and when I build using Xamarin Studio these execute as expected. However when starting the same build from the command line, I see no evidence these commands were ever attempted.

Any idea why this is not working from the command line? Thanks in advance!

Clay

Command: C:\svn\eFleetSuiteAndroid\src>msbuild /t:Build /p:version=0.0.0.1 /p:Configuration=Release eFleetDroid\eFleetDroid.sln > buildResults.txt

See the attached xml for the project's release configuration

Ruby Script:

#!/usr/bin/env ruby
require 'pathname'
require 'fileutils'
include FileUtils

filepath = Pathname.new(ARGV[0])
filename = filepath.basename
dir = filepath.dirname
backupdir = Pathname.new(dir + 'backup')
if !backupdir.exist?
    FileUtils.mkdir backupdir
end

nrproj = ARGV[1]

FileUtils.cp filepath, Pathname.new(backupdir + filename)

netreactorpath64 = Pathname.new('C:\Program Files (x86)\Eziriz\.NET Reactor\dotNET_Reactor.exe')
netreactorpath32 = Pathname.new('C:\Program Files\Eziriz\.NET Reactor\dotNET_Reactor.exe')
if netreactorpath64.exist?
    `"#{netreactorpath64}" -project #{nrproj} -targetfile #{filepath}`
elsif netreactorpath32.exist?
    `"#{netreactorpath32}" -project #{nrproj} -targetfile #{filepath}`
end

FileUtils.cp filepath, dir + '../../obj/Release/' + filename

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>