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

C# EnvDTE and TFS massive problems

$
0
0

I have created a vsix plugin for VS 2015 that receives some data of a REST-Service, writes it into a file and then it adds the file to my C# Project.

Well the problem is that after the files were written on the file system and integrated to the project my user input in visual studio is blocked:

e.g. I can write for example "asdf" in a code file, but when I try to delete the text with the backspace button it is not working. Other buttons like CTRL are also not working.

The interesting part is when I close VS2015 the following error appears: 

The problem is definitly caused by this line:

project.ProjectItems.AddFromFile(filePath);

project is an EnvDTE.Project object! The thing is the files were added to my project but I have to kill and restart VS to continue with my work.

I have also found a little workaround: When I disable TFS in my project all is working fine!

So my conclusion is that the problem is caused by TFS! Can anybody tell me what I can do, to solve this problem! It costs me a ton of time to restart VS every time!



Viewing all articles
Browse latest Browse all 4410

Trending Articles



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