在什么位置安装文件 - Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5 [英] What install files in location - Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5

查看:39
本文介绍了在什么位置安装文件 - Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请多多包涵,我会尽量解释清楚.

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)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5System.Runtime.Serialization"中.dll"

I added a reference "System.Runtime.Serialization" and the properties indicates it's in location "C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5System.Runtime.Serialization.dll"

在我的电脑上,它使用 msbuild 的构建脚本编译得很好.

On my pc it compiles fine with a build script using msbuild.

在使用团队城市的构建服务器上 - 它抱怨

On the buildserver which uses team city - it complains

错误 CS0012:类型System.Object"是在程序集中定义的没有被引用.您必须添加对程序集的引用'System.Runtime,版本=4.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a'

error CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

构建服务器已安装完整的 .net 框架 - "dotnetfx45_full_x86_x64.exe"

The buildserver has the full .net framework installed - "dotnetfx45_full_x86_x64.exe"

它将构建的唯一时间是将我的C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5"版本复制到目标机器.

The only time it will build is if I copy my version of "C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5" to the target machine.

我已使用此链接进行检查并安装了 .net 4.5 - http://myspworld.wordpress.com/2012/10/18/how-to-check-if-net-4-5-is-安装在服务器上/

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?

感谢您对此的任何帮助.

Will appreciate any help on this.

推荐答案

Windows SDK:

Windows SDK 包括构建面向 .NET Framework 4.5 的应用程序所需的参考程序集、工具、标头和库.

The Windows SDK includes the reference assemblies, tools, headers, and libraries needed to build applications that target the .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.

这篇关于在什么位置安装文件 - Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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