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); 777Directory.CreateDirectory(Path.GetDirectoryName(_task.TaskEnvironment.GetAbsolutePath(_task.ProjectAssetsCacheFile))); 778var 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); 1021if (ParseCompilerApiVersion(_cacheWriter._task.CompilerApiVersion, out ReadOnlyMemory<char> compilerName, out Version compilerVersion)) 1035if (!NuGetUtils.IsApplicableAnalyzer(file, _cacheWriter._task.ProjectLanguage) 1302if (_task.DisableFrameworkAssemblies) 1368if (_task.EnsureRuntimePackageDependencies && !string.IsNullOrEmpty(_task.EffectiveRuntimeIdentifier)) 1372WriteItem(string.Format(Strings.UnsupportedRuntimeIdentifier, _task.EffectiveRuntimeIdentifier)); 1398if (_task.VerifyMatchingImplicitPackageVersion && 1399_task.ExpectedPlatformPackages != null) 1401foreach (var implicitPackage in _task.ExpectedPlatformPackages) 1458if (_task.ShimRuntimeIdentifiers == null || _task.ShimRuntimeIdentifiers.Length == 0) 1463foreach (var runtimeIdentifier in _task.ShimRuntimeIdentifiers.Select(r => r.ItemSpec)) 1465bool throwIfAssetsFileTargetNotFound = !_task.DesignTimeBuild; 1468if (_task.DesignTimeBuild) 1477var apphostName = _task.DotNetAppHostExecutableNameWithoutExtension + ExecutableExtension.ForRuntimeIdentifier(runtimeIdentifier); 1533var implicitPackageReferences = CollectSDKReferencesDesignTime.GetImplicitPackageReferences(_task.DefaultImplicitPackages); 1664if (alias == _task.TargetFramework) 1676return 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); 1801if (_task.CopyLocalRuntimeTargetAssets) 1818if (_task.DisableTransitiveProjectReferences) 1848if (_task.DisableTransitiveFrameworkReferences) 1984if ((!_task.IsSelfContained || string.IsNullOrEmpty(_runtimeTarget.RuntimeIdentifier)) && 1985_task.PlatformLibraryName != null) 1988var platformLibrary = _runtimeTarget.GetLibrary(_task.PlatformLibraryName); 2006if (_task.PackageReferences != null) 2008var excludeFromPublishPackageReferences = _task.PackageReferences