问题描述
请容忍我在这,我会尝试尽可能清楚我可以解释的。
Please bear with me on this, I will try to explain as clearly as I can.
我开始一个新的项目(类库),它的目标4.5,而不是客户端配置4.5。
I started a new project (class library) which targets 4.5 and not the client profile 4.5.
我添加了一个引用System.Runtime.Serialization的属性表明它在位置C:\\ Program Files文件(x86)的\\参考大会\\微软\\ Framework.NETFramework \\ V4.5 \\ System.Runtime.Serialization。 DLL
I added a reference "System.Runtime.Serialization" and the properties indicates it's in location "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Runtime.Serialization.dll"
在我的电脑它编译罚款与一个使用构建脚本的MSBuild。
On my pc it compiles fine with a build script using msbuild.
在它使用团队城市buildserver - 它抱怨
On the buildserver which uses team city - it complains
错误CS0012:类型'System.Object的'在装配定义
不被引用。您必须添加到程序集的引用
System.Runtime,版本= 4.0.0.0,文化=中立,
公钥= b03f5f7f11d50a3a
该buildserver安装了完整的.NET框架 - dotnetfx45_full_x86_x64.exe
The buildserver has the full .net framework installed - "dotnetfx45_full_x86_x64.exe"
将建立的唯一情况是,如果我我的版本的拷贝C:\\ Program Files文件(x86)的\\参考大会\\微软\\ Framework.NETFramework \\ V4.5到目标机
The only time it will build is if I copy my version of "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5" to the target machine.
我已经使用这个链接检查和.NET安装4.5 - <一个href=\"http://myspworld.word$p$pss.com/2012/10/18/how-to-check-if-net-4-5-is-installed-on-a-server/\">http://myspworld.word$p$pss.com/2012/10/18/how-to-check-if-net-4-5-is-installed-on-a-server/
I have checked using this link and .net 4.5 is installed - http://myspworld.wordpress.com/2012/10/18/how-to-check-if-net-4-5-is-installed-on-a-server/
我问两个问题:
1.这是如何得到安装?
2.如果它在这个位置找到它肯定它看起来应该在GAC?
I am asking two question: 1. How does this get installed? 2. If it does find it in this location surely it should look in the GAC?
威尔AP preciate有这方面的帮助。
Will appreciate any help on this.
推荐答案
这是
Windows SDK中包含引用程序集,工具,头文件和库构建面向.NET Framework 4.5。应用所需
(为1.1和2.0,有一个单独的.NET Framework SDK,但我不能找到一个链接任何较新版本 - 我不认为这是另售)
(For 1.1 and 2.0, there was a separate .NET Framework SDK, but I can't find a link for any more recent versions - I don't think it's separately available)
有关第2部分,没有。 GAC是在编译时搜索。这只是在运行时使用。
For part 2, no. The GAC is not searched at compile time. It's only used at runtime.
这篇关于在什么位置安装文件 - 程序文件(x86)\\参考大会\\微软\\框架\\ .NETFramework \\ V4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!