Skip to content

Commit 1806f2c

Browse files
Suppress obsolete warmings for legacy Grid models and vulnerable CMS dependency
1 parent 2cdbe85 commit 1806f2c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/Umbraco.Deploy.Contrib/Migrators/DocTypeGridEditorPropertyTypeMigrator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ public DocTypeGridEditorPropertyTypeMigrator(ILogger<GridPropertyTypeMigrator> l
7979
}
8080

8181
/// <inheritdoc />
82+
#pragma warning disable CS0618 // Type or member is obsolete
8283
protected override BlockItemData? MigrateGridControl(GridValue.GridControl gridControl, BlockGridConfiguration configuration, IContextCache contextCache)
84+
#pragma warning restore CS0618 // Type or member is obsolete
8385
{
8486
if (TryDeserialize(gridControl.Value, out DocTypeGridEditorValue? value))
8587
{

src/Umbraco.Deploy.Contrib/Migrators/ReplaceDocTypeGridEditorDataTypeArtifactMigrator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ protected override IEnumerable<IGridEditorConfig> GetGridEditors()
9292

9393
if (AddDefaultDocTypeGridEditor)
9494
{
95+
#pragma warning disable CS0618 // Type or member is obsolete
9596
yield return new GridEditor()
9697
{
9798
Name = "Doc Type",
@@ -100,6 +101,7 @@ protected override IEnumerable<IGridEditorConfig> GetGridEditors()
100101
Render = "/App_Plugins/DocTypeGridEditor/Render/DocTypeGridEditor.cshtml",
101102
Icon = "icon-item-arrangement",
102103
};
104+
#pragma warning restore CS0618 // Type or member is obsolete
103105
}
104106
}
105107

src/Umbraco.Deploy.Contrib/Umbraco.Deploy.Contrib.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Umbraco.Cms.Web.Common" />
8+
<PackageReference Include="Umbraco.Cms.Web.Common" NoWarn="NU1901,NU1902,NU1903,NU1904" />
99
<PackageReference Include="Umbraco.Deploy.Infrastructure" />
1010
</ItemGroup>
1111
</Project>

0 commit comments

Comments
 (0)