使用nuget打包.Net和Native DLL

本文旨在介绍如何使用Nuget来管理适用于AnyCPU、x86和x64平台的.Net与Native DLL。通过设置Package.nuspec和XYZ.props文件,实现DLL的正确复制。
摘要由CSDN通过智能技术生成

目标

使用Nuget管理x86/x64多平台的,适应AnyCPU, x86,x64编译选项

 

步骤

1. 设置Package.nuspec

<?xml version="1.0"?>
<package >
  <metadata>
    <id>XYZ</id>
    <version>1.0.6</version>
    <authors>liwei</authors>
    <owners>liwei</owners>
    <licenseUrl>http://www.my.com</licenseUrl>
    <projectUrl>http://www.my.com</projectUrl>
    <iconUrl>http://www.my.com/icon.ico</iconUrl>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>HelloWorld</description>
    <releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
    <copyright>Copyright 2020</copyright>
    <tags>XYZ XYZ</tags>
  </metadata>
  <files>
      <file src="lib\**" target="lib" />
      <f
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值