Exemplo n.º 1
0
        protected override string GenerateFullPathToTool()
        {
            if (AssetManCliPath.EndsWith("dll"))
            {
                return("dotnet");
            }

            return(AssetManCliPath);
        }
Exemplo n.º 2
0
        protected override string GenerateCommandLineCommands()
        {
            var optionsFiles = Directory.GetFiles(GetBaseDirectory(), "*.assets.json");

            var builder = new CommandLineBuilder();

            if (AssetManCliPath.EndsWith("dll"))
            {
                builder.AppendFileNameIfNotNull(AssetManCliPath);
            }

            builder.AppendSwitchIfNotNull("-Options ", string.Join(";", optionsFiles));

            if (Debug)
            {
                builder.AppendSwitch("-Debug");
            }

            return(builder.ToString());
        }