2016-04-14 59 views
0

değerine sahiptir Visual Studio Team Services'ta (Visual Studio Online'da) ilk Build tanımımı kurdum.VSTS Oluşturma - Değiştirme jetonu 'sürüm' değeri

O kurar

, tüm testler geçmek ve daha sonra nihayet bu hatayı çıkar: Bu benim nuspec dosyasıyla bulunan diğer bazı problemleri temizledikten sonra ise

Attempting to build package from 'EvoqPortaCoreDistrib.nuspec'. The replacement token 'version' has no value. Unexpected exit code 1 returned from tool NuGet.exe

. Garip bir şekilde, bu nuspec'i, paketleri masaüstü bilgisayarımdan başka bir yerde barındırılan bir beslemeye elle yönlendirmek için kullandım. Bugün NuGet 3.3'e güncellediğim fark.

Yani derleme sürümü bulunmadığını mı söylüyor? Açıkçası, imkansız olan.

+0

Nuspec dosyanızın bir örneğini ekleyebilir misiniz? öğesi var mı? – charisk

cevap

0

Dayan. Görünüşe göre, kendi .nuspec dosyanızı sağladığınızda, VSO yapısı tüm aptalca gider.

The packager does not compile the .csproj files for packaging. Each project is packaged only if it has a .nuspec file checked in. The packager does not replace tokens in the .nuspec file (except the element, see Use build number to version package, below). You must supply values for elements such as and . The most common way to do this is to hardcode the values in the .nuspec file.

https://msdn.microsoft.com/en-us/Library/vs/alm/Build/steps/package/nuget-packager

Yani benim .nuspec dosyayı götüreceğiz.

+0

Eski gönderi, ancak bunun tam olarak doğru olduğundan emin değilim [başka]: "Bir .nuspec dosyasında check-in yapmak zorunda değilsiniz. Bir tane kontrol ederseniz, paketleyici ayarlarını onurlandırır ve $ id $ ve $ description $. " –

+0

Ama yine de $ version $ değil – StingyJack