.NET 4.5.1 Preview Support in Visual Studio 2012

前端 未结 4 2062
小蘑菇
小蘑菇 2021-02-06 06:03

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 framewo

相关标签:
4条回答
  • 2021-02-06 06:16

    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.

    Thanks
    Nithya [MSFT]

    0 讨论(0)
  • 2021-02-06 06:24

    i solved changing the ToolsVersion in .csproj file.

    From

    <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    

    To

    <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    
    0 讨论(0)
  • 2021-02-06 06:24

    Here's a blog post that Microsoft wrote on this topic.

    Building apps with the .NET Framework 4.5.1 Preview in Visual Studio 2012

    0 讨论(0)
  • 2021-02-06 06:41

    To fix this I had to upgrade the NuGet.targets and change the following two lines

    From

    <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
    <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
    

    To

    <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll">
    <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll">
    

    Also it would be nice to get some answers related to .NET 4.5.1 Preview not showing up in VS 2012 up until I installed the VS 2013.

    Nice chat with myself.

    0 讨论(0)
提交回复
热议问题