Visual Studio does not let me drag drop items into it?

前端 未结 9 582
执笔经年
执笔经年 2020-11-30 05:46

Using Visual studio 2010 I got problems when double-clicking, for example a config file (*.config). Visual Studio would open but give me a error message about parameters. If

9条回答
  •  执念已碎
    2020-11-30 06:02

    I think the main goal of this question is how to add many folders and files to your project in a comfortable way. Drag and Drop files into your project is one solution, which fails under certain circumstances.

    Another very easy way is:

    • Copy the new folders and files where you physically want them in your project
    • Open the project explorer in VS and click the button "Show all files"
    • All the folders and files, which are now not part of your project yet appear white
    • Select the the white folders or files, right-click and choose "Bind to project"
    • Done

    This is also possible, if you run VS as admin.

    Have some fun!

    By the way: I found this question, because I had the same issue with drag and drop. I understand the security issues, but it is an annoying feature.

提交回复
热议问题