How to hide files generated by custom tool in Visual Studio

后端 未结 4 1550
我寻月下人不归
我寻月下人不归 2020-12-04 10:06

I would like the files generated by my custom tool to be hidden, but I cannot find any documentation on how this is done.

An example of what I\'m looking for is WPF

4条回答
  •  悲&欢浪女
    2020-12-04 10:50

    The only way I know to do it is to add the generated file to have a dependency on the file you want it hidden behind - in the proj file.

    For example:

     
        
        
          test.cs
        
      
    

    If you removed the DependentUpon element then the file shows up beside the other file instead of behind it ... how does your generator add the files? can you walk us through the use case and how you would like it to work?

提交回复
热议问题