Esempio n. 1
0
        /// <summary>
        /// Initialize assembly.
        /// </summary>
        private void initializeAssembly()
        {
            try
            {
                var outputType = VS.GetOutputType(_assemblyProject.Project);
                var extension  = outputType == "2" ? ".dll" : ".exe";
                var name       = getAssemblyName();
                var outputPath = VS.GetOutputPath(_assemblyProject.Project);

                var assemblyDir = Path.GetDirectoryName(getAssemblyFullPath());
                FullPathMapping = Path.GetFullPath(Path.Combine(assemblyDir, outputPath, name + extension));

                hookChangesHandler();
                initializeReferences();
            }
            catch (Exception ex)
            {
                VS.LogException(ex, "Initilizing assembly {0} failed", Name);
            }
        }