1 write to Data
Microsoft.Build (1)
BuildCheck\OM\BuildCheckDataContext.cs (1)
74Data = data;
37 references to Data
Microsoft.Build (37)
BuildCheck\Checks\DoubleWritesCheck.cs (9)
52switch (context.Data.TaskName) 63var taskParameters = context.Data.Parameters; 83var taskParameters = context.Data.Parameters; 110fileBeingWritten = Path.GetFullPath(fileBeingWritten, context.Data.ProjectFileDirectory); 116context.Data.TaskInvocationLocation, 117context.Data.TaskName, 119Path.GetFileName(context.Data.ProjectFilePath), 125_filesWritten.Add(fileBeingWritten, (context.Data.ProjectFilePath, context.Data.TaskName));
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (12)
56EnvironmentVariableIdentityKey identityKey = new(context.Data.EnvironmentVariableName, context.Data.EnvironmentVariableLocation); 62_buildCheckResults.Enqueue((context.Data.ProjectFilePath, context)); 64else if (CheckScopeClassifier.IsActionInObservedScope(_scope, context.Data.EnvironmentVariableLocation.File, context.Data.ProjectFilePath)) 68context.Data.EnvironmentVariableLocation, 69GetFormattedMessage(context.Data.EnvironmentVariableName, context.Data.EnvironmentVariableValue))); 86if (!CheckScopeClassifier.IsActionInObservedScope(_scope, context.Data.EnvironmentVariableLocation.File, projectPath)) 93context.Data.EnvironmentVariableLocation, 94GetFormattedMessage(context.Data.EnvironmentVariableName, context.Data.EnvironmentVariableValue)));
BuildCheck\Checks\PreferProjectReferenceCheck.cs (10)
50if (_projectsSeen.Contains(context.Data.ProjectFilePath)) 57context.Data.EvaluatedProperties.TryGetValue(ItemMetadataNames.targetPath, out targetPath); 64targetPath = BuildCheckUtilities.RootEvaluatedPath(targetPath, context.Data.ProjectFilePath); 66_projectsPerOutputPath[targetPath] = context.Data.ProjectFilePath; 75Path.GetFileName(context.Data.ProjectFilePath), 85if (!_projectsSeen.Add(context.Data.ProjectFilePath)) 90foreach (ItemData itemData in context.Data.EnumerateItemsOfType(ItemNames.reference)) 93string referenceFullPath = BuildCheckUtilities.RootEvaluatedPath(evaluatedReferencePath, context.Data.ProjectFilePath); 95_projectsPerReferencePath[referenceFullPath] = (context.Data.ProjectFilePath, evaluatedReferencePath); 104Path.GetFileName(context.Data.ProjectFilePath),
BuildCheck\Checks\PropertiesUsageCheck.cs (2)
131PropertyWriteData writeData = context.Data; 171PropertyReadData readData = context.Data;
BuildCheck\Checks\SharedOutputPathCheck.cs (4)
43if (!_projectsSeen.Add(context.Data.ProjectFilePath)) 50context.Data.EvaluatedProperties.TryGetValue("OutputPath", out binPath); 51context.Data.EvaluatedProperties.TryGetValue("IntermediateOutputPath", out objPath); 72string projectPath = context.Data.ProjectFilePath;