1 write to _task
Microsoft.NET.Build.Tasks (1)
ResolvePackageAssets.cs (1)
729
_task
= task;
40 references to _task
Microsoft.NET.Build.Tasks (40)
ResolvePackageAssets.cs (40)
745
_runtimeTarget = _lockFile.GetTargetAndReturnNullIfNotFound(_targetFramework, runtimeIdentifier:
_task
.EffectiveRuntimeIdentifier);
760
_runtimeTarget = _lockFile.GetTargetAndThrowIfNotFound(_targetFramework, runtimeIdentifier:
_task
.EffectiveRuntimeIdentifier);
777
Directory.CreateDirectory(Path.GetDirectoryName(
_task
.TaskEnvironment.GetAbsolutePath(
_task
.ProjectAssetsCacheFile)));
778
var stream = File.Open(
_task
.TaskEnvironment.GetAbsolutePath(
_task
.ProjectAssetsCacheFile), FileMode.Create, FileAccess.ReadWrite, FileShare.None);
838
_writer.Write(
_task
.HashSettings());
1019
_projectCodeLanguage = NuGetUtils.GetLockFileLanguageName(_cacheWriter.
_task
.ProjectLanguage);
1021
if (ParseCompilerApiVersion(_cacheWriter.
_task
.CompilerApiVersion, out ReadOnlyMemory<char> compilerName, out Version compilerVersion))
1035
if (!NuGetUtils.IsApplicableAnalyzer(file, _cacheWriter.
_task
.ProjectLanguage)
1302
if (
_task
.DisableFrameworkAssemblies)
1368
if (
_task
.EnsureRuntimePackageDependencies && !string.IsNullOrEmpty(
_task
.EffectiveRuntimeIdentifier))
1372
WriteItem(string.Format(Strings.UnsupportedRuntimeIdentifier,
_task
.EffectiveRuntimeIdentifier));
1398
if (
_task
.VerifyMatchingImplicitPackageVersion &&
1399
_task
.ExpectedPlatformPackages != null)
1401
foreach (var implicitPackage in
_task
.ExpectedPlatformPackages)
1458
if (
_task
.ShimRuntimeIdentifiers == null ||
_task
.ShimRuntimeIdentifiers.Length == 0)
1463
foreach (var runtimeIdentifier in
_task
.ShimRuntimeIdentifiers.Select(r => r.ItemSpec))
1465
bool throwIfAssetsFileTargetNotFound = !
_task
.DesignTimeBuild;
1468
if (
_task
.DesignTimeBuild)
1477
var apphostName =
_task
.DotNetAppHostExecutableNameWithoutExtension + ExecutableExtension.ForRuntimeIdentifier(runtimeIdentifier);
1533
var implicitPackageReferences = CollectSDKReferencesDesignTime.GetImplicitPackageReferences(
_task
.DefaultImplicitPackages);
1664
if (alias ==
_task
.TargetFramework)
1676
return alias ==
_task
.TargetFramework;
1718
_task
.SatelliteResourceLanguages == null ||
1719
_task
.SatelliteResourceLanguages.Any(lang =>
1736
_task
.Log.LogWarning(Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale);
1743
_task
.Log.LogMessage(MessageImportance.Low, Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale);
1753
_task
.Log.LogWarning(Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName);
1760
_task
.Log.LogMessage(MessageImportance.Low, Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName);
1801
if (
_task
.CopyLocalRuntimeTargetAssets)
1818
if (
_task
.DisableTransitiveProjectReferences)
1848
if (
_task
.DisableTransitiveFrameworkReferences)
1984
if ((!
_task
.IsSelfContained || string.IsNullOrEmpty(_runtimeTarget.RuntimeIdentifier)) &&
1985
_task
.PlatformLibraryName != null)
1988
var platformLibrary = _runtimeTarget.GetLibrary(
_task
.PlatformLibraryName);
2006
if (
_task
.PackageReferences != null)
2008
var excludeFromPublishPackageReferences =
_task
.PackageReferences