Skip to content

Commit e3901f0

Browse files
committed
Add tests for WindowsRuntimeComponent
* Add .NET 4.5 project with same compile flags as WRC, to run tests on * Fix compile errors due to reusing test code on WRC code paths * Distinguish the two packages.config files for test projects * Exclude WindowsRuntimeComponent specific code from the .NET projects
1 parent c72fd9b commit e3901f0

10 files changed

+234
-43
lines changed

UnitsNet.Tests/UnitSystemTests.cs

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
using NUnit.Framework;
2828
using UnitsNet.Units;
2929

30+
#if WINDOWS_UWP
31+
using Culture=System.String;
32+
#else
33+
using Culture=System.IFormatProvider;
34+
#endif
35+
3036
namespace UnitsNet.Tests
3137
{
3238
[TestFixture]
@@ -112,7 +118,7 @@ private static IEnumerable<object> GetUnitTypesWithMissingAbbreviations<TUnit>(s
112118
[TestCase("it-IT")]
113119
public void CommaRadixPointCultureFormatting(string culture)
114120
{
115-
Assert.AreEqual("0,12 m", Length.FromMeters(0.12).ToString(LengthUnit.Meter, new CultureInfo(culture)));
121+
Assert.AreEqual("0,12 m", Length.FromMeters(0.12).ToString(LengthUnit.Meter, GetCulture(culture)));
116122
}
117123

118124
// These cultures all use a decimal point for the radix point
@@ -123,7 +129,7 @@ public void CommaRadixPointCultureFormatting(string culture)
123129
[TestCase("es-MX")]
124130
public void DecimalRadixPointCultureFormatting(string culture)
125131
{
126-
Assert.AreEqual("0.12 m", Length.FromMeters(0.12).ToString(LengthUnit.Meter, new CultureInfo(culture)));
132+
Assert.AreEqual("0.12 m", Length.FromMeters(0.12).ToString(LengthUnit.Meter, GetCulture(culture)));
127133
}
128134

129135
// These cultures all use a comma in digit grouping
@@ -134,7 +140,7 @@ public void DecimalRadixPointCultureFormatting(string culture)
134140
[TestCase("es-MX")]
135141
public void CommaDigitGroupingCultureFormatting(string culture)
136142
{
137-
Assert.AreEqual("1,111 m", Length.FromMeters(1111).ToString(LengthUnit.Meter, new CultureInfo(culture)));
143+
Assert.AreEqual("1,111 m", Length.FromMeters(1111).ToString(LengthUnit.Meter, GetCulture(culture)));
138144

139145
// Feet/Inch and Stone/Pound combinations are only used (customarily) in the US, UK and maybe Ireland - all English speaking countries.
140146
// FeetInches returns a whole number of feet, with the remainder expressed (rounded) in inches. Same for SonePounds.
@@ -150,7 +156,7 @@ public void CommaDigitGroupingCultureFormatting(string culture)
150156
public void SpaceDigitGroupingCultureFormatting(string culture)
151157
{
152158
// Note: the space used in digit groupings is actually a "thin space" Unicode character U+2009
153-
Assert.AreEqual("1 111 m", Length.FromMeters(1111).ToString(LengthUnit.Meter, new CultureInfo(culture)));
159+
Assert.AreEqual("1 111 m", Length.FromMeters(1111).ToString(LengthUnit.Meter, GetCulture(culture)));
154160
}
155161

156162
// Switzerland uses an apostrophe for digit grouping
@@ -169,7 +175,7 @@ public void SpaceDigitGroupingCultureFormatting(string culture)
169175
[TestCase("it-IT")]
170176
public void DecimalPointDigitGroupingCultureFormatting(string culture)
171177
{
172-
Assert.AreEqual("1.111 m", Length.FromMeters(1111).ToString(LengthUnit.Meter, new CultureInfo(culture)));
178+
Assert.AreEqual("1.111 m", Length.FromMeters(1111).ToString(LengthUnit.Meter, GetCulture(culture)));
173179
}
174180

175181
[TestCase("m^2", Result = AreaUnit.SquareMeter)]
@@ -419,5 +425,18 @@ public void PositiveInfinityFormatting()
419425
Assert.That(Length.FromMeters(double.PositiveInfinity).ToString(),
420426
Is.EqualTo("Infinity m"));
421427
}
428+
429+
/// <summary>
430+
/// Convenience method to use the proper culture parameter type.
431+
/// The UWP lib uses culture name string instead of CultureInfo.
432+
/// </summary>
433+
private static Culture GetCulture(string cultureName)
434+
{
435+
#if WINDOWS_UWP
436+
return cultureName;
437+
#else
438+
return new CultureInfo(cultureName);
439+
#endif
440+
}
422441
}
423442
}

