2010-05-19 47 views
0

我们在silverlight 3.0客户端和服务器之间共享我们的类,如here所述。 只有在Visual Studio 2008下才能正常工作。使用下面的命令行参数使用的MSBuild:共享类仅在VS2008下构建,但不在MSBuild下构建

C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe FoobarApplication.sln /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU"

我们得到以下错误:

Class1.cs(28,54): error CS0234: The type or namespace name 'WcfService' does not exist in the namespace 'Company.FoobarApplication' (are you missing an assembly reference?) 
Service References\geoServiceReference1\Reference.cs(24,81): error CS0234: The type or namespace name 'WcfService' does not exist in the namespace 'Company.FoobarApplication' (are you missing an assembly reference?) 
Done Building Project "C:\work\bov-tmp\FoobarApplication\SilverlightClassLibrary3\SilverlightClassLibrary3.csproj" (Rebuild target(s)) -- FAILED. 

Done Building Project "C:\work\bov-tmp\FoobarApplication\FoobarApplication.sln" (Rebuild target(s)) -- FAILED. 

我发现这里exactly the same question。有4个解决方法there,我尝试了其中3个,但没有解决。第4个解决方法不是可接受的解决方案。

任何想法如何构建解决方案?

+0

解决了这个问题。 geoServiceReference1项目引用了我们的RUI.Web项目。解决方案重组后,这个愚蠢的参考文件出现了某种程度的问题。 – 2010-05-19 13:32:02

回答

0

解决了这个问题。 geoServiceReference1项目引用了我们的RUI.Web项目。解决方案重组后,这个愚蠢的参考文件出现了某种程度的问题。

相关问题