/// <summary>
        /// Verifies if the item has a trasform configured already
        /// </summary>
        /// <param name="vsProject">The current project</param>
        /// <param name="itemid">The id of the selected item inside the project</param>
        /// <returns>True if the item has a transform</returns>
        public bool IsItemTransformItem(IVsProject vsProject, uint itemid)
        {
            IVsBuildPropertyStorage buildPropertyStorage = vsProject as IVsBuildPropertyStorage;

            if (buildPropertyStorage == null)
            {
                this.PackageLogger.LogMessage("Error obtaining IVsBuildPropertyStorage from hierarcy.");
                return(false);
            }

            buildPropertyStorage.GetItemAttribute(itemid, IsTransformFile, out string value);
            if (bool.TryParse(value, out bool valueAsBool) && valueAsBool)
            {
                return(true);
            }

            // we need to special case web.config transform files
            buildPropertyStorage.GetItemAttribute(itemid, "FullPath", out string filePath);
            IEnumerable <string> configs = ProjectUtilities.GetProjectConfigurations(vsProject as IVsHierarchy);

            // If the project is a web app, check for the Web.config files added by default
            return(ProjectUtilities.IsProjectWebApp(vsProject) && PackageUtilities.IsFileTransformForBuildConfiguration("web.config", Path.GetFileName(filePath), configs));
        }