1 instantiation of FrameworkInfo
dotnet-svcutil-lib (1)
Shared\FrameworkInfo.cs (1)
97var fxInfo = new FrameworkInfo();
38 references to FrameworkInfo
dotnet-svcutil-lib (38)
AppSettings.cs (1)
13internal static void Initialize(FrameworkInfo frameworkInfo)
Bootstrapper\SvcutilBootstrapper.cs (3)
45internal static bool RequiresBootstrapping(FrameworkInfo targetFramework, IEnumerable<ProjectDependency> references) 110bool isSupportedTFM = TargetFrameworkHelper.IsSupportedFramework(this.Options.TargetFramework.FullName, out var frameworkInfo); 127if (isSupportedTFM && frameworkInfo.Name != FrameworkInfo.Netstandard && frameworkInfo.Version.CompareTo(new Version(6, 0)) >= 0)
CodeDomFixup\WcfCodeGenerationExtension.cs (1)
66|| !_options.Project.TargetFrameworks.Any(t => TargetFrameworkHelper.IsSupportedFramework(t, out FrameworkInfo fxInfo) && fxInfo.Version.Major >= 6)))
Shared\FrameworkInfo.cs (3)
29public static FrameworkInfo Parse(string fullFrameworkName) 97var fxInfo = new FrameworkInfo(); 110internal static bool TryParse(string fullFrameworkName, out FrameworkInfo frameworkInfo)
Shared\MSBuildProj.cs (9)
137FrameworkInfo netfxInfo = null; 138FrameworkInfo dnxInfo = null; 210if (TargetFrameworkHelper.IsSupportedFramework(targetFramework, out FrameworkInfo fxInfo)) 239if(!string.IsNullOrEmpty(tfMoniker) && FrameworkInfo.TryParse(tfMoniker, out FrameworkInfo fxInfo)) 252FrameworkInfo frameworkInfo = TargetFrameworkHelper.GetValidFrameworkInfo(msbuildProj.TargetFramework); 544FrameworkInfo netfxInfo = null; 545FrameworkInfo dnxInfo = null; 780if (_targetFrameworks.Count >= 1 && TargetFrameworkHelper.IsSupportedFramework(this.TargetFramework, out var frameworkInfo) && frameworkInfo.IsDnx)
Shared\Options\OptionValueParser.cs (4)
66else if (valueType == typeof(FrameworkInfo)) 68value = CreateValue<FrameworkInfo>(() => TargetFrameworkHelper.GetValidFrameworkInfo(stringValue), option, stringValue); 124else if (value is FrameworkInfo fx) 192else if (value is FrameworkInfo fx)
Shared\Options\UpdateOptions.cs (3)
45public FrameworkInfo TargetFramework { get { return GetValue<FrameworkInfo>(TargetFrameworkKey); } set { SetValue(TargetFrameworkKey, value); } } 65new SingleValueOption<FrameworkInfo>(TargetFrameworkKey),
Shared\TargetFrameworkHelper.cs (12)
125if (IsSupportedFramework(targetFramework, out var frameworkInfo)) 153FrameworkInfo fxInfo = null; 181if (TargetFrameworkHelper.IsSupportedFramework(targetFramework, out var frameworkInfo) && frameworkInfo.IsDnx) 187netCoreVersion = frameworkInfo.Name == FrameworkInfo.Netstandard ? 215public static FrameworkInfo GetValidFrameworkInfo(string targetFramework) 217if (!IsSupportedFramework(targetFramework, out FrameworkInfo frameworkInfo)) 225public static bool IsSupportedFramework(string fullFrameworkName, out FrameworkInfo frameworkInfo) 229if (FrameworkInfo.TryParse(fullFrameworkName, out frameworkInfo)) 231isSupported = (frameworkInfo.Name == FrameworkInfo.Netstandard && frameworkInfo.Version >= MinSupportedNetStandardVersion) || 232(frameworkInfo.Name == FrameworkInfo.Netcoreapp && frameworkInfo.Version >= MinSupportedNetCoreAppVersion) || 233(frameworkInfo.Name == FrameworkInfo.Netfx && frameworkInfo.Version >= MinSupportedNetFxVersion); 243if (TargetFrameworkHelper.IsSupportedFramework(targetFramework, out var frameworkInfo) && !frameworkInfo.IsDnx)
Tool.cs (2)
289if (project.TargetFrameworks.Count() > 1 && project.TargetFrameworks.Any(t => TargetFrameworkHelper.IsSupportedFramework(t, out FrameworkInfo fxInfo) && !fxInfo.IsDnx)) 291FrameworkInfo fxInfo = null;