Exemplo n.º 1
0
        public void Defaults()
        {
            ClientBuildManagerParameter p = new ClientBuildManagerParameter();

            Assert.AreEqual(PrecompilationFlags.Default, p.PrecompilationFlags, "A1");
            Assert.IsNull(p.StrongNameKeyContainer, "A2");
            Assert.IsNull(p.StrongNameKeyFile, "A3");
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            // Check arguments.
            if (ValidateAndSetArguments(args))
            {
                _cbmParameter = new ClientBuildManagerParameter();
                _cbmParameter.PrecompilationFlags    = _flags;
                _cbmParameter.StrongNameKeyContainer = _keyContainer;

                builder = new
                          ClientBuildManager(_vPath, _pPath, _tPath, _cbmParameter);
                // Pre-compile.
                if (Precompiler())
                {
                    Console.Write("Build succeeded. Result is at " + _tPath + ".");
                }
            }
        }
Exemplo n.º 3
0
        private void PrecompileHost(CassiniDev.Host host)
        {
            var flags = PrecompilationFlags.ForceDebug |
                        PrecompilationFlags.OverwriteTarget | PrecompilationFlags.Updatable;

            var cbmp = new ClientBuildManagerParameter();

            cbmp.PrecompilationFlags = flags;

            var cbm = new ClientBuildManager(host.VirtualPath, host.PhysicalPath);

            cbm.CompileApplicationDependencies();

            if (!cbm.IsHostCreated)
            {
                return;
            }

            cbm.CompileFile("/Default.aspx");

            System.Diagnostics.Debug.WriteLine("Precompile complete");
        }
	public ClientBuildManager(string appVirtualDir, string appPhysicalSourceDir, string appPhysicalTargetDir, ClientBuildManagerParameter parameter) {}
Exemplo n.º 5
0
 public ClientBuildManager(string appVirtualDir, string appPhysicalSourceDir, string appPhysicalTargetDir, ClientBuildManagerParameter parameter)
 {
 }
 public ClientBuildManagerWrapper(string webApplicationName, string webApplicationPhysicalPath, string preCompileOutputpath, ClientBuildManagerParameter parameter)
 {
     _buildManager = new ClientBuildManager(webApplicationName, webApplicationPhysicalPath, preCompileOutputpath, parameter);
 }