The NuGet Pack.nuspec file returns "Token Replacement Symbol" doesn't matter. "

This is the error I received while trying to package the project in Visual Studio 2013:

PM> NuGet Pack C:\ITVizion\RTVizion\ITVizion.RTVizion.Service\ITVizion.RTVizion.Service.nuspec -Prop Configuration=Release
Attempting to build package from 'ITVizion.RTVizion.Service.nuspec'.
NuGet : The replacement token 'version' has no value.
At line:1 char:1
+ NuGet Pack C:\ITVizion\RTVizion\ITVizion.RTVizion.Service\ITVizion.RTVizion.Serv ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (The replacement...' has no value.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

What happened to this?

+4
source share
2 answers

I found a problem:

enter image description here

Be sure to fill out the Assembly Information project .

You can access it with the right mouse button on a project in Visual Studio Solution Explorer. Select Application tab => Assembly Information....

+5
source

, - , , , , , . , , , , .

, SomeProject.nuspec $id$, $author$ .., , SomeProject.nuspec * * , SomeProject.csproj,

nuget.exe pack SomeProject.csproj -Build

- .

, ,

nuget.exe pack -Build

, nuspec csproj, , , csproj nuspec . nupkg , , nuspec!

, - !

+3

Source: https://habr.com/ru/post/1536485/


All Articles