Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

MPF: project properties -> "Visual Studio has encountered an unexpected error."

$
0
0

Hello,

I am trying to implement a VisualStudio project type. Currently, I can load a project and can add several individual leafs/nodes. Anyway, when I try to open the project's properties I am getting the error message "Visual Studio has encountered an unexpected error."

The only modifications I did are:

public class TcHmiProjectNode : ProjectNode
    {
        private TcHmiPackagePackage package;

        public TcHmiProjectNode(TcHmiPackagePackage package)
        {
            this.package = package;
            this.package.TcHmiProjectNode = this;
        }

        public override Guid ProjectGuid
        {
            get { return typeof(TcHmiProjectFactory).GUID; }
        }

        public override string ProjectType
        {
            get { return "TcHmiProject"; }
        }

        public override void AddFileFromTemplate(string source, string target)
        {
            this.FileTemplateProcessor.UntokenFile(source, target);
            this.FileTemplateProcessor.Reset();
        }
    }
Can you tell me what I am doing wrong or what I have missed?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>