UnitsNet.Tests/UnitsNet.Tests.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
<ItemGroup>
5353
<Compile Include="**\*.cs" Exclude="obj\**" />
5454
</ItemGroup>
55-
<ItemGroup>
56-
<None Include="packages.config" />
57-
</ItemGroup>
5855
<ItemGroup>
5956
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
6057
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
@@ -65,8 +62,14 @@
6562
<Name>UnitsNet.Net35</Name>
6663
</ProjectReference>
6764
</ItemGroup>
65+
<ItemGroup>
66+
<None Include="packages.UnitsNet.Tests.config" />
67+
<None Include="packages.UnitsNet.WindowsRuntimeComponent.Tests.config">
68+
<DependentUpon>packages.UnitsNet.Tests.config</DependentUpon>
69+
</None>
70+
</ItemGroup>
6871
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
69-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
72+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
7073
Other similar extension points exist, see Microsoft.Common.targets.
7174
<Target Name="BeforeBuild">
7275
</Target>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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>{30DD3384-A1F9-459A-A90F-E004EBD748E8}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>UnitsNet.Tests</RootNamespace>
11+
<AssemblyName>UnitsNet.WindowsRuntimeComponent.Tests</AssemblyName>
12+
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\Src\</SolutionDir>
15+
<TargetFrameworkProfile>
16+
</TargetFrameworkProfile>
17+
<OutputPath>..\Artifacts\Bin\Tests\$(Platform)_$(Configuration)\</OutputPath>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<DefineConstants>TRACE;DEBUG;WINDOWS_UWP</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
<Prefer32Bit>false</Prefer32Bit>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<DefineConstants>TRACE;WINDOWS_UWP</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
<Prefer32Bit>false</Prefer32Bit>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="MoreLinq, Version=1.4.18916.0, Culture=neutral, PublicKeyToken=384d532d7e88985d, processorArchitecture=MSIL">
38+
<HintPath>..\packages\morelinq.1.4.0\lib\net35\MoreLinq.dll</HintPath>
39+
<Private>True</Private>
40+
</Reference>
41+
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
42+
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
43+
<Private>True</Private>
44+
</Reference>
45+
<Reference Include="System" />
46+
<Reference Include="System.Core" />
47+
<Reference Include="System.Xml.Linq" />
48+
<Reference Include="System.Data.DataSetExtensions" />
49+
<Reference Include="System.Data" />
50+
<Reference Include="System.Xml" />
51+
</ItemGroup>
52+
<ItemGroup>
53+
<Compile Include="EnumUtils.cs" />
54+
<Compile Include="InterUnitConversionTests.cs" />
55+
<Compile Include="Properties\AssemblyInfo.cs" />
56+
<Compile Include="UnitSystemTests.cs" />
57+
</ItemGroup>
58+
<ItemGroup>
59+
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
60+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
61+
</ItemGroup>
62+
<ItemGroup>
63+
<None Include="packages.UnitsNet.WindowsRuntimeComponent.Tests.config" />
64+
</ItemGroup>
65+
<ItemGroup>
66+
<ProjectReference Include="..\UnitsNet\UnitsNet.WindowsRuntimeComponent-Net45.csproj">
67+
<Project>{6a476f62-ca62-4a90-a866-1094bec1d23b}</Project>
68+
<Name>UnitsNet.WindowsRuntimeComponent-Net45</Name>
69+
</ProjectReference>
70+
</ItemGroup>
71+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
72+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
73+
Other similar extension points exist, see Microsoft.Common.targets.
74+
<Target Name="BeforeBuild">
75+
</Target>
76+
<Target Name="AfterBuild">
77+
</Target>
78+
-->
79+
</Project>
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="morelinq" version="1.4.0" targetFramework="net451" />
4+
<package id="NUnit" version="2.6.4" targetFramework="net451" />
5+
</packages>

