gpt4 book ai didi

c# - ASP.Net C# AssemblyInfo 版本不工作

转载 作者:太空狗 更新时间:2023-10-29 20:02:42 24 4
gpt4 key购买 nike

这是 help file我在用。它声明它仍然适用于 4.6 版。

然而,当我尝试使用内置计算时,代码如下:

[assembly: AssemblyVersion("2015.7.*.*")]
[assembly: AssemblyFileVersion("2015.7.*.*")]

我在星号上遇到语法错误,解决方案无法编译。我不确定发生了什么。根据帮助文件,它应该可以工作。

最佳答案

你不需要两个 * 一个就够了。

[assembly: AssemblyVersion("2015.7.*")]

来自您的链接

Examples of valid version strings include:

1

1.1

1.1.*

1.1.1

1.1.1.*

1.1.1.1

删除 AssemblyFileVersion。

If the AssemblyFileVersionAttribute is not supplied, theAssemblyVersionAttribute is used for the Win32 file version that isdisplayed on the Version tab of the Windows file properties dialog.

关于c# - ASP.Net C# AssemblyInfo 版本不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31600573/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com