微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Sitefinity 反编译 Telerik.Sitefinity.Frontend.Lists Dll 导致错误

如何解决Sitefinity 反编译 Telerik.Sitefinity.Frontend.Lists Dll 导致错误

我需要更新 sitefinity Telerik.Sitefinity.Frontend.Lists dll(版本 10.1.6544)。 当我通过 JustDecomplile Tool 反编译这个 dll 时,我得到了 tpye 错误
typeof(Tuple).Create 文件 \SitefinityFrontendLists\Sitefinity.Frontend.Lists\MVC.Views.Lists\List_AnchorList.cs

请检查此问题并提出反编译和更新sitefinity dll的方法

using Microsoft.CSharp.RuntimeBinder;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Web.Mvc;
using System.Web.WebPages;
using System.Web.WebPages.Instrumentation;
using Telerik.Sitefinity.Frontend.Lists.Mvc.Models;
using Telerik.Sitefinity.Frontend.Mvc.Helpers;
using Telerik.Sitefinity.Frontend.Mvc.Models;

namespace Telerik.Sitefinity.Frontend.Lists.MVC.Views.Lists
{
    [GeneratedCode("RazorGenerator","2.0.0.0")]
    [PageVirtualPath("~/MVC/Views/Lists/List.AnchorList.cshtml")]
    public class List_AnchorList : WebViewPage<ContentListviewmodel>
    {
        public List_AnchorList()
        {
        }

        public override void Execute()
        {
            this.WriteLiteral("\n<div");
            PositionTagged<string> positionTagged = Tuple.Create<string,int>(" class=\"",194);
            PositionTagged<string> positionTagged1 = Tuple.Create<string,int>("\"",217);
            AttributeValue[] attributeValueArray = new AttributeValue[] { Tuple.Create<Tuple<string,int>,Tuple<object,bool>(Tuple.Create<string,int>("",202),Tuple.Create<object,int>(base.Model.CssClass,false) };
            this.WriteAttribute("class",positionTagged,positionTagged1,attributeValueArray);
            this.WriteLiteral(">\n\n");
            foreach (Itemviewmodel item in base.Model.Items)
            {
                this.WriteLiteral("        <h1 ");
                this.Write(base.Html.InlineEditingAttributes(base.Model.ProviderName,base.Model.ContentType.FullName,(Guid)((dynamic)item.Fields).Id));
                this.WriteLiteral(">\n            <a");
                this.WriteAttribute("id",Tuple.Create<string,int>(" id=\"",393),417),typeof(Tuple).Create(Tuple.Create<string,398),typeof(Tuple).Create<object,int>(((dynamic)item.Fields).Id,false),Tuple.Create<Tuple<string,Tuple<string,413),int>("-Top",true));
                this.WriteLiteral("\n               ");
                this.Write(base.Html.InlineEditingFieldAttributes("Title","ShortText"));
                this.WriteLiteral("\n               href=\"#");
                this.Write(((dynamic)item.Fields).Id);
                this.WriteLiteral("\">");
                this.Write(((dynamic)item.Fields).Title);
                this.WriteLiteral("</a>\n        </h1>\n");
                this.WriteLiteral("        <ul>\n");
                foreach (Itemviewmodel itemviewmodel in ((Listviewmodel)item).ListItemviewmodel.Items)
                {
                    this.WriteLiteral("                <li ");
                    this.Write(base.Html.InlineEditingAttributes(base.Model.ProviderName,((Listviewmodel)item).ListItemviewmodel.ContentType.FullName,(Guid)((dynamic)itemviewmodel.Fields).Id));
                    this.WriteLiteral(">\n                    <a ");
                    this.Write(base.Html.InlineEditingFieldAttributes("Title","ShortText"));
                    this.WriteLiteral("\n                       href=\"#");
                    this.Write(((dynamic)itemviewmodel.Fields).Id);
                    this.WriteLiteral("\">");
                    this.Write(((dynamic)itemviewmodel.Fields).Title);
                    this.WriteLiteral("</a>\n                </li>\n");
                }
                this.WriteLiteral("        </ul>\n");
            }
            this.WriteLiteral("\n");
            foreach (Itemviewmodel item1 in base.Model.Items)
            {
                this.WriteLiteral("        <h1 ");
                this.Write(base.Html.InlineEditingAttributes(base.Model.ProviderName,(Guid)((dynamic)item1.Fields).Id));
                this.WriteLiteral("\n");
                this.WriteLiteral("            ");
                this.Write(base.Html.InlineEditingFieldAttributes("Title","ShortText"));
                this.WriteLiteral("\n            id=\"");
                this.Write(((dynamic)item1.Fields).Id);
                this.WriteLiteral("\">\n");
                this.WriteLiteral("            ");
                this.Write(((dynamic)item1.Fields).Title);
                this.WriteLiteral("\n        </h1>\n");
                foreach (Itemviewmodel itemviewmodel1 in ((Listviewmodel)item1).ListItemviewmodel.Items)
                {
                    this.WriteLiteral("            <div ");
                    this.Write(base.Html.InlineEditingAttributes(base.Model.ProviderName,((Listviewmodel)item1).ListItemviewmodel.ContentType.FullName,(Guid)((dynamic)itemviewmodel1.Fields).Id));
                    this.WriteLiteral(">\n                <h3 ");
                    this.Write(base.Html.InlineEditingFieldAttributes("Title","ShortText"));
                    this.WriteLiteral("\n                    id=\"");
                    this.Write(((dynamic)itemviewmodel1.Fields).Id);
                    this.WriteLiteral("\">\n");
                    this.WriteLiteral("                    ");
                    this.Write(((dynamic)itemviewmodel1.Fields).Title);
                    this.WriteLiteral("\n                </h3>\n\n                <div ");
                    this.Write(base.Html.InlineEditingFieldAttributes("Content","LongText"));
                    this.WriteLiteral(">");
                    this.Write(base.Html.Raw(((dynamic)itemviewmodel1.Fields).Content));
                    this.WriteLiteral("</div>\n\n                <p><a");
                    this.WriteAttribute("href",int>(" href=\"",1937),1964),1944),int>("#",true),1945),int>(((dynamic)item1.Fields).Id,1960),true));
                    this.WriteLiteral(">");
                    this.Write(base.Html.Resource("BackToTop",false));
                    this.WriteLiteral("</a></p>\n            </div>\n");
                }
            }
            this.WriteLiteral("\n</div>\n");
        }
    }
}

解决方法

我不知道你为什么需要反编译任何东西。 JustDecompile 确实做得很好。但是这些程序集也可以在 GitHub 上找到。 https://github.com/Sitefinity/feather-widgets

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?