How can I prevent Visual Studio from creating license.licx

前端 未结 5 2457
野趣味
野趣味 2021-02-19 10:31

We use 3rd party controls in our project. Almost every time when I double click on a file which has a design view too, Visual Studio tries to bring up the designer with heroic e

5条回答
  •  心在旅途
    2021-02-19 11:30

    You can create a post build event that removes the .licx file for you. We've dealt with this annoyance on our team, and aside from manually excluding or deleting it, the post build event is your best bet. Every time you open a Windows Form, the file will be added again if that form is referencing or using any of the 3rd party .dlls.

    You can specify the pre and post build events via console or by right clicking on the project and selecting Properties -> Build Events. Hope this helps.

提交回复
热议问题