在Visual Studio .NET 2012 4.5.1 preVIEW支持 [英] .NET 4.5.1 Preview Support in Visual Studio 2012

查看:1253
本文介绍了在Visual Studio .NET 2012 4.5.1 preVIEW支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先让我补充一些背景错误我得到的,我已经安装了.NET 4.5.1 preVIEW和第一件事,我注意到,在VS 2012是.NET 4.5.1没有可用的框架列出。我不知道这是否是正确的行为,因为这仅仅是一个升级到4.5,所以我猜VS 2012应该列出它。

First let me add some context to error I get, I have installed .NET 4.5.1 Preview and first thing that I noticed in VS 2012 is that .NET 4.5.1 isn't listed in available frameworks. I'm not sure if this is correct behavior because this is just an upgrade to 4.5 so I guess VS 2012 should list it.

更进一步,当我安装了VS 2013 preVIEW,升级我的项目.NET 4.5.1,打开了解决方案在VS 2012新的.NET版本又出现了,所以我不知道这是一个错误,在VS 2012年或不是?好了,所以现在我有.NET 4.5.1在VS 2012,当我尝试建立一个项目,我会收到以下错误

Further more when I installed a VS 2013 Preview, upgraded my project to .NET 4.5.1 and opened the solution in VS 2012 new .NET version reappeared so I'm not sure if this is a bug in VS 2012 or not ? Ok so now I have .NET 4.5.1 in VS 2012 and when I try to build a project I get the following error

Error   3   The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Build.Tasks.v4.0.dll". Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Build.Tasks.v4.0.dll' or one of its dependencies. The system cannot find the file specified.  D:\Projects\MyProject\Master\Source\.nuget\nuget.targets    71  9   MyProject.Core.Modules

NuGet.targets报告行

NuGet.targets reported line

<SetEnvironmentVariable EnvKey="VisualStudioVersion"
EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)'
!= '' AND '$(OS)' == 'Windows_NT' " />

在我看来,由于某种原因VS 2012无法解析路径或组件,所以我不知道我是否应该修正一些东西在NuGet.targets或者是一个Visual Studio的事情,任何想法?

It seems to me that for some reason VS 2012 can't resolve the paths or assemblies so I'm not sure if I should fix something in the NuGet.targets or is it a Visual Studio thing, any ideas ?

感谢

推荐答案

大厦的.NET Framework 4.5.1应用程序支持在Visual Studio 2012年您需要为安装的的Visual Studio 2013 preVIEW 或的Windows SDK的Windows 8.1 preVIEW 获得.NET框架4.5.1 preVIEW在同一台机器上针对包作为的Visual Studio 2012与.NET框架4.5构建应用程序.1 preVIEW。

Building .NET Framework 4.5.1 applications is supported in Visual Studio 2012. You need to either install Visual Studio 2013 Preview or Windows SDK for Windows 8.1 Preview to get the .NET Framework 4.5.1 Preview Targeting pack on the same machine as Visual Studio 2012 to build applications with .NET Framework 4.5.1 preview.

感谢
Nithya [MSFT]

Thanks
Nithya [MSFT]

这篇关于在Visual Studio .NET 2012 4.5.1 preVIEW支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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