project-wide #pragma warning disable CS1998
This commit is contained in:
Родитель
41edeb722c
Коммит
4083101a7d
|
@ -36,7 +36,6 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Microsoft.Bot.Builder
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
[Serializable]
|
||||
public class CallDialog<T, R> : IDialog<T>
|
||||
|
|
|
@ -38,8 +38,6 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Microsoft.Bot.Builder
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
public class CommandDialog : IDialog<object>
|
||||
{
|
||||
public class Command
|
||||
|
|
|
@ -41,8 +41,6 @@ using Microsoft.Bot.Connector;
|
|||
|
||||
namespace Microsoft.Bot.Builder.Internals
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
[Serializable]
|
||||
public sealed class DialogContext : IDialogContext, IUserToBot, ISerializable
|
||||
{
|
||||
|
|
|
@ -45,8 +45,6 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Microsoft.Bot.Builder
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
|
||||
public class LuisModel : Attribute
|
||||
{
|
||||
|
|
|
@ -36,8 +36,6 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Microsoft.Bot.Builder.Fibers
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
public static class Methods
|
||||
{
|
||||
public static Rest<T> Identity<T>()
|
||||
|
|
|
@ -41,8 +41,6 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Microsoft.Bot.Builder.Form.Advanced
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
/// <summary>Base class with declarative implementation of <see cref="IField{T}"/>. </summary>
|
||||
/// <typeparam name="T">Underlying form state.</typeparam>
|
||||
public class Field<T> : IField<T>
|
||||
|
|
|
@ -43,8 +43,6 @@ using Microsoft.Bot.Builder.Form.Advanced;
|
|||
|
||||
namespace Microsoft.Bot.Builder.Form
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
internal static class FormStatics
|
||||
{
|
||||
#region IForm<T> statics
|
||||
|
|
|
@ -41,8 +41,6 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Microsoft.Bot.Builder.Form
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
internal class FieldStep<T> : IStep<T>
|
||||
{
|
||||
public FieldStep(string name, IForm<T> form)
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
|
@ -8,8 +8,6 @@ using Microsoft.Bot.Connector;
|
|||
|
||||
namespace Microsoft.Bot.Sample.EchoBot
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
[Serializable]
|
||||
public class EchoDialog : IDialog<object>
|
||||
{
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
|
@ -11,8 +11,6 @@ using System.Web;
|
|||
|
||||
namespace Microsoft.Bot.Sample.PizzaBot
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
[LuisModel("https://api.projectoxford.ai/luis/v1/application?id=a19f7eee-0280-4a9a-b5e5-73c16b32c43d&subscription-key=fe054e042fd14754a83f0a205f6552a5&q=")]
|
||||
[Serializable]
|
||||
public class PizzaOrderDialog : LuisDialog
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
|
|
@ -43,8 +43,6 @@ using AnnotatedSandwichOrder = Microsoft.Bot.Sample.AnnotatedSandwichBot.Sandwic
|
|||
|
||||
namespace Microsoft.Bot.Builder.FormTest
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
public enum DebugOptions
|
||||
{
|
||||
None, AnnotationsAndNumbers, AnnotationsAndNoNumbers, NoAnnotations, NoFieldOrder,
|
||||
|
|
|
@ -43,8 +43,6 @@ using Moq;
|
|||
|
||||
namespace Microsoft.Bot.Builder.Tests
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
[TestClass]
|
||||
public abstract class FiberTestBase
|
||||
{
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
|
@ -42,8 +42,6 @@ using Moq;
|
|||
|
||||
namespace Microsoft.Bot.Builder.Tests
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
|
||||
public abstract class PromptTests_Base
|
||||
{
|
||||
public static string NewID()
|
||||
|
|
|
@ -29,6 +29,9 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>CS1998</NoWarn>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
Загрузка…
Ссылка в новой задаче