Version information missing from .NET assembly (Compact Framework 3.5 / VS2008)

I am creating an executable file using VS2008 and the .NET compact framework 3.5, designed for Windows Mobile 6 professionals, but whenever I compile the project, everything that I specified in the AssemblyInfo.cs file is ignored.

I have done this many times in other projects, and it works without problems, but for some reason I can’t get the attributes AssemblyTitle/ AssemblyProduct/ AssemblyVersionetc. to display (I try to view them using Windows Explorer, I can see these properties in the details tab for any other assembly I created - even other projects in the same solution).

Any suggestions?

+3
source share
3 answers

This information looks at information about the native version, which is installed on the desktop using AssemblyFileVersionAttribute. The AssemblyFileVersionAttribute attribute is not supported in CF, so the only way to set version information out of the box is to compile the command line. There is a workaround on this blog .

0
source

I know this is old, but there is a simpler solution:
Version number in .NET Compact Framework application

. System.Reflection.Assembly.GetExecutingAssembly(). GetName(). Version.Major System.Reflection.Assembly.GetExecutingAssembly(). GetName(). Version.Minor System.Reflection.Assembly.GetExecutingAssembly(). GetName(). . Build System.Reflection.Assembly.GetExecutingAssembly(). GetName(). Version.Revision

0

in the PlatformFamilyName tag; rather, what is PocketPC, change to add WindowsCE to csproj

0
source

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


All Articles