如何将.exe文件添加到nuget包中

如何将.exe文件添加到nuget包中,nuget,Nuget,有一个.exe文件我想添加我的nuget软件包,但我似乎找不到正确的方法 我想将.exe文件添加到bin\Debug和bin\Release文件夹中 <?xml version="1.0" encoding="utf-8"?> <package > <metadata> <id>MyApi</id> <version>1.6</version> <title>MyApi&l

有一个.exe文件我想添加我的nuget软件包,但我似乎找不到正确的方法

我想将.exe文件添加到bin\Debug和bin\Release文件夹中

<?xml version="1.0" encoding="utf-8"?>
<package >
  <metadata>
    <id>MyApi</id>
    <version>1.6</version>
    <title>MyApi</title>
    <authors>ASIM GUNDUZ</authors>
    <owners>ASIM GUNDUZ</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <license type="expression">MIT</license>
    <description>.Net api</description>
    <releaseNotes>Hello World</releaseNotes>
    <copyright>Copyright 2020</copyright>
    <tags>AApi</tags>
  </metadata>
  <files>

    <file src ="bin\Release\MyApi.dll"  target="lib"/>

    <file src ="Sample_Usage.cs"  target="content\AApi\Sample_Usage.cs"/>
  </files>

</package>

MyApi
1.6
MyApi
阿西姆·冈杜兹
阿西姆·冈杜兹
假的
麻省理工学院
.NETAPI
你好,世界
版权所有2020
AApi

您是如何创建包的?我已经更新了我的问题,这将创建包并将sample\u usage.cs放入文件夹中,但我想将chromedriver.exe添加到bin\debug和release folders中您需要在包中运行一个target
postertargets=“build”
并将文件复制到适当的目录中。