很急啊,新建c#类库时提示"库没有注册",怎么解决啊,在线等

解决方案 »

  1.   

    不会吧
    .net的类库不需要注册就能用的
    一般把它放到bin文件夹里
    使用的时候引入它的命名空间就可以使用了
      

  2.   

    但是添加引用的时候说没有dll文件不能添加啊
      

  3.   

    这个是vs.net的错误还是运行时错误?
      

  4.   

    是vs.net的错误吧
    新增类的时候也不行
    说不能运行什么向导
      

  5.   

    我年初遇到过这个问题,就是安装了一个VS.NET的插件后又将它卸载了,vs.net就无法再添加webform或类库,说无法运行某个wiz向导,记得好象是通过运行 
    regsvr32 <VisualStudioInstallDir>\vc7\vcpackages\csproj.dll
    这个命令解决的,你可以试试,或者看一下这个帖子: http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=614
      

  6.   

    http://support.microsoft.comPRB: "VC Package Not Available or Not Registered" Error Message 
    适用于 
    This article was previously published under Q320427 
    SYMPTOMSWhen you create a WinForms application, you may receive the following error message: "VC Package not available or not registered" 
    This behavior can occur even after what appears to be a successful installation. 
    CAUSEThis behavior seems to occur because the Windows Installer does not register TLBs and DLLs if the installer finds that these items already exist. In most cases, a previous version of Visual Studio .NET causes this behavior, even if the previous installation was under a different operating system. 
    RESOLUTIONTo resolve the problem, run the Visual Studio .NET repair. A repair is more effective for fixing this issue because the repair process forces registration of items that are not re-registered during an install. To run the repair, follow these steps: 
    On the Start menu, point to Settings, click Control Panel, and then click Add/Remove Programs. 
    On the list of installed programs, click Visual Studio .NET, and then click Change. 
    Click the second item in the 1 2 3 Visual Studio Setup dialog box. 
    Click Repair/Re-install, and then follow the onscreen instructions.