1 write to TargetFramework
Microsoft.DotNet.Build.Tasks.Packaging (1)
GeneratePackageReport.cs (1)
365
TargetFramework
= packageItem.TargetFramework,
8 references to TargetFramework
Microsoft.DotNet.Build.Tasks.Packaging (8)
ValidatePackage.cs (8)
144
.Select(r => r.
TargetFramework
)
160
.Where(f => IsDll(f.LocalPath) && FrameworkUtilities.IsGenerationMoniker(f.
TargetFramework
)))
162
if (compileAsset.
TargetFramework
.Version < minSupportedGeneration)
164
Log.LogError($"Invalid generation {compileAsset.
TargetFramework
.Version} for {compileAsset.LocalPath}, must be at least {minSupportedGeneration} based on the implementations in the package. If you meant to target the lower generation you may be missing an implementation for a framework on that lower generation. If not you should raise the generation of the reference assembly to match that of the lowest supported generation of all implementations/placeholders.");
339
if (!implementationAssembly.
TargetFramework
.Equals(fx) && !runtimeFxSuppression.Contains(fx.ToString()))
342
var matchingFxAssets = _report.UnusedAssets.Where(i => i.
TargetFramework
!= null && i.
TargetFramework
.Equals(fx) && // exact framework
352
Log.LogError($"When targeting {target} {ContractName} will use {implementationAssembly.LocalPath} which targets {implementationAssembly.
TargetFramework
.GetShortFolderName()} but {String.Join(";", matchingFxAssets.Select(i => i.PackagePath))} targets {fx.GetShortFolderName()} specifically.");