UnitsNet.sln

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{9BEB42C6
1818
ProjectSection(SolutionItems) = preProject
1919
Build\UnitsNet.nuspec = Build\UnitsNet.nuspec
2020
Build\UnitsNet.Serialization.JsonNet.nuspec = Build\UnitsNet.Serialization.JsonNet.nuspec
21+
Build\UnitsNet.WindowsRuntimeComponent.nuspec = Build\UnitsNet.WindowsRuntimeComponent.nuspec
2122
EndProjectSection
2223
EndProject
23-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TestApps", "TestApps", "{222FA466-52B9-4C04-916E-6D36B99559B4}"
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitsNet.WindowsRuntimeComponent.Tests", "UnitsNet.Tests\UnitsNet.WindowsRuntimeComponent.Tests.csproj", "{30DD3384-A1F9-459A-A90F-E004EBD748E8}"
2425
EndProject
25-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitsNet.Uap", "UnitsNet\UnitsNet.Uap.csproj", "{2DA428CA-BFE1-43FA-86D2-7CB42289D596}"
26+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitsNet.WindowsRuntimeComponent-Net45", "UnitsNet\UnitsNet.WindowsRuntimeComponent-Net45.csproj", "{6A476F62-CA62-4A90-A866-1094BEC1D23B}"
2627
EndProject
2728
Global
2829
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -69,57 +70,62 @@ Global
6970
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7071
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Debug|Any CPU.Build.0 = Debug|Any CPU
7172
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Debug|ARM.ActiveCfg = Debug|Any CPU
72-
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Debug|ARM.Build.0 = Debug|Any CPU
7373
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Debug|x64.ActiveCfg = Debug|Any CPU
74-
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Debug|x64.Build.0 = Debug|Any CPU
7574
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Debug|x86.ActiveCfg = Debug|Any CPU
76-
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Debug|x86.Build.0 = Debug|Any CPU
7775
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Release|Any CPU.ActiveCfg = Release|Any CPU
7876
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Release|Any CPU.Build.0 = Release|Any CPU
7977
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Release|ARM.ActiveCfg = Release|Any CPU
80-
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Release|ARM.Build.0 = Release|Any CPU
8178
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Release|x64.ActiveCfg = Release|Any CPU
82-
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Release|x64.Build.0 = Release|Any CPU
8379
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Release|x86.ActiveCfg = Release|Any CPU
84-
{2EF845D1-8177-4DF3-AEA9-5231E53CB30E}.Release|x86.Build.0 = Release|Any CPU
8580
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
8681
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
8782
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Debug|ARM.ActiveCfg = Debug|Any CPU
88-
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Debug|ARM.Build.0 = Debug|Any CPU
8983
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Debug|x64.ActiveCfg = Debug|Any CPU
90-
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Debug|x64.Build.0 = Debug|Any CPU
9184
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Debug|x86.ActiveCfg = Debug|Any CPU
92-
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Debug|x86.Build.0 = Debug|Any CPU
9385
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
9486
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Release|Any CPU.Build.0 = Release|Any CPU
9587
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Release|ARM.ActiveCfg = Release|Any CPU
96-
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Release|ARM.Build.0 = Release|Any CPU
9788
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Release|x64.ActiveCfg = Release|Any CPU
98-
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Release|x64.Build.0 = Release|Any CPU
9989
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Release|x86.ActiveCfg = Release|Any CPU
100-
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E}.Release|x86.Build.0 = Release|Any CPU
101-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
102-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|Any CPU.Build.0 = Debug|Any CPU
103-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|ARM.ActiveCfg = Debug|ARM
104-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|ARM.Build.0 = Debug|ARM
105-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|x64.ActiveCfg = Debug|x64
106-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|x64.Build.0 = Debug|x64
107-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|x86.ActiveCfg = Debug|x86
108-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|x86.Build.0 = Debug|x86
109-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Release|Any CPU.ActiveCfg = Release|Any CPU
110-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Release|Any CPU.Build.0 = Release|Any CPU
111-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Release|ARM.ActiveCfg = Release|ARM
112-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Release|ARM.Build.0 = Release|ARM
113-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Release|x64.ActiveCfg = Release|x64
114-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Release|x64.Build.0 = Release|x64
115-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Release|x86.ActiveCfg = Release|x86
116-
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Release|x86.Build.0 = Release|x86
90+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
91+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
92+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Debug|ARM.ActiveCfg = Debug|Any CPU
93+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Debug|ARM.Build.0 = Debug|Any CPU
94+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Debug|x64.ActiveCfg = Debug|Any CPU
95+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Debug|x64.Build.0 = Debug|Any CPU
96+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Debug|x86.ActiveCfg = Debug|Any CPU
97+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Debug|x86.Build.0 = Debug|Any CPU
98+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
99+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Release|Any CPU.Build.0 = Release|Any CPU
100+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Release|ARM.ActiveCfg = Release|Any CPU
101+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Release|ARM.Build.0 = Release|Any CPU
102+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Release|x64.ActiveCfg = Release|Any CPU
103+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Release|x64.Build.0 = Release|Any CPU
104+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Release|x86.ActiveCfg = Release|Any CPU
105+
{30DD3384-A1F9-459A-A90F-E004EBD748E8}.Release|x86.Build.0 = Release|Any CPU
106+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
107+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Debug|Any CPU.Build.0 = Debug|Any CPU
108+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Debug|ARM.ActiveCfg = Debug|Any CPU
109+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Debug|ARM.Build.0 = Debug|Any CPU
110+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Debug|x64.ActiveCfg = Debug|Any CPU
111+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Debug|x64.Build.0 = Debug|Any CPU
112+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Debug|x86.ActiveCfg = Debug|Any CPU
113+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Debug|x86.Build.0 = Debug|Any CPU
114+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Release|Any CPU.ActiveCfg = Release|Any CPU
115+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Release|Any CPU.Build.0 = Release|Any CPU
116+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Release|ARM.ActiveCfg = Release|Any CPU
117+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Release|ARM.Build.0 = Release|Any CPU
118+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Release|x64.ActiveCfg = Release|Any CPU
119+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Release|x64.Build.0 = Release|Any CPU
120+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Release|x86.ActiveCfg = Release|Any CPU
121+
{6A476F62-CA62-4A90-A866-1094BEC1D23B}.Release|x86.Build.0 = Release|Any CPU
117122
EndGlobalSection
118123
GlobalSection(SolutionProperties) = preSolution
119124
HideSolutionNode = FALSE
120125
EndGlobalSection
121126
GlobalSection(NestedProjects) = preSolution
122127
{6D74103A-9393-42E8-83A8-9E01F806E29D} = {4DC016EB-1ED1-4EAA-8537-E47278281BDC}
123128
{2A76FC53-E331-4CFA-83C0-93A212FD8F6E} = {4DC016EB-1ED1-4EAA-8537-E47278281BDC}
129+
{30DD3384-A1F9-459A-A90F-E004EBD748E8} = {4DC016EB-1ED1-4EAA-8537-E47278281BDC}
124130
EndGlobalSection
125131
EndGlobal

