Skip to content

Commit 8b7fec6

Browse files
committed
Add .NET 4.5.1 target
1 parent 1b63a6f commit 8b7fec6

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

Scripts/build.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@echo off
22
SET ROOT=".."
33
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild /t:Rebuild /p:Configuration=Release %ROOT%\Src\UnitsNet\UnitsNet.net35.csproj
4+
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild /t:Rebuild /p:Configuration=Release %ROOT%\Src\UnitsNet\UnitsNet.Net451.csproj
45
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild /t:Rebuild /p:Configuration=Release %ROOT%\Src\UnitsNet\UnitsNet.Portable40.csproj
56
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild /t:Rebuild /p:Configuration=Release %ROOT%\Src\UnitsNet\UnitsNet.Portable45.csproj /p:DefineConstants="PORTABLE45"
67
pause

Src/UnitsNet.sln

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{8A38
2525
EndProject
2626
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitsNet.Portable45", "UnitsNet\UnitsNet.Portable45.csproj", "{72BC5ED7-7496-4048-9233-7A4A843FE8A2}"
2727
EndProject
28+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitsNet.Net451", "UnitsNet\UnitsNet.Net451.csproj", "{8A855BF9-335F-4EC7-8473-D87883517910}"
29+
EndProject
2830
Global
2931
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3032
Debug|Any CPU = Debug|Any CPU
@@ -77,6 +79,16 @@ Global
7779
{72BC5ED7-7496-4048-9233-7A4A843FE8A2}.Release|ARM.ActiveCfg = Release|Any CPU
7880
{72BC5ED7-7496-4048-9233-7A4A843FE8A2}.Release|x64.ActiveCfg = Release|Any CPU
7981
{72BC5ED7-7496-4048-9233-7A4A843FE8A2}.Release|x86.ActiveCfg = Release|Any CPU
82+
{8A855BF9-335F-4EC7-8473-D87883517910}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
83+
{8A855BF9-335F-4EC7-8473-D87883517910}.Debug|Any CPU.Build.0 = Debug|Any CPU
84+
{8A855BF9-335F-4EC7-8473-D87883517910}.Debug|ARM.ActiveCfg = Debug|Any CPU
85+
{8A855BF9-335F-4EC7-8473-D87883517910}.Debug|x64.ActiveCfg = Debug|Any CPU
86+
{8A855BF9-335F-4EC7-8473-D87883517910}.Debug|x86.ActiveCfg = Debug|Any CPU
87+
{8A855BF9-335F-4EC7-8473-D87883517910}.Release|Any CPU.ActiveCfg = Release|Any CPU
88+
{8A855BF9-335F-4EC7-8473-D87883517910}.Release|Any CPU.Build.0 = Release|Any CPU
89+
{8A855BF9-335F-4EC7-8473-D87883517910}.Release|ARM.ActiveCfg = Release|Any CPU
90+
{8A855BF9-335F-4EC7-8473-D87883517910}.Release|x64.ActiveCfg = Release|Any CPU
91+
{8A855BF9-335F-4EC7-8473-D87883517910}.Release|x86.ActiveCfg = Release|Any CPU
8092
EndGlobalSection
8193
GlobalSection(SolutionProperties) = preSolution
8294
HideSolutionNode = FALSE
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{8A855BF9-335F-4EC7-8473-D87883517910}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>UnitsNet</RootNamespace>
11+
<AssemblyName>UnitsNet</AssemblyName>
12+
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<OutputPath>..\..\Build\bin\$(Platform)_$(Configuration)\net451\</OutputPath>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<DefineConstants>DEBUG;TRACE</DefineConstants>
21+
<ErrorReport>prompt</ErrorReport>
22+
<WarningLevel>4</WarningLevel>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<DebugType>pdbonly</DebugType>
26+
<Optimize>true</Optimize>
27+
<DefineConstants>TRACE</DefineConstants>
28+
<ErrorReport>prompt</ErrorReport>
29+
<WarningLevel>4</WarningLevel>
30+
</PropertyGroup>
31+
<ItemGroup>
32+
<Reference Include="System" />
33+
<Reference Include="System.Core" />
34+
<Reference Include="System.Xml.Linq" />
35+
<Reference Include="System.Data.DataSetExtensions" />
36+
<Reference Include="Microsoft.CSharp" />
37+
<Reference Include="System.Data" />
38+
<Reference Include="System.Xml" />
39+
</ItemGroup>
40+
<ItemGroup>
41+
<Compile Include="**\*.cs" Exclude="obj\**" />
42+
</ItemGroup>
43+
<ItemGroup>
44+
<None Include="packages.config" />
45+
</ItemGroup>
46+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
47+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
48+
Other similar extension points exist, see Microsoft.Common.targets.
49+
<Target Name="BeforeBuild">
50+
</Target>
51+
<Target Name="AfterBuild">
52+
</Target>
53+
-->
54+
</Project>

0 commit comments

Comments
 (0)