Silverlight + RIA服务中的编译错误

时间:2018-06-20 16:05:11

标签: asp.net .net silverlight wcf-ria-services silverlight-5.0

我正在尝试构建一个使用WCF RIA服务的silverlight(5.0)项目。该项目正在使用VS 2010。

它给了我下面的构建错误:

------ Rebuild All started: Project: xxx.Web, Configuration: Release Any CPU ---

Compile complete -- 0 errors, 1 warnings
xxx.Web -> C:\xxx.Web.dll
------ Rebuild All started: Project: NSEDashboard, Configuration: Release Any CPU ------
C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Ria.Client.targets(303,5): error : Object reference not set to an instance of an object.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

我试图卸载RIA和Silverlight的所有版本,然后重新安装它们而没有任何乐趣。

编辑: 该文件是自动生成的。这就是文件所说的:


Microsoft.Ria.Client.targets

警告:除非您对MSBuild有所了解并拥有,否则请不要修改此文件           创建了备份副本。对该文件的错误更改会使它           无法从命令行或IDE加载或构建项目。

版权所有(C)Microsoft Corporation。保留所有权利。


On line 303 it has:
<CreateRiaClientFilesTask
       ClientProjectRootNamespace="$(RootNamespace)"
       ServerProjectPath="$(LinkedServerProject)"
       ServerAssemblies="@(RiaClientCodeGenServerBuildOutput)"
       ServerReferenceAssemblies="@(RiaClientCodeGenServerReferenceAssemblies)"
       ClientProjectPath="$(MSBuildProjectFullPath)"
       ClientReferenceAssemblies="@(RiaClientCodeGenClientReferenceAssemblies)"
       ClientSourceFiles="@(RiaClientCodeGenClientSourceFiles)"
       ClientFrameworkPath="$(FrameworkPathOverride)"
       OutputPath="$(IntermediateOutputPath)"
       Language="$(Language)"
       ContinueOnError="false"
       IsClientApplication="$(SilverlightApplication)"
       UseFullTypeNames="$(RiaClientUseFullTypeNames)"
       ClientAssemblySearchPaths="@(RiaClientCodeGenClientAssemblySearchPath)"
       CodeGeneratorName="$(RiaClientCodeGeneratorName)">

0 个答案:

没有答案