开发者

Problem getting version number from assembly file with msbuild

开发者 https://www.devze.com 2023-04-02 04:56 出处:网络
I\'m working on msbuild to get version info from assembly file. But i got a problem that the value $(MaxAssemblyVersion) is always empty. The only difference here is that i got a .Net solution includi

I'm working on msbuild to get version info from assembly file. But i got a problem that the value $(MaxAssemblyVersion) is always empty. The only difference here is that i got a .Net solution including several projects. So i have a GlobalAssemblyInfo.cs at the root folder and Assemblyinfo.cs inside every included project. Anyone has any suggestion for my situation? Is the开发者_如何学运维re any way to work with GlobalAssemblyinfo.cs?

Look forward to your reply! Every comment will be very helpful and appropriated.

Many thanks,


Depending on what point during the build you need the assembly version, you could extract it from your outputs using the GetAssemblyIdentity Task.

0

精彩评论

暂无评论...
验证码 换一张
取 消