2017-07-04 11 views
0

VSTSでホストされているNugetフィードに公開しようとしているdotnetコアライブラリがあります。私は何もしていないように見えるという点で問題があります。ビルドはエラーなしで完了していますが、nupkgファイルは作成もプッシュもされていないようです。ライブラリVSTSビルドでNugetパッケージを生成できません

 
****************************************************************************** 
Starting: NuGet pack 
****************************************************************************** 
============================================================================== 
Task   : NuGet 
Description : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Package Management and MyGet. 
Version  : 2.0.3 
Author  : Microsoft Corporation 
Help   : [More Information](https://go.microsoft.com/fwlink/?LinkID=613747) 
============================================================================== 
Downloading: https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe 
Caching tool: NuGet 4.0.0 x64 
Using version: 4.0.0 
Found tool in cache: NuGet 4.0.0 x64 
C:\Windows\system32\chcp.com 65001 
Active code page: 65001 
****************************************************************************** 
Finishing: NuGet pack 
****************************************************************************** 
****************************************************************************** 
Starting: NuGet push 
****************************************************************************** 
============================================================================== 
Task   : NuGet 
Description : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Package Management and MyGet. 
Version  : 2.0.3 
Author  : Microsoft Corporation 
Help   : [More Information](https://go.microsoft.com/fwlink/?LinkID=613747) 
============================================================================== 
C:\Windows\system32\chcp.com 65001 
Active code page: 65001 
****************************************************************************** 
Finishing: NuGet push 
****************************************************************************** 
****************************************************************************** 
Starting: Publish Artifact: Nuget Packages 
****************************************************************************** 
============================================================================== 
Task   : Publish Build Artifacts 
Description : Publish Build artifacts to the server or a file share 
Version  : 1.0.42 
Author  : Microsoft Corporation 
Help   : [More Information](https://go.microsoft.com/fwlink/?LinkID=708390) 
============================================================================== 
Publish build artifacts failed with error: Not found PathtoPublish: d:\a\1\a\*.nupkg 
****************************************************************************** 
Finishing: Publish Artifact: Nuget Packages 
****************************************************************************** 
****************************************************************************** 
Starting: Post Job Cleanup 
****************************************************************************** 
Cleaning any cached credential from repository: Esoterix (Git) 
git remote set-url origin https://esoterix.visualstudio.com/_git/Esoterix 
git remote set-url --push origin https://esoterix.visualstudio.com/_git/Esoterix 
****************************************************************************** 
Finishing: Post Job Cleanup 
****************************************************************************** 
****************************************************************************** 
Finishing: Build 
****************************************************************************** 

(簡潔にするためにカットオフ開始ログ)私は、ビルド資産として出力を公開しようとしていますと、以下のビルドログにエラーが含まれていますが、公開する出力はない...

ビルド定義を.NetCoreApp 1.1を使用して、.NETのコアライブラリは、成功したとDOTNETのテストラン...

NUGET PACK

パス以下でありますファイルにパックする:**/srcに/ *

コンフィグcsproj:$(BuildConfigurationを)

パッケージフォルダ:パッケージに$(Build.ArtifactStagingDirectory)

NUGETのPUSH

パスへプッシュ:$(Build.ArtifactStagingDirectory)/ * nupkg

ターゲットフィード:ローカル(私のVSTSパッケージフィード)

これはかなり奇妙に思える...

C:\Windows\system32\chcp.com 65001 
Active code page: 65001 

答えて

1
.NETコアライブラリプロジェクトのために

、および.csprojファイルは通常**/src/ProjectName/ProjectName.csprojに存在します。

のでNugetパックステップでをパックするcsprojまたはnuspecファイル(複数可)しパスを確認してください、それは主に**/src/ProjectName/*.csprojまたは**/src/*/*.csprojでなければなりません。また、プロジェクトが1つしかない場合は、**/*.csprojを直接使用することもできます。

+1

実際、これは 'BrainMissingException'の場合です。私が戻ったときに私は確認します。 –

関連する問題