Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <Project DefaultTargets="Build"
  2. xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3.  
  4. <!-- Change the target framework to 4.5 if using the ".NET 4.5" configuration -->
  5. <PropertyGroup Condition=" '$(Platform)' == '.NET 4.5' ">
  6. <DefineConstants Condition="'$(DefineConstants)'==''">
  7. TARGETTING_FX_4_5
  8. </DefineConstants>
  9. <DefineConstants Condition="'$(DefineConstants)'!='' and '$(DefineConstants)'!='TARGETTING_FX_4_5'">
  10. $(DefineConstants);TARGETTING_FX_4_5
  11. </DefineConstants>
  12. <PlatformTarget Condition="'$(PlatformTarget)'!=''"/>
  13. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  14. </PropertyGroup>
  15.  
  16. <!-- Import the standard C# targets -->
  17. <Import Project="$(MSBuildBinPath)Microsoft.CSharp.targets" />
  18.  
  19. <!-- Add .NET 4.5 as an available platform -->
  20. <PropertyGroup>
  21. <AvailablePlatforms>$(AvailablePlatforms),.NET 4.5</AvailablePlatforms>
  22. </PropertyGroup>
  23. </Project>
  24.  
  25. <!-- Old Import Entry -->
  26. <!-- <Import Project="$(MSBuildBinPath)Microsoft.CSharp.targets" /> -->
  27.  
  28. <!-- New Import Entry -->
  29. <Import Project="Compile_4_5_CSharp.targets" />
  30.  
  31. <!-- Old default platform entry -->
  32. <!-- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> -->
  33.  
  34. <!-- New default platform entry -->
  35. <Platform Condition=" '$(Platform)' == '' ">.NET 4.5</Platform>
  36.  
  37. <PropertyGroup Condition="'$(Platform)' == 'AnyCPU'">
  38. <PlatformTarget>AnyCPU</PlatformTarget>
  39. </PropertyGroup>
  40.  
  41. .
  42. .
  43. .
  44. <ItemGroup>
  45. .
  46. .
  47. .
  48.  
  49. using System;
  50. using System.Text;
  51.  
  52. namespace testing
  53. {
  54. using net45check = System.Reflection.ReflectionContext;
  55. }
  56.  
  57. Error 6: The type or namespace name 'ReflectionContext' does not exist in
  58. the namespace 'System.Reflection' (are you missing an assembly reference?)
  59.  
  60. <OutputPath>bin</OutputPath>
  61.  
  62. Property: REGISTRYVALUE1
  63. RegKey: SoftwareMicrosoftNET Framework SetupNDPv4Full
  64. Root: vsdrrHKLM
  65. Value: Release
  66.  
  67. Condition: REGISTRYVALUE1>="#378389"
  68. InstallUrl: http://www.microsoft.com/en-gb/download/details.aspx?id=30653
  69. Message: Setup requires .NET Framework 4.5 to be installed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement