2011-12-05 19 views
3

ReSharper 6.1(Visual Studio自体に付属)は、WCF Workflow XAMLファイルにエラーがあることを伝えています。シンボル 'Point'、 'Size'、 'PointCollection'を解決できません

  • は、それが何の問題もなくコンパイルし、私が好きな仕事に見えますが、シンボル「ポイント」
  • がシンボル「サイズ」
  • は、シンボルを解決できません「PointCollection」

を解決できません解決できません。エラーの原因を追跡します。 StyleCopは、Visual Studioにはないことを明らかに知っています(またはそれを知っていると思っています)。

  <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> 

そして、これらは、名前空間宣言です:

<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 System.Activities
  • System.Code
  • System.Xaml
  • System.Xml

WindowsBaseへの参照を追加Cannot resolve symbol 'PointCollection'までエラーのリストは減りますが、私はそれが正解だ確信していません。

+0

バグレポートはこちらです:http://youtrack.jetbrains.com/issue/RSRP-305121 – Christian

答えて

4

WorkflowViewStateService.ViewState型は、System.Activities.Presentationに由来するデザインタイムアーティファクトです。実行時のワークフローへの影響はありません。実際には、サンプルを削除する方法を示すサンプルがあります。これらのResharperエラーは無視しても問題ありません。

Removing the View State the Designer Adds to an XAML File

関連する問題