Get an error when trying to set the build version with the AssemblyInfo Task
Posted
by Glenn Slaven
on Stack Overflow
See other posts from Stack Overflow
or by Glenn Slaven
Published on 2010-04-29T07:21:21Z
Indexed on
2010/04/29
7:27 UTC
Read the original article
Hit count: 552
I've added the AssemblyInfo Task reference to my C# project file (VS2008 .NET 3.5), but when I build I get the following error
The "AssemblyInfo" task failed unexpectedly. System.ArgumentException: version Parameter name: The specified string is not a valid version number at Microsoft.Build.Extras.Version.ParseVersion(String version) at Microsoft.Build.Extras.AssemblyInfo.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)
My assemblyinfo file has these two attributes:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
© Stack Overflow or respective owner