Error building Nuget packages when using variable in the nuspec file

Hi,

Im trying to build a nuget packages in TC.

We get the following error when builing the Nuget package:

 Process exited with code 1 
 
[10:27:19]Id is required.
[10:27:19]Authors is required.
[10:27:19]Description is required.
[10:27:19]Process exited with code 1

In the nuspec we are using the following configuration (snip):

<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<!-- Title, author, description is taken from AssemblyInfo.cs. ID is the name of the packaged -->
<id>$id$</id>

<!-- The package version number that is used when resolving dependencies. Note that the version number is kept in the nuspec file, *not* in AssemblyInfo.cs, in order to
avoid 4-part version numbers and stick to SemanticVersion 2.0.0. See http://semver.org/ -->
<version>1.0.1</version>

<authors>$title$</authors>

<owners>$author$</owners>

 

This configuration (fx. %title%) works when we build the Nuget packaged outside TeamCity and is well documented by Microsoft.

https://docs.microsoft.com/en-us/nuget/reference/nuspec

 

Can you help?

0
2 comments

Hi Gordon,

Could you please open an issue in our tracker (https://youtrack.jetbrains.com/issues/TW) and attach the full build log (access the build results and click on "download build log")? You can set its visibility only to us in case you want to keep it private. Thanks in advance:

0

Please sign in to leave a comment.