我有一个问题,nuget pack将web.config重命名为我的项目中的web.config.transform.我正在使用带有nuspec文件的csproj文件,并且nuspec文件中没有行告诉nuget重命名文件,但是在输出和nupkg文件中,web.config正在重命名为web.config.转变.
web.config不是项目的一部分,它只是由nuspec文件添加(正常情况下,它是由构建过程生成的)
任何人都可以建议为什么这样做 - 我感觉像是一个nuget中的错误,但也许csproj文件中有一些东西,nuget正在采取重命名的指令?那可能是什么?
命令:
nuget pack path\to\projectfile\myproject.csproj -OutputDirectory C:\temp\publish -Version 1.1.646.32517 -Exclude Template.config -Exclude Template.Debug.config -Exclude Template.Release.config -Verbosity detailed
Run Code Online (Sandbox Code Playgroud)
输出:
Attempting to build package from 'myproject.csproj'.
Packing files from 'path\to\projectfile\bin'.
Using 'myproject.nuspec' for metadata.
Add file 'path\to\projectfile\bin\myproject.dll' to package as 'lib\net451\myproject.dll'
Add file ... to package as ...
...
Found packages.config. Using packages listed as dependencies
Id: myproject
Version: 1.1.646.32517
Authors: xxx
Description: myproject
Dependencies: Microsoft.AspNet.WebApi (= 5.2.3)
Added file 'content\ApiTestPage.html'.
Added file ........
.....
Added file …Run Code Online (Sandbox Code Playgroud) nuget ×1