2010-05-19 67 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項目。解決方案重組後,這個愚蠢的參考文件出現了某種程度的問題。