1 write to _task
Microsoft.NET.Build.Tasks (1)
ResolvePackageAssets.cs (1)
729
_task
= task;
39 references to _task
Microsoft.NET.Build.Tasks (39)
ResolvePackageAssets.cs (39)
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());
985
if (ParseCompilerApiVersion(_cacheWriter.
_task
.CompilerApiVersion, out ReadOnlyMemory<char> compilerName, out Version compilerVersion))
998
if (NuGetUtils.IsApplicableAnalyzer(file, _cacheWriter.
_task
.ProjectLanguage))
1220
if (
_task
.DisableFrameworkAssemblies)
1286
if (
_task
.EnsureRuntimePackageDependencies && !string.IsNullOrEmpty(
_task
.EffectiveRuntimeIdentifier))
1290
WriteItem(string.Format(Strings.UnsupportedRuntimeIdentifier,
_task
.EffectiveRuntimeIdentifier));
1316
if (
_task
.VerifyMatchingImplicitPackageVersion &&
1317
_task
.ExpectedPlatformPackages != null)
1319
foreach (var implicitPackage in
_task
.ExpectedPlatformPackages)
1376
if (
_task
.ShimRuntimeIdentifiers == null ||
_task
.ShimRuntimeIdentifiers.Length == 0)
1381
foreach (var runtimeIdentifier in
_task
.ShimRuntimeIdentifiers.Select(r => r.ItemSpec))
1383
bool throwIfAssetsFileTargetNotFound = !
_task
.DesignTimeBuild;
1386
if (
_task
.DesignTimeBuild)
1395
var apphostName =
_task
.DotNetAppHostExecutableNameWithoutExtension + ExecutableExtension.ForRuntimeIdentifier(runtimeIdentifier);
1451
var implicitPackageReferences = CollectSDKReferencesDesignTime.GetImplicitPackageReferences(
_task
.DefaultImplicitPackages);
1582
if (alias ==
_task
.TargetFramework)
1594
return alias ==
_task
.TargetFramework;
1636
_task
.SatelliteResourceLanguages == null ||
1637
_task
.SatelliteResourceLanguages.Any(lang =>
1654
_task
.Log.LogWarning(Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale);
1661
_task
.Log.LogMessage(MessageImportance.Low, Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale);
1671
_task
.Log.LogWarning(Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName);
1678
_task
.Log.LogMessage(MessageImportance.Low, Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName);
1719
if (
_task
.CopyLocalRuntimeTargetAssets)
1736
if (
_task
.DisableTransitiveProjectReferences)
1766
if (
_task
.DisableTransitiveFrameworkReferences)
1902
if ((!
_task
.IsSelfContained || string.IsNullOrEmpty(_runtimeTarget.RuntimeIdentifier)) &&
1903
_task
.PlatformLibraryName != null)
1906
var platformLibrary = _runtimeTarget.GetLibrary(
_task
.PlatformLibraryName);
1924
if (
_task
.PackageReferences != null)
1926
var excludeFromPublishPackageReferences =
_task
.PackageReferences