<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net47</TargetFramework>
</PropertyGroup>
</Project>
using System;
using System.Reflection;
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Environment.Is64BitProcess);
ImageFileMachine b;
typeof(Program).Assembly.ManifestModule.GetPEKind(out PortableExecutableKinds a, out b);
Console.WriteLine($"{a}: {b}");
}
}
Actual output:
But, properties window shows:
