Пример #1
0
        } // Install

        private void InstallFile(string file)
        {
            if (!File.Exists(file))
            {
                Log.LogError("Assembly file '{0}' not found.", file);
                _failed++;
                return;
            }

            AssemblyName name     = AssemblyName.GetAssemblyName(file);
            string       fullName = FusionWrapper.AppendProccessor(name.FullName, name.ProcessorArchitecture);

            _installedNames.Add(name.FullName);

            FusionWrapper.InstallAssembly(file, _force);
            Log.LogMessage("Installed: {0}", name.FullName);

            string installPath = FusionWrapper.GetAssemblyPath(fullName);

            _installedPaths.Add(new TaskItem(installPath));

            _successful++;

            if (_includeRelatedFiles)
            {
                CopyRelatedFiles(file, Path.GetDirectoryName(installPath));
            }
        }
Пример #2
0
        public void UninstallAssemblyShort()
        {
            string path = @"..\..\..\MSBuild.Community.Tasks\bin\Debug\MSBuild.Community.Tasks.dll";

            FusionWrapper.InstallAssembly(path, true);

            UninstallStatus result;
            bool            successful = FusionWrapper.UninstallAssembly("MSBuild.Community.Tasks", true, out result);

            Assert.IsTrue(successful);
        }
Пример #3
0
        public void UninstallAssembly()
        {
            string path = @"..\..\..\MSBuild.Community.Tasks\bin\Debug\MSBuild.Community.Tasks.dll";

            FusionWrapper.InstallAssembly(path, true);

            UninstallStatus result;
            bool            successful = FusionWrapper.UninstallAssembly("MSBuild.Community.Tasks, Version=1.4.0.0, Culture=neutral, PublicKeyToken=e8bf2261941c3948", true, out result);

            Assert.IsTrue(successful);
        }
Пример #4
0
        public void InstallAssembly()
        {
            string path = @"..\..\..\MSBuild.Community.Tasks\bin\Debug\MSBuild.Community.Tasks.dll";

            FusionWrapper.InstallAssembly(path, true);
        }