1
.nuspecファイルに基づいて、nugetパッケージをビルドするポストビルドイベントを実行しようとしています。私は何が起こっているのかわからないんだけどコマンド "nuget pack ..."がコード1で終了しました
The command "nuget pack C:\Users\user\Documebts\Code\BookProject\BookProject.Nuget\
BookProject.Nuget.csproj -Symbols -Properties Configuration=Debug
-IncludeReferencedProjects" exited with code 1.
:
nuget pack $(ProjectPath) -Symbols -Properties Configuration=$(ConfigurationName) -IncludeReferencedProjects
私は私のプロジェクトをビルドするとき、私は次のエラーを取得する:私は2013年マイポストビルドイベントコマンドラインがあるのVisual Studioを使用しています - 私は、Visual Studioは、診断への出力を構築変更し、これが見つかりました:私はポストビルドイベントコマンドでコマンドプロンプトと種類を開く場合は、それが正常に動作し、どのなしnugetパッケージをビルドします
>Using 'BookProject.nuspec' for metadata. (TaskId:44)
>Access to the path 'C:\BookProject.1.0.3.4.nupkg' is denied. (TaskId:44)
>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: The command "nuget pack C:\Users\user\Documebts\Code\BookProject\BookProject.Nuget\ BookProject.Nuget.csproj -Symbols -Properties Configuration=Debug -IncludeReferencedProjects" exited with code 1.
>Done executing task "Exec" -- FAILED. (TaskId:44)
>Done building target "PostBuildEvent" in project "Miw.Mshdf.Net.Nuget.csproj" -- FAILED.: (TargetId:72)
を問題。何か案は?
どのように解決しましたか? –