我正在使用xml注释来记录我的组件的公共以及内部和私有成员.我想将生成的文档xml文件与组件程序集打包在一起,以便为最终产品启用"丰富"(例如,使用方法,异常和参数描述)Visual Studio Intellisense.它的问题是C#编译器为所有内容(包括内部类,方法,内部枚举的私有字段等)创建文档条目,并且似乎没有切换到"仅公共成员"模式.
现在我不想在每个文件中使用XX方法查看超过50个文件,并删除私人和内部成员的所有注释.即使我这样做,我可能也不会在auto-gen'd资源文件上取得太大成功,因为这些强类型资源类会自动注释而非公开.
我的问题是:是否有一些选项/标志我忽略了?如果不是,是否有一些工具可以帮助将公共成员与其他成员分开(在我开始编写代码之前)?
我正在使用Wix3 beta和Feature Tree UI.我将几个程序集作为单独的组件安装到ProgramFiles中的自定义子目录中,也安装到GAC中.另外,我想将相同程序集的DEBUG版本打包为一个组件,让用户决定是否安装它们.现在,默认情况下禁用调试程序集的此功能,但无论如何都会安装调试程序集.
相关代码段下方:
<DirectoryRef Id="INSTALLDIR">
<Directory Id="bin" Name="bin">
<Directory Id="Debug" Name="Debug">
<Component Id="DebugComponent" Guid="PUT-GUID-HERE">
<File Id="DebugAssemblyXXX" DiskId="1" Source="Debug\XXX.dll"></File>
</Component>
</Directory>
<Directory Id="Release" Name="Release">
<Component Id="ReleaseComponent" Guid="PUT-GUID-HERE">
<File Id="ReleaseAssemblyXXX" DiskId="1" Source="Release\XXX.dll"></File>
</Component>
</Directory>
</Directory>
</DirectoryRef>
<Feature Id="All" ConfigurableDirectory="INSTALLDIR" Title="Title" Level="1"
Display="expand" AllowAdvertise="no" Absent="disallow" Description="Desc">
<Feature Id="DebugAssemblies" Title="Debug Assemblies" Level="1000" Absent="allow"
AllowAdvertise="no" Description="Debug versions of assemblies.">
<ComponentRef Id="DebugComponent" />
</Feature>
<Feature Id="ReleaseFeature1" Title="Feature" Level="3"
AllowAdvertise="no" Description="Another description">
<ComponentRef Id="ReleaseComponent"/>
</Feature>
</Feature>
Run Code Online (Sandbox Code Playgroud)
奇怪的是,如果我再次运行msi文件并转到"更改"并禁用调试功能,则调试程序集将被删除,例如,这次逻辑工作正常.
默认的INSTALLLEVEL是3.
有什么建议?
我有一个表格,通过以下方式显示:ShowDialog().表单没有CancelButton指定.
当我BrowseDialog从表单中打开一个然后关闭时BrowseDialog,表单也会关闭.我怎样才能防止这种情况发生?
单击"浏览"按钮时:
browseDialog.SelectedPath = projectLocation.Text;
browseDialog.ShowDialog();
if (browseDialog.SelectedPath != "")
{
projectLocation.Text = browseDialog.SelectedPath;
}
Run Code Online (Sandbox Code Playgroud)
单击表单的"取消"按钮时:
Close();
Run Code Online (Sandbox Code Playgroud)