我正在尝试将 dll 安装到 GAC,我收到此错误:
程序集没有强命名或未使用最小密钥长度签名。
代码如下。我该如何解决这个问题?
    <Product Id="4C76EAE3-148A-4597-A994-0178693C5B25" Name="MySolutionInstaller" Language="1033" Version="1.0.0.0" Manufacturer="Me" UpgradeCode="a5e6cbeb-18be-4f7e-9ab5-f1adb1d947eb">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate />
    <Feature Id="ProductFeature" Title="MySolutionInstaller" Level="1">
      <ComponentGroupRef Id="ProductComponents" />
    </Feature>
  </Product>
  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <!--<Directory Id="INSTALLFOLDER" Name="MyDLLCoreLibrary">-->
        <Directory Id="ProductDirectory" Name="MySolutionInstaller">
          <Directory Id="GAC" Name="GAC"/>
        </Directory> 
      </Directory>
    </Directory>
  </Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents">
      <Component Id='DataLibraryGAC' Directory="GAC" Guid='a3b57886-4d27-4e4c-a28f-60a061cdd12d'>
        <File Id='DataDLLGAC' Name='MyProject.Data.dll' Source='C:\projects\MyProject.Data\bin\Debug\MyProject.Data.dll' 
              KeyPath="yes" Assembly=".net" />
        <!--<RemoveFile Id="RemoveDataDLLGAC" Name="My.Data.dll" On="uninstall" />-->
      </Component>
    </ComponentGroup>
  </Fragment>