1 instantiation of FrameworkInfo
dotnet-svcutil-lib (1)
Shared\FrameworkInfo.cs (1)
106
var fxInfo = new
FrameworkInfo
();
34 references to FrameworkInfo
dotnet-svcutil-lib (34)
AppSettings.cs (1)
13
internal static void Initialize(
FrameworkInfo
frameworkInfo)
Bootstrapper\SvcutilBootstrapper.cs (3)
45
internal static bool RequiresBootstrapping(
FrameworkInfo
targetFramework, IEnumerable<ProjectDependency> references)
110
bool isSupportedTFM = TargetFrameworkHelper.IsSupportedFramework(this.Options.TargetFramework.FullName, out
var
frameworkInfo);
127
if (isSupportedTFM && frameworkInfo.Name !=
FrameworkInfo
.Netstandard && frameworkInfo.Version.CompareTo(new Version(6, 0)) >= 0)
Shared\FrameworkInfo.cs (3)
29
public static
FrameworkInfo
Parse(string fullFrameworkName)
106
var
fxInfo = new FrameworkInfo();
116
internal static bool TryParse(string fullFrameworkName, out
FrameworkInfo
frameworkInfo)
Shared\MSBuildProj.cs (5)
201
if (TargetFrameworkHelper.IsSupportedFramework(targetFramework, out
FrameworkInfo
fxInfo))
230
if(!string.IsNullOrEmpty(tfMoniker) &&
FrameworkInfo
.TryParse(tfMoniker, out
FrameworkInfo
fxInfo))
243
FrameworkInfo
frameworkInfo = TargetFrameworkHelper.GetValidFrameworkInfo(msbuildProj.TargetFramework);
763
if (_targetFrameworks.Count >= 1 && TargetFrameworkHelper.IsSupportedFramework(this.TargetFramework, out
var
frameworkInfo) && frameworkInfo.IsDnx)
Shared\Options\OptionValueParser.cs (4)
66
else if (valueType == typeof(
FrameworkInfo
))
68
value = CreateValue<
FrameworkInfo
>(() => TargetFrameworkHelper.GetValidFrameworkInfo(stringValue), option, stringValue);
124
else if (value is
FrameworkInfo
fx)
192
else if (value is
FrameworkInfo
fx)
Shared\Options\UpdateOptions.cs (3)
45
public
FrameworkInfo
TargetFramework { get { return GetValue<
FrameworkInfo
>(TargetFrameworkKey); } set { SetValue(TargetFrameworkKey, value); } }
65
new SingleValueOption<
FrameworkInfo
>(TargetFrameworkKey),
Shared\TargetFrameworkHelper.cs (15)
60
if (!targetFrameworks.Any(targetFramework => IsSupportedFramework(targetFramework, out
var
frameworkInfo) && frameworkInfo.IsDnx))
88
FrameworkInfo
fxInfo = null;
112
if (TargetFrameworkHelper.IsSupportedFramework(targetFramework, out
var
frameworkInfo) && frameworkInfo.IsDnx && frameworkInfo.Name !=
FrameworkInfo
.Netstandard)
124
public static
FrameworkInfo
GetValidFrameworkInfo(string targetFramework)
126
if (!IsSupportedFramework(targetFramework, out
FrameworkInfo
frameworkInfo))
134
public static bool IsSupportedFramework(string fullFrameworkName, out
FrameworkInfo
frameworkInfo)
138
if (
FrameworkInfo
.TryParse(fullFrameworkName, out frameworkInfo))
140
isSupported = (frameworkInfo.Name ==
FrameworkInfo
.Netstandard && frameworkInfo.Version >= MinSupportedNetStandardVersion) ||
141
(frameworkInfo.Name ==
FrameworkInfo
.Netcoreapp && frameworkInfo.Version >= MinSupportedNetCoreAppVersion) ||
142
(frameworkInfo.Name ==
FrameworkInfo
.Netfx && frameworkInfo.Version >= MinSupportedNetFxVersionForDotNet);
150
if (
FrameworkInfo
.TryParse(fullFrameworkName, out
FrameworkInfo
frameworkInfo))
154
&& !frameworkInfo.Name.Equals(
FrameworkInfo
.Netstandard, StringComparison.OrdinalIgnoreCase)
166
if (TargetFrameworkHelper.IsSupportedFramework(targetFramework, out
var
frameworkInfo) && !frameworkInfo.IsDnx)