0
我在Visual Studio 2012中构建了一个.NET 4应用程序,并希望以该格式对我的.net程序集进行版本化。创建一个没有版本号的.net DLL版本
[assembly: AssemblyInformationalVersion("6.0.1")]
[assembly: AssemblyVersion("6.0.*.0")]
但是我得到一个错误,当我建立的:
Properties\AssemblyInfo.cs(40,12): error CS0647: Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '6.0.*.0' is invalid'
这甚至可能吗?我注意到在某些Microsoft DLL中,它们的版本符合这一点。
那么我可以问为什么它在我使用6.0时有效。*? – dreza 2012-08-09 23:31:27
它只接受字符串末尾的星号,而不是中间的星号。 – Shameer 2012-08-09 23:50:20
你也可以尝试这个工具:http://autobuildversion.codeplex.com/ – Shameer 2012-08-09 23:53:25