ccrewrite notimplementedexception [英] ccrewrite notimplementedexception

查看:57
本文介绍了ccrewrite notimplementedexception的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我正在使用最新的codecontracts版本,并在执行一些错误的编码时捕获了另一个异步错误。

I'm using latest codecontracts version and catched another async error while doing some bad coding.

ccrewrite:error :模拟Methode oder der Vorgang ist nicht implementiert。

1>  已用时间:5077,5077毫秒

1> C:\Program Files(x86)\ Mycoftoft \ Contontcts\MsBuild\v4.0\Microsoft.CodeContracts.targets(254 ,5):错误MSB3073:命令"" C:\Program Files(x86)\ Mycoftoft \Contracts\Bin \ccrewrite.exe" " @ SMA.1ccrewrite.rsp""以
代码-1退出。

ccrewrite : error : Die Methode oder der Vorgang ist nicht implementiert.
1>  elapsed time: 5077,5077ms
1>C:\Program Files (x86)\Microsoft\Contracts\MsBuild\v4.0\Microsoft.CodeContracts.targets(254,5): error MSB3073: The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrewrite.exe" "@SMA.1ccrewrite.rsp"" exited with code -1.

这是一个重现的演示。这是非常糟糕的代码,但它编译,所以ccrewrite不应该崩溃。

This is a demo to reproduce. It's really bad code, but it compiles, so ccrewrite shouldn't crash.

namespace Demo
{
    internal class DeviceParameterBinding : HttpParameterBinding
    {
        public DeviceParameterBinding(HttpParameterDescriptor desc)
            : base(desc)
        {
            Contract.Requires<ArgumentNullException>(desc != null, "desc");
        }

        public async override Task ExecuteBindingAsync(
            ModelMetadataProvider metadataProvider,
            HttpActionContext actionContext,
            CancellationToken cancellationToken)
        {
            object value = actionContext.ControllerContext.RouteData.Values[Descriptor.ParameterName];
            SetValue(actionContext, value);
            return;
        }
    }
}




亲切的问候,

Michael

推荐答案

感谢repro。我会尽快调查并修复。

Thanks for the repro. I will investigate and fix ASAP.


这篇关于ccrewrite notimplementedexception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