[msbuild] Ignore CS0169 in a few places. (#15520)

Fixes these warnings:

    msbuild/Xamarin.iOS.Tasks/Model/DataItem.cs(25,31): warning CS0169: The field 'DataItem.UnsupportedData' is never used [xamarin-macios/msbuild/Xamarin.iOS.Tasks/Xamarin.iOS.Tasks.csproj]
    msbuild/Xamarin.iOS.Tasks/Model/DataSet.cs(12,31): warning CS0169: The field 'DataSet.JsonData' is never used [xamarin-macios/msbuild/Xamarin.iOS.Tasks/Xamarin.iOS.Tasks.csproj]

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
This commit is contained in:
Rolf Bjarne Kvinge 2022-07-26 17:42:06 +02:00 коммит произвёл GitHub
Родитель 481e3ec53a
Коммит 8cc194ac86
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -19,9 +19,11 @@ namespace Xamarin.iOS.Tasks {
[JsonProperty ("filename", NullValueHandling = NullValueHandling.Ignore)]
public string Filename { get; set; }
#pragma warning disable 0169 // warning CS0169: The field 'DataItem.UnsupportedData' is never used
//This stores the Asset Catalogs properties we don't support yet,
//by doing this we avoid loosing any change made to the json file outside VS.
[JsonExtensionData]
IDictionary<string, JToken> UnsupportedData;
#pragma warning restore 0169
}
}

Просмотреть файл

@ -7,8 +7,10 @@ namespace Xamarin.iOS.Tasks {
[JsonProperty ("data")]
public IEnumerable<DataItem> DataItems { get; set; }
#pragma warning disable 0169 // warning CS0169: The field 'DataSet.JsonData' is never used
//This stores the properties we don't need to deserialize but exist, just to avoid loosing information
[JsonExtensionData]
IDictionary<string, JToken> JsonData;
#pragma warning restore 0169
}
}