简体   繁体   中英

NuGet.exe pack packs into a subfolder I don't need

When I execute

C:\Tools\Nuget\NuGet.exe pack C:\SomePath\Server\Server.nuspec -OutputDirectory D:\NuGet\Repository -basePath C:\SomePath\Server -Version 8.1.0.1 -NoPackageAnalysis

The created .nupkg file contains a folder called Server. How can I call NuGet.exe pack so that the contents of my folder Server is packed at the root of the package and not in a subfolder Server?

Do you have the standard layout of folders in the Server folder? ( tools, lib, content)

Otherwise

  • Is BasePath necessary ?
  • What happens if you call pack with nuspec file? No parameters

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM