What are the official FrameworkNames?

.NET 4 has a new FrameworkName class . An example of this is NuPack and its package directory naming convention .

What is FrameworkNames for the Microsoft .NET Framework?

+3
source share
2 answers

You can see for yourself when you change the output of MSBuild to Diagnostic. Tools + Options, projects and solutions, assembly and launch. The string that you pass to the FrameworkName constructor is displayed as a TargetFrameworkMonikerbuild property .

What I can easily see is the regular desktop version:

.NETFramework, Version = v4.0, Profile = Client

And the version of Silverlight:

Silverlight, Version = v4.0

OP, Windows Phone 7:

Silverlight, Version = v4.0, = WindowsPhone

- Micro Framework, , . Compact Framework VS2010. , .

+2

:

$p = Get-Project "MyProjectName"
$p.Properties.Item("TargetFrameworkMoniker").Value

Visual Studio โ†’ .

0

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


All Articles