1 write to _task
Microsoft.NET.Build.Tasks (1)
ResolvePackageAssets.cs (1)
726
_task
= task;
37 references to _task
Microsoft.NET.Build.Tasks (37)
ResolvePackageAssets.cs (37)
742
_runtimeTarget = _lockFile.GetTargetAndReturnNullIfNotFound(_targetFramework, runtimeIdentifier:
_task
.EffectiveRuntimeIdentifier);
757
_runtimeTarget = _lockFile.GetTargetAndThrowIfNotFound(_targetFramework, runtimeIdentifier:
_task
.EffectiveRuntimeIdentifier);
774
Directory.CreateDirectory(Path.GetDirectoryName(
_task
.ProjectAssetsCacheFile));
775
var stream = File.Open(
_task
.ProjectAssetsCacheFile, FileMode.Create, FileAccess.ReadWrite, FileShare.None);
835
_writer.Write(
_task
.HashSettings());
982
if (ParseCompilerApiVersion(_cacheWriter.
_task
.CompilerApiVersion, out ReadOnlyMemory<char> compilerName, out Version compilerVersion))
995
if (NuGetUtils.IsApplicableAnalyzer(file, _cacheWriter.
_task
.ProjectLanguage))
1217
if (
_task
.DisableFrameworkAssemblies)
1283
if (
_task
.EnsureRuntimePackageDependencies && !string.IsNullOrEmpty(
_task
.EffectiveRuntimeIdentifier))
1287
WriteItem(string.Format(Strings.UnsupportedRuntimeIdentifier,
_task
.EffectiveRuntimeIdentifier));
1313
if (
_task
.VerifyMatchingImplicitPackageVersion &&
1314
_task
.ExpectedPlatformPackages != null)
1316
foreach (var implicitPackage in
_task
.ExpectedPlatformPackages)
1373
if (
_task
.ShimRuntimeIdentifiers == null ||
_task
.ShimRuntimeIdentifiers.Length == 0)
1378
foreach (var runtimeIdentifier in
_task
.ShimRuntimeIdentifiers.Select(r => r.ItemSpec))
1380
bool throwIfAssetsFileTargetNotFound = !
_task
.DesignTimeBuild;
1383
if (
_task
.DesignTimeBuild)
1392
var apphostName =
_task
.DotNetAppHostExecutableNameWithoutExtension + ExecutableExtension.ForRuntimeIdentifier(runtimeIdentifier);
1448
var implicitPackageReferences = CollectSDKReferencesDesignTime.GetImplicitPackageReferences(
_task
.DefaultImplicitPackages);
1579
if (alias ==
_task
.TargetFramework)
1591
return alias ==
_task
.TargetFramework;
1633
_task
.SatelliteResourceLanguages == null ||
1634
_task
.SatelliteResourceLanguages.Any(lang =>
1651
_task
.Log.LogWarning(Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale);
1658
_task
.Log.LogMessage(MessageImportance.Low, Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale);
1668
_task
.Log.LogWarning(Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName);
1675
_task
.Log.LogMessage(MessageImportance.Low, Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName);
1716
if (
_task
.CopyLocalRuntimeTargetAssets)
1733
if (
_task
.DisableTransitiveProjectReferences)
1763
if (
_task
.DisableTransitiveFrameworkReferences)
1899
if ((!
_task
.IsSelfContained || string.IsNullOrEmpty(_runtimeTarget.RuntimeIdentifier)) &&
1900
_task
.PlatformLibraryName != null)
1903
var platformLibrary = _runtimeTarget.GetLibrary(
_task
.PlatformLibraryName);
1921
if (
_task
.PackageReferences != null)
1923
var excludeFromPublishPackageReferences =
_task
.PackageReferences