Overview
If you would like to find the .NET version for a DNN build of when the DNN code was compiled, you will need to use a PowerShell script.
Prerequisites
- Administrator access to PowerShell
- Access to the DNN File structure
Solution
- Open the PowerShell Application.
- Copy the snippet of code below.
[Reflection.Assembly]::ReflectionOnlyLoadFrom("C:\Users\Test\Desktop\Test\DotNetNuke.dll").CustomAttributes.Where({$_.AttributeType.Name -eq 'TargetFrameworkAttribute'}).ConstructorArguments.Value
- Change the Path after ReflectionOnlyLoadFrom to the path of your DotNetNuke.dll in the SiteRoot/Bin Folder.
- Press Enter.
The result you should get should be the .NET Framework version for when the DLL was complied.
Comments
0 comments
Please sign in to leave a comment.