如何在visual studio中编译表达式混合解决方案 [英] how to compile an expression blend solution in visual studio

查看:244
本文介绍了如何在visual studio中编译表达式混合解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在我们的开发环境中,我们在我的电脑上安装了VS2010以及Expresison混合和silverlight4工具。我们有一个单独的构建框,我们编译和构建整个项目。当运行通过预编译器时,我收到错误,无法找到对表达式混合命名空间的引用。我认为这是由于事实,expresison混合没有安装在构建框。

weWithin our development environment we have VS2010 installed on my computer along with Expresison blend and silverlight4 tools. We have a separate build box where we compile and build the entire project. When running through the precompile I am receiving errors that references to the expression blend namespaces cannot be found. I assume this is due to the fact that expresison blend is not installed on the build box.

防止未来发生这种情况的最佳做法是什么?提出的一个解决方案是只是安装表达式混合在构建框,但对我来说似乎不必要。

What is the best practice to prevent this from happening in the future? One solution presented was to just install expression blend on the build box but to me that seems unnecessary.

我还想过在我的项目/解决方案文件中创建lib目录,然后添加所有程序集。然后在references目录中添加它们,但是指向项目中的lib目录。我没有这样做只是因为如果觉得它有点像一个黑客,因为我基本上创建重复的DLL,所以没有版本或控制当一个dll更新等,可能会导致问题的道路。

I have also thought of creating a lib direcotry within my project/solutions files and then add all assemblies there. Then within the references directory add them, but point to the lib directory within the project. I haven't done this only becuase if feels as if it is somewhat of a hack as I am basically creating duplicate dll's so there is no versioning or control over when a dll becomes updated etc that could potentially lead to problems down the road.

任何建议或建议都将非常感谢。

Any advice or suggestions would be greatly appreciated.

推荐答案

更多的研究我发现微软提供了两个SDK,你可以在构建框上安装,而不需要安装表达式混合。

After a little more research I found that microsoft offers two SDK's that you can install on the build-box and not be required to install Expression blend.

它们是:

Visual Studio 2010的Microsoft Silverlight 4工具

Microsoft Silverlight 4 Tools for Visual Studio 2010

http://www.microsoft.com/downloads/details.aspx?familyid=40EF0F31-CB95-426D-9CE0-00DCFABF3DF5&displaylang=en

Microsoft®Silverlight™4 SDK
http://www.microsoft.com/downloads/details.aspx?familyid=55B44DA3-E5DE-4D2A-8EAF-1155CA6B3207&displaylang=en

Microsoft® Silverlight™ 4 SDK http://www.microsoft.com/downloads/details.aspx?familyid=55B44DA3-E5DE-4D2A-8EAF-1155CA6B3207&displaylang=en

根据您的输出桌面应用程序和silverlight,您可以安装表达式库,这将允许您的解决方案成功编译。

Depending upon your output desktop app vs. silverlight you have the ability to install the expression libraries which will allow your solution to successfully compile.

我没有创建lib目录,你以任何正常的方式松开了程序集的版本。

I did refrain from the creation of the lib directory you loose all ability to version the assemblies in any sane manner.

这篇关于如何在visual studio中编译表达式混合解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