我已经多次清理并重建了所有内容,重新启动了VS和计算机,但没有进展。在修复QueryCommander开源项目中的一些错误时,我遇到了这样一个问题,在Debug构建下可以正常工作,但是Release模式下就无法工作。我只有在Release模式下才会收到以下错误信息:
CS0246 The type or namespace name 'AxSHDocVw' could not be found (are you missing a using directive or an assembly reference?)
QueryCommander.Help C:\Workspace\QueryCommander_4_0_0_0\QueryCommander.Help\WinGui\FrmHelpBrowser.cs
参考资料确实存在:
![enter image description here](https://istack.dev59.com/ZP3Xo.webp)
![enter image description here](https://istack.dev59.com/6POqt.webp)
using
指令,但我不确定为什么在Debug
模式下可以工作,并且这里应该使用什么。using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using QueryCommander.Help.WinGui.Base;
namespace QueryCommander.Help.WinGui
{
/// <summary>
/// Summary description for FrmHelpBrowser.
/// </summary>
public class FrmHelpBrowser : FrmBaseContent
{
public AxSHDocVw.AxWebBrowser axWebBrowser1; // Error on this line
//----------------^ here
发布模式中缺少什么?