【问题标题】:Include AWSSDK refrence to the nant build file包括 AWS 开发工具包对 nant 构建文件的引用
【发布时间】:2013-03-07 08:32:07
【问题描述】:

我正在制作一个构建文件来构建一个使用 NANT 用 C#.net 编写的网站, 但我无法将 AWSSDK 程序集包含到文件中。它给了我错误

error CS0234: The type or namespace name 'S3' does not exist in the namespace 'Amazon'

AWSSDK 位于 c:/windows/assembly 文件夹中

这就是我尝试过的

<references> <include name="/WINDOWS/assembly/AWSSDK.dll" /> </references>

注意:-

<Reference Include="AWSSDK, Version=1.3.19.0, Culture=neutral, PublicKeyToken=cd2d24cd2bace800, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>/WINDOWS/assembly/</HintPath> </Reference>

不起作用,我猜Reference Include=不是 NANT 的一部分

【问题讨论】:

    标签: amazon-web-services build-automation nant nantcontrib


    【解决方案1】:

    确保您正在导入正确的命名空间。
    <imports>
    <import namespace="Amazon.S3" />
    </imports>

    【讨论】:

      猜你喜欢
      • 2017-09-17
      • 2016-07-26
      • 1970-01-01
      • 2021-10-29
      • 2016-12-09
      • 2023-03-15
      • 2011-11-10
      • 2012-05-24
      • 2015-04-07
      相关资源
      最近更新 更多