使用NuGet复制项目

时间:2018-09-20 15:28:43

标签: nuget nuget-package

NuGet noob在这里。我想使用NuGet在我的解决方案中完全复制几个项目,以便为不同的客户创建不同的风格。好吧,我不想,我的老板愿意。我建议使用项目模板,但显然,我们对NuGet更加感兴趣(NuGet确实具有使这些客户喜欢的版本与我们的原始版本保持一致的优势)。

我首先将几个.nuspec文件放入我们正在创建其包的两个项目中(我们将它们称为web.ui和servicehost),并添加了它们的所有NuGet依赖项。我们使用TeamCity构建和推出我们的软件包,因此设置要推出的软件包是一个简单的任务-然后我遇到了NuGet软件包中缺少内容的问题-所以我添加了一个参数...,然后好吧,我将在这里发布清洗过的nuspec。问题是,在我当前的设置中,该项目无法提供一切。我想要它,以便在将我的NuGet软件包安装到空白项目时,它可以复制香草中的内容。再次感谢您的帮助,我是NuGet的新手。

<?xml version="1.0"?>
<package >
  <metadata>
    <id>####.ServiceHost</id>
    <version>$version$</version>
    <title>####.ServiceHost</title>
    <authors>##</authors>
    <owners>##</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>####.ServiceHost</description>
    <releaseNotes></releaseNotes>
    <copyright>Copyright 2018, ########</copyright>
    <dependencies>
      <group targetFramework="net462">
      <dependency id="AntiXSS" version="4.2.1" />
      <dependency id="Aspose.Cells" version="8.7.0" />
      <dependency id="Aspose.Email" version="6.2.0" />
      <dependency id="Aspose.Pdf" version="11.3.0" />
      <dependency id="Aspose.Words" version="16.1.0" />
      <dependency id="EO.Pdf" version="15.3.1.0" />
      <dependency id="FileHelpers" version="2.0.0.0" />
      <dependency id="HtmlAgilityPack" version="1.4.6" />
      <dependency id="Microsoft.Azure.KeyVault.Core" version="1.0.0" />
      <dependency id="Microsoft.Data.Edm" version="5.8.2" />
      <dependency id="Microsoft.Data.OData" version="5.8.2" />
      <dependency id="Microsoft.Data.Services.Client" version="5.8.2" />
      <dependency id="Microsoft.WindowsAzure.ConfigurationManager" version="3.2.3" />
      <dependency id="Newtonsoft.Json" version="9.0.1" />
      <dependency id="SSH.NET" version="2016.0.0" />
      <dependency id="System.ComponentModel.EventBasedAsync" version="4.0.11" />
      <dependency id="System.Dynamic.Runtime" version="4.0.0" />
      <dependency id="System.Linq.Queryable" version="4.0.0" />
      <dependency id="System.Net.Requests" version="4.0.11" />
      <dependency id="System.Spatial" version="5.8.2" />
      <dependency id="####" version="543.0.0" />
      <dependency id="WindowsAzure.Storage" version="8.1.4" />
      <dependency id="####" version="42.0.0" />
      <dependency id="####" version="1.13.206" />
      <dependency id="####" version="1.13.206" />
        </group>
    </dependencies>
  </metadata>
  <files>
    <file src="**\*" target="lib" />
  </files>
</package>

0 个答案:

没有答案