UnitsNet/UnitsNet.Net35.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
<Reference Include="System.Xml" />
4545
</ItemGroup>
4646
<ItemGroup>
47-
<Compile Include="**\*.cs;" Exclude="obj\**" />
47+
<Compile Include="**\*.cs;" Exclude="obj\**;**\*.WindowsRuntimeComponent.cs" />
4848
<None Include="packages.UnitsNet.Net35.config" />
4949
<None Include="Scripts\**\*.*" />
5050
</ItemGroup>
5151
<ItemGroup>
5252
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
5353
</ItemGroup>
5454
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
55-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
55+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5656
Other similar extension points exist, see Microsoft.Common.targets.
5757
<Target Name="BeforeBuild">
5858
</Target>

UnitsNet/UnitsNet.Portable40.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<WarningLevel>4</WarningLevel>
4040
</PropertyGroup>
4141
<ItemGroup>
42-
<Compile Include="**\*.cs;" Exclude="obj\**" />
42+
<Compile Include="**\*.cs;" Exclude="obj\**;**\*.WindowsRuntimeComponent.cs" />
4343
<None Include="packages.UnitsNet.Portable40.config" />
4444
<None Include="Scripts\**\*.*" />
4545
</ItemGroup>
@@ -50,7 +50,7 @@
5050
</Reference>
5151
</ItemGroup>
5252
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
53-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
53+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5454
Other similar extension points exist, see Microsoft.Common.targets.
5555
<Target Name="BeforeBuild">
5656
</Target>

0 commit comments

Comments
 (0)