Nuget不复制内容

时间:2017-09-20 09:20:00

标签: deployment nuget nuspec

我遇到了一个问题,包括我需要的文件才能使项目正常工作,这里是我拥有的nuspec文件:

    <?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
    <metadata>
        <id>package_name</id>
        <version>1.0.1</version>
        <title>x Wrapper</title>
        <authors>me</authors>
        <owners>me</owners>
        <requireLicenseAcceptance>false</requireLicenseAcceptance>
        <description>package desc.</description>
        <releaseNotes>Bugfix to exe not being copied.</releaseNotes>
        <copyright>Copyright 2017</copyright>
        <tags></tags>
        <dependencies>
            <dependency id="x.Common.Interfaces" version="1.0.0" />
            <dependency id="x.Common.Logging" version="1.0.0" />
            <dependency id="x.Wrapper.Common" version="1.0.0" />
        </dependencies>
    </metadata>
    <files>
        <file src="build\package_name.props" target="build\package_name.props" />
        <file src="build\package_name.targets" target="build\package_name.targets" />
        <file src="x.Wrapper\x.exe" target="content\x.exe" />
        <file src="bin\Debug\package_name.dll" target="lib\net45\package_name.dll" />
    </files>
</package>

当将包推送并安装到nuget服务器时,只有项目dll +依赖项dll&#39;但没有其他文件被复制到项目中。任何对nuget软件包有更多经验的人都知道可能会发生什么?

0 个答案:

没有答案