更新时间:2022-11-04 20:24:26
通过在csproj文件中添加以下代码,它对我有用:
It worked for me by adding below code in csproj file :
<Target Name="PostPublish" BeforeTargets="Publish">
<Exec Command="move $(PublishDir)\runtimes $(PublishDir)\bin" />
</Target>
此行应注意以下事项:
<Exec Command="move $(PublishDir)\runtimes $(PublishDir)\bin" />
This line should be taking care of that:
<Exec Command="move $(PublishDir)\runtimes $(PublishDir)\bin" />
reference: github
reference : github