Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf 无法解析符号';点'';尺寸'';点收集';_Wcf_Xaml_Workflow Foundation_Resharper 6.0 - Fatal编程技术网

Wcf 无法解析符号';点'';尺寸'';点收集';

Wcf 无法解析符号';点'';尺寸'';点收集';,wcf,xaml,workflow-foundation,resharper-6.0,Wcf,Xaml,Workflow Foundation,Resharper 6.0,ReSharper 6.1(与Visual Studio本身类似)告诉我,我的WCF工作流XAML文件中存在错误 无法解析符号“点” 无法解析符号“大小” 无法解析符号“PointCollection” 虽然它编译起来没有任何问题,而且似乎可以正常工作,但我想找出错误的原因。StyleCop显然知道(或认为它知道)VisualStudio不知道的东西 这是给出错误的代码示例: <sap:WorkflowViewStateService.ViewState>

ReSharper 6.1(与Visual Studio本身类似)告诉我,我的WCF工作流XAML文件中存在错误

  • 无法解析符号“点”
  • 无法解析符号“大小”
  • 无法解析符号“PointCollection”
虽然它编译起来没有任何问题,而且似乎可以正常工作,但我想找出错误的原因。StyleCop显然知道(或认为它知道)VisualStudio不知道的东西

这是给出错误的代码示例:

            <sap:WorkflowViewStateService.ViewState>
              <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                <av:Point x:Key="ShapeLocation">179,251</av:Point>
                <av:Size x:Key="ShapeSize">242,58</av:Size>
                <av:PointCollection x:Key="ConnectorLocation">300,309 300,339 270,339 270,441 300,441</av:PointCollection>
              </scg3:Dictionary>
            </sap:WorkflowViewStateService.ViewState>

179,251
242,58
300,309 300,339 270,339 270,441 300,441
以下是名称空间声明:

<Activity
    mc:Ignorable="sap"
    x:Class="Hydra.Sales.Workflows.CreateCustomer"
    xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
    xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:hcid="clrnamespace:Hydra.Common.Infrastructure.DataContracts;assembly=Hydra.Common.Infrastructure"
    xmlns:local="clr-namespace:Hydra.Sales.Activities.Associations"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:mv="clrnamespace:Microsoft.VisualBasic;assembly=System"
    xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
    xmlns:s="clr-namespace:System;assembly=mscorlib"
    xmlns:s1="clr-namespace:System;assembly=System"
    xmlns:s2="clr-namespace:System;assembly=System.Xml"
    xmlns:s3="clr-namespace:System;assembly=System.Core"
    xmlns:s4="clr-namespace:System;assembly=System.ServiceModel"
    xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"
    xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities"
    xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
    xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System"
    xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel"
    xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core"
    xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib"
    xmlns:sd="clr-namespace:System.Data;assembly=System.Data"
    mlns:sl="clr-namespace:System.Linq;assembly=System.Core"
    xmlns:st="clr-namespace:System.Text;assembly=mscorlib"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

本项目参考了(除其他外):

  • 系统活动
  • System.code
  • System.Xaml
  • System.Xml

添加对
WindowsBase
的引用将错误列表减少到
无法解析符号“PointCollection”
,但我不认为这是正确的解决方案。

WorkflowViewStateService.ViewState类型是来自System.Activities.Presentation的设计时工件。它在运行时对工作流没有影响。事实上,我们有一个样本,告诉你如何删除它。您可以安全地忽略这些重拾器错误

错误报告如下: