Skip to content

Commit fa1fe18

Browse files
committed
Using wildcard on <ItemGroup> in all projects to import all .cs files. This overcomes the issue of keeping the projects in sync.
1 parent 516675e commit fa1fe18

File tree

4 files changed

+6
-85
lines changed

4 files changed

+6
-85
lines changed

Src/UnitsNet/UnitsNet.net35.csproj

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,9 @@
3838
<Reference Include="System.Xml" />
3939
</ItemGroup>
4040
<ItemGroup>
41-
<Compile Include="Angle.cs" />
42-
<Compile Include="Area.cs" />
43-
<Compile Include="Revolution.cs" />
44-
<Compile Include="ElectricPotential.cs" />
45-
<Compile Include="EnumUtils.cs" />
46-
<Compile Include="Flow.cs" />
47-
<Compile Include="Length.cs" />
48-
<Compile Include="Length2d.cs" />
49-
<Compile Include="Force.cs" />
50-
<Compile Include="Mass.cs" />
51-
<Compile Include="Pressure.cs" />
52-
<Compile Include="Properties\AssemblyInfo.cs" />
53-
<Compile Include="Unit.cs" />
54-
<Compile Include="UnitParser.cs" />
55-
<Compile Include="UnitConverter.cs" />
56-
<Compile Include="UnitSystem.cs" />
57-
<Compile Include="UnitValue.cs" />
58-
<Compile Include="Torque.cs" />
59-
<Compile Include="Vector2.cs" />
60-
<Compile Include="Vector3.cs" />
61-
<Compile Include="Volume.cs" />
62-
</ItemGroup>
41+
<Compile Include="*.cs" />
42+
</ItemGroup>
43+
6344
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6445
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
6546
Other similar extension points exist, see Microsoft.Common.targets.

Src/UnitsNet/UnitsNet.netcore45.csproj

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -98,27 +98,7 @@
9898
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
9999
</ItemGroup>
100100
<ItemGroup>
101-
<Compile Include="Angle.cs" />
102-
<Compile Include="Area.cs" />
103-
<Compile Include="ElectricPotential.cs" />
104-
<Compile Include="EnumUtils.cs" />
105-
<Compile Include="Flow.cs" />
106-
<Compile Include="Force.cs" />
107-
<Compile Include="Length.cs" />
108-
<Compile Include="Length2d.cs" />
109-
<Compile Include="Mass.cs" />
110-
<Compile Include="Pressure.cs" />
111-
<Compile Include="Properties\AssemblyInfo.cs" />
112-
<Compile Include="Revolution.cs" />
113-
<Compile Include="Torque.cs" />
114-
<Compile Include="Unit.cs" />
115-
<Compile Include="UnitConverter.cs" />
116-
<Compile Include="UnitParser.cs" />
117-
<Compile Include="UnitSystem.cs" />
118-
<Compile Include="UnitValue.cs" />
119-
<Compile Include="Vector2.cs" />
120-
<Compile Include="Vector3.cs" />
121-
<Compile Include="Volume.cs" />
101+
<Compile Include="*.cs" />
122102
</ItemGroup>
123103
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0' ">
124104
<VisualStudioVersion>12.0</VisualStudioVersion>

Src/UnitsNet/UnitsNet.pcl.csproj

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,7 @@
4040
<!-- A reference to the entire .NET Framework is automatically included -->
4141
</ItemGroup>
4242
<ItemGroup>
43-
<Compile Include="Angle.cs" />
44-
<Compile Include="Area.cs" />
45-
<Compile Include="Revolution.cs" />
46-
<Compile Include="ElectricPotential.cs" />
47-
<Compile Include="EnumUtils.cs" />
48-
<Compile Include="Flow.cs" />
49-
<Compile Include="Force.cs" />
50-
<Compile Include="Length.cs" />
51-
<Compile Include="Length2d.cs" />
52-
<Compile Include="Mass.cs" />
53-
<Compile Include="Pressure.cs" />
54-
<Compile Include="Properties\AssemblyInfo.cs" />
55-
<Compile Include="Torque.cs" />
56-
<Compile Include="Unit.cs" />
57-
<Compile Include="UnitConverter.cs" />
58-
<Compile Include="UnitParser.cs" />
59-
<Compile Include="UnitSystem.cs" />
60-
<Compile Include="UnitValue.cs" />
61-
<Compile Include="Vector2.cs" />
62-
<Compile Include="Vector3.cs" />
63-
<Compile Include="Volume.cs" />
43+
<Compile Include="*.cs" />
6444
</ItemGroup>
6545
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
6646
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

Src/UnitsNet/UnitsNet.sl4.csproj

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,27 +61,7 @@
6161
<Reference Include="System.Windows.Browser" />
6262
</ItemGroup>
6363
<ItemGroup>
64-
<Compile Include="Angle.cs" />
65-
<Compile Include="Area.cs" />
66-
<Compile Include="Revolution.cs" />
67-
<Compile Include="EnumUtils.cs" />
68-
<Compile Include="Flow.cs" />
69-
<Compile Include="Force.cs" />
70-
<Compile Include="Length.cs" />
71-
<Compile Include="Length2d.cs" />
72-
<Compile Include="Mass.cs" />
73-
<Compile Include="Pressure.cs" />
74-
<Compile Include="Properties\AssemblyInfo.cs" />
75-
<Compile Include="Torque.cs" />
76-
<Compile Include="Unit.cs" />
77-
<Compile Include="UnitConverter.cs" />
78-
<Compile Include="UnitParser.cs" />
79-
<Compile Include="UnitSystem.cs" />
80-
<Compile Include="ElectricPotential.cs" />
81-
<Compile Include="UnitValue.cs" />
82-
<Compile Include="Vector2.cs" />
83-
<Compile Include="Vector3.cs" />
84-
<Compile Include="Volume.cs" />
64+
<Compile Include="*.cs" />
8565
</ItemGroup>
8666
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
8767
<ProjectExtensions>

0 commit comments

Comments
 (0)