-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress package-compat warnings related to #9330. Co-authored-by: Mariana Dematte <magarces@microsoft.com> Co-authored-by: Gang Wang <v-gaw@microsoft.com>
- Loading branch information
Showing
52 changed files
with
833 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,61 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids --> | ||
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<!-- Suppressions for api differences between main and vs17.8 when merging vs17.8 into main --> | ||
<Suppression> | ||
<DiagnosticId>CP0002</DiagnosticId> | ||
<Target>M:Microsoft.Build.Experimental.ProjectCache.ProjectCachePluginBase.HandleFileAccess(Microsoft.Build.Experimental.ProjectCache.FileAccessContext,Microsoft.Build.Framework.FileAccess.FileAccessData)</Target> | ||
<Left>lib/net472/Microsoft.Build.dll</Left> | ||
<Right>lib/net472/Microsoft.Build.dll</Right> | ||
<IsBaselineSuppression>true</IsBaselineSuppression> | ||
</Suppression> | ||
<Suppression> | ||
<DiagnosticId>CP0002</DiagnosticId> | ||
<Target>M:Microsoft.Build.Experimental.ProjectCache.ProjectCachePluginBase.HandleProcess(Microsoft.Build.Experimental.ProjectCache.FileAccessContext,Microsoft.Build.Framework.FileAccess.ProcessData)</Target> | ||
<Left>lib/net472/Microsoft.Build.dll</Left> | ||
<Right>lib/net472/Microsoft.Build.dll</Right> | ||
<IsBaselineSuppression>true</IsBaselineSuppression> | ||
</Suppression> | ||
<Suppression> | ||
<DiagnosticId>CP0002</DiagnosticId> | ||
<Target>M:Microsoft.Build.Experimental.ProjectCache.ProjectCachePluginBase.HandleFileAccess(Microsoft.Build.Experimental.ProjectCache.FileAccessContext,Microsoft.Build.Framework.FileAccess.FileAccessData)</Target> | ||
<Left>lib/net8.0/Microsoft.Build.dll</Left> | ||
<Right>lib/net8.0/Microsoft.Build.dll</Right> | ||
<IsBaselineSuppression>true</IsBaselineSuppression> | ||
</Suppression> | ||
<Suppression> | ||
<DiagnosticId>CP0002</DiagnosticId> | ||
<Target>M:Microsoft.Build.Experimental.ProjectCache.ProjectCachePluginBase.HandleProcess(Microsoft.Build.Experimental.ProjectCache.FileAccessContext,Microsoft.Build.Framework.FileAccess.ProcessData)</Target> | ||
<Left>lib/net8.0/Microsoft.Build.dll</Left> | ||
<Right>lib/net8.0/Microsoft.Build.dll</Right> | ||
<IsBaselineSuppression>true</IsBaselineSuppression> | ||
</Suppression> | ||
<Suppression> | ||
<DiagnosticId>CP0002</DiagnosticId> | ||
<Target>M:Microsoft.Build.Experimental.ProjectCache.ProjectCachePluginBase.HandleFileAccess(Microsoft.Build.Experimental.ProjectCache.FileAccessContext,Microsoft.Build.Framework.FileAccess.FileAccessData)</Target> | ||
<Left>ref/net472/Microsoft.Build.dll</Left> | ||
<Right>ref/net472/Microsoft.Build.dll</Right> | ||
<IsBaselineSuppression>true</IsBaselineSuppression> | ||
</Suppression> | ||
<Suppression> | ||
<DiagnosticId>CP0002</DiagnosticId> | ||
<Target>M:Microsoft.Build.Experimental.ProjectCache.ProjectCachePluginBase.HandleProcess(Microsoft.Build.Experimental.ProjectCache.FileAccessContext,Microsoft.Build.Framework.FileAccess.ProcessData)</Target> | ||
<Left>ref/net472/Microsoft.Build.dll</Left> | ||
<Right>ref/net472/Microsoft.Build.dll</Right> | ||
<IsBaselineSuppression>true</IsBaselineSuppression> | ||
</Suppression> | ||
<Suppression> | ||
<DiagnosticId>CP0002</DiagnosticId> | ||
<Target>M:Microsoft.Build.Experimental.ProjectCache.ProjectCachePluginBase.HandleFileAccess(Microsoft.Build.Experimental.ProjectCache.FileAccessContext,Microsoft.Build.Framework.FileAccess.FileAccessData)</Target> | ||
<Left>ref/net8.0/Microsoft.Build.dll</Left> | ||
<Right>ref/net8.0/Microsoft.Build.dll</Right> | ||
<IsBaselineSuppression>true</IsBaselineSuppression> | ||
</Suppression> | ||
<Suppression> | ||
<DiagnosticId>CP0002</DiagnosticId> | ||
<Target>M:Microsoft.Build.Experimental.ProjectCache.ProjectCachePluginBase.HandleProcess(Microsoft.Build.Experimental.ProjectCache.FileAccessContext,Microsoft.Build.Framework.FileAccess.ProcessData)</Target> | ||
<Left>ref/net8.0/Microsoft.Build.dll</Left> | ||
<Right>ref/net8.0/Microsoft.Build.dll</Right> | ||
<IsBaselineSuppression>true</IsBaselineSuppression> | ||
</Suppression> | ||
</Suppressions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
|
||
using Microsoft.Build.BackEnd; | ||
|
||
namespace Microsoft.Build.Experimental.FileAccess | ||
{ | ||
/// <summary> | ||
/// File access data. | ||
/// </summary> | ||
[CLSCompliant(false)] | ||
public struct FileAccessData | ||
: ITranslatable | ||
{ | ||
private ReportedFileOperation _operation; | ||
private RequestedAccess _requestedAccess; | ||
private uint _processId; | ||
private uint _error; | ||
private DesiredAccess _desiredAccess; | ||
private FlagsAndAttributes _flagsAndAttributes; | ||
private string _path; | ||
private string? _processArgs; | ||
private bool _isAnAugmentedFileAccess; | ||
|
||
public FileAccessData( | ||
ReportedFileOperation operation, | ||
RequestedAccess requestedAccess, | ||
uint processId, | ||
uint error, | ||
DesiredAccess desiredAccess, | ||
FlagsAndAttributes flagsAndAttributes, | ||
string path, | ||
string? processArgs, | ||
bool isAnAugmentedFileAccess) | ||
{ | ||
_operation = operation; | ||
_requestedAccess = requestedAccess; | ||
_processId = processId; | ||
_error = error; | ||
_desiredAccess = desiredAccess; | ||
_flagsAndAttributes = flagsAndAttributes; | ||
_path = path; | ||
_processArgs = processArgs; | ||
_isAnAugmentedFileAccess = isAnAugmentedFileAccess; | ||
} | ||
|
||
/// <summary>The operation that performed the file access.</summary> | ||
public ReportedFileOperation Operation | ||
{ | ||
readonly get => _operation; | ||
private set => _operation = value; | ||
} | ||
|
||
/// <summary>The requested access.</summary> | ||
public RequestedAccess RequestedAccess | ||
{ | ||
get => _requestedAccess; | ||
private set => _requestedAccess = value; | ||
} | ||
|
||
/// <summary>The process id.</summary> | ||
public uint ProcessId | ||
{ | ||
readonly get => _processId; | ||
private set => _processId = value; | ||
} | ||
|
||
/// <summary>The error code of the operation.</summary> | ||
public uint Error | ||
{ | ||
readonly get => _error; | ||
private set => _error = value; | ||
} | ||
|
||
/// <summary>The desired access.</summary> | ||
public DesiredAccess DesiredAccess | ||
{ | ||
readonly get => _desiredAccess; | ||
private set => _desiredAccess = value; | ||
} | ||
|
||
/// <summary>The file flags and attributes.</summary> | ||
public FlagsAndAttributes FlagsAndAttributes | ||
{ | ||
readonly get => _flagsAndAttributes; | ||
private set => _flagsAndAttributes = value; | ||
} | ||
|
||
/// <summary>The path being accessed.</summary> | ||
public string Path | ||
{ | ||
readonly get => _path; | ||
private set => _path = value; | ||
} | ||
|
||
/// <summary>The process arguments.</summary> | ||
public string? ProcessArgs | ||
{ | ||
readonly get => _processArgs; | ||
private set => _processArgs = value; | ||
} | ||
|
||
/// <summary>Whether the file access is augmented.</summary> | ||
public bool IsAnAugmentedFileAccess | ||
{ | ||
readonly get => _isAnAugmentedFileAccess; | ||
private set => _isAnAugmentedFileAccess = value; | ||
} | ||
|
||
void ITranslatable.Translate(ITranslator translator) | ||
{ | ||
translator.TranslateEnum(ref _operation, (int)_operation); | ||
translator.TranslateEnum(ref _requestedAccess, (int)_requestedAccess); | ||
translator.Translate(ref _processId); | ||
translator.Translate(ref _error); | ||
translator.TranslateEnum(ref _desiredAccess, (int)_desiredAccess); | ||
translator.TranslateEnum(ref _flagsAndAttributes, (int)_flagsAndAttributes); | ||
translator.Translate(ref _path); | ||
translator.Translate(ref _processArgs); | ||
translator.Translate(ref _isAnAugmentedFileAccess); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.