Supress warnings when consuming source package
This commit is contained in:
Родитель
85833ed6c9
Коммит
fc7c78bbc8
|
@ -1,3 +1,9 @@
|
|||
#if WCWIDTH
|
||||
#pragma warning restore
|
||||
#else
|
||||
#pragma warning disable
|
||||
#endif
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wcwidth
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
#if WCWIDTH
|
||||
#pragma warning restore
|
||||
#else
|
||||
#pragma warning disable
|
||||
#endif
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wcwidth
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
#if WCWIDTH
|
||||
#pragma warning restore
|
||||
#else
|
||||
#pragma warning disable
|
||||
#endif
|
||||
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
|
|
|
@ -39,6 +39,12 @@
|
|||
//
|
||||
// http://www.unicode.org/unicode/reports/tr11/
|
||||
|
||||
#if WCWIDTH
|
||||
#pragma warning restore
|
||||
#else
|
||||
#pragma warning disable
|
||||
#endif
|
||||
|
||||
using System.Collections.Generic;
|
||||
#if NET5_0
|
||||
using System.Text;
|
||||
|
|
|
@ -6,6 +6,22 @@
|
|||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net5.0|AnyCPU'">
|
||||
<DefineConstants>$(DefineConstants)TRACE;WCWIDTH</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net5.0|AnyCPU'">
|
||||
<DefineConstants>$(DefineConstants)TRACE;WCWIDTH</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
|
||||
<DefineConstants>$(DefineConstants)TRACE;WCWIDTH</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
|
||||
<DefineConstants>$(DefineConstants)TRACE;WCWIDTH</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<AdditionalFiles Include="..\stylecop.json" Link="stylecop.json" />
|
||||
</ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче