Is there such a thing as a “content/data only project” in visual studio

前端 未结 6 2052
无人共我
无人共我 2021-02-06 23:21

I have a bunch of ancillary XML and XSLT files that I want to edit and manage in visual studio.

The files do not logically belong under any code project in my solution

6条回答
  •  佛祖请我去吃肉
    2021-02-07 00:04

    A work colleague has come up with a solution.

    He has suggested hand editing the project to remove the DefaultTargets from the Project (and delete a load of now unused properties).

    MSBuild complains if there are no targets in the project so he has added three empty targets.

    The final project looks something like this

    
    
      
        Debug
        AnyCPU
        9.0.30729
        2.0
        {541463A7-7CFA-4F62-B839-6367178B16BD}
      
      
        ... files ...
      
      
        ... files ...
      
      
      
      
    
    

    Admittedly, this solution requires more fiddling that I would have liked but seems to achieve what I was after: namely a project that does not aattempt to produce any build output.

提交回复
热议问题