![]() ![]() Put simply, you use _dte.ExecuteCommand() Ok, I've managed to glean enough information to put together the add-in. I've been able to run it manually from the menu using: Analyze -> Run Code Analysis -> On Solution to get a list of issues, but I would like to automate this step with another add-in that runs and extracts the results.Īre there any resources that point to accessing the build warnings or the results of the code analysis?Īre there any solutions that already do this using EnvDte or Roslyn? PropDesc.SetValue(host.RootComponent, true) (bool?)propDesc.GetValue(host.RootComponent) != true) If (propDesc != null & host.RootComponent != null & Var propCollection = typeDescriptor.GetProperties() Var typeDescriptor = provider.GetExtendedTypeDescriptor(host.RootComponent) ![]() Var provider = TypeDescriptor.GetProvider(host.RootComponent) Var host = (IDesignerHost)designer.Object I am now trying to deal with any text that is set programmatically, text that trigger the Globalization (CA13#) warnings. I've written a Visual studio add-in using EnvDte that automates the process of setting the "Localizable" flag for every form in the solution to true, which is a critical step for extracting resources on form designers. I'm working on a solution to localize legacy applications. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |