【问题标题】:Shared classes are build under VS2008 only but not under MSBuild共享类仅在 VS2008 下构建,而不是在 MSBuild 下构建
【发布时间】:2010-10-08 21:12:38
【问题描述】:

我们在 silverlight 3.0 客户端和服务器之间共享我们的类,正如 here 所描述的那样。 仅在 Visual Studio 2008 下一切正常。 使用带有以下命令行参数的 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 种解决方法不是可接受的解决方案。

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

【问题讨论】:

  • 解决了这个问题。 geoServiceReference1 项目引用了我们的 RUI.Web 项目。在解决方案重组之后,这个愚蠢的参考以某种方式出现了。

标签: c# visual-studio-2008 wcf silverlight msbuild


【解决方案1】:

解决了问题。 geoServiceReference1 项目引用了我们的 RUI.Web 项目。在解决方案重组后不知何故出现了那个愚蠢的参考。

【讨论】:

    猜你喜欢
    • 2010-11-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-19
    • 1970-01-01
    相关资源
    最近更新 更多