Skip to content

Commit fa5eb44

Browse files
AsgharSoAsgharSo
authored andcommitted
using fody
1 parent c6e0b10 commit fa5eb44

3 files changed

Lines changed: 59 additions & 0 deletions

File tree

OdinSharpLib/FodyWeavers.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
2+
<Costura />
3+
</Weavers>

OdinSharpLib/OdinSharpLib.csproj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -12,6 +13,8 @@
1213
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
1314
<FileAlignment>512</FileAlignment>
1415
<Deterministic>true</Deterministic>
16+
<NuGetPackageImportStamp>
17+
</NuGetPackageImportStamp>
1518
</PropertyGroup>
1619
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1720
<DebugSymbols>true</DebugSymbols>
@@ -34,6 +37,9 @@
3437
<ApplicationIcon>OdinSharpLib.ico</ApplicationIcon>
3538
</PropertyGroup>
3639
<ItemGroup>
40+
<Reference Include="Costura, Version=5.7.0.0, Culture=neutral, processorArchitecture=MSIL">
41+
<HintPath>..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll</HintPath>
42+
</Reference>
3743
<Reference Include="K4os.Compression.LZ4, Version=1.2.16.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
3844
<HintPath>..\packages\K4os.Compression.LZ4.1.2.16\lib\net45\K4os.Compression.LZ4.dll</HintPath>
3945
</Reference>
@@ -51,14 +57,20 @@
5157
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
5258
<HintPath>..\packages\System.Buffers.4.5.1\lib\netstandard1.1\System.Buffers.dll</HintPath>
5359
</Reference>
60+
<Reference Include="System.ComponentModel.Composition" />
5461
<Reference Include="System.Core" />
62+
<Reference Include="System.IO.Compression" />
5563
<Reference Include="System.Management" />
5664
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
5765
<HintPath>..\packages\System.Memory.4.5.4\lib\netstandard1.1\System.Memory.dll</HintPath>
5866
</Reference>
67+
<Reference Include="System.Numerics" />
5968
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
6069
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
6170
</Reference>
71+
<Reference Include="System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
72+
<HintPath>..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
73+
</Reference>
6274
<Reference Include="System.Xml.Linq" />
6375
<Reference Include="System.Data.DataSetExtensions" />
6476
<Reference Include="Microsoft.CSharp" />
@@ -91,4 +103,14 @@
91103
<Content Include="OdinSharpLib.ico" />
92104
</ItemGroup>
93105
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
106+
<Import Project="..\packages\Fody.6.5.5\build\Fody.targets" Condition="Exists('..\packages\Fody.6.5.5\build\Fody.targets')" />
107+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
108+
<PropertyGroup>
109+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
110+
</PropertyGroup>
111+
<Error Condition="!Exists('..\packages\Fody.6.5.5\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.5.5\build\Fody.targets'))" />
112+
<Error Condition="!Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props'))" />
113+
<Error Condition="!Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets'))" />
114+
</Target>
115+
<Import Project="..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" />
94116
</Project>

OdinSharpLib/packages.config

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,44 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3+
<package id="Costura.Fody" version="5.7.0" targetFramework="net451" developmentDependency="true" />
4+
<package id="Fody" version="6.5.5" targetFramework="net451" developmentDependency="true" />
35
<package id="K4os.Compression.LZ4" version="1.2.16" targetFramework="net451" />
46
<package id="K4os.Compression.LZ4.Legacy" version="1.2.16" targetFramework="net451" />
57
<package id="K4os.Compression.LZ4.Streams" version="1.2.16" targetFramework="net451" />
68
<package id="K4os.Hash.xxHash" version="1.0.6" targetFramework="net451" />
9+
<package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="net451" />
10+
<package id="NETStandard.Library" version="1.6.1" targetFramework="net451" />
711
<package id="System.Buffers" version="4.5.1" targetFramework="net451" />
12+
<package id="System.Collections" version="4.3.0" targetFramework="net451" />
13+
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net451" />
14+
<package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net451" />
15+
<package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="net451" />
16+
<package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="net451" />
17+
<package id="System.Globalization" version="4.3.0" targetFramework="net451" />
18+
<package id="System.IO" version="4.3.0" targetFramework="net451" />
19+
<package id="System.IO.Compression" version="4.3.0" targetFramework="net451" />
20+
<package id="System.Linq" version="4.3.0" targetFramework="net451" />
21+
<package id="System.Linq.Expressions" version="4.3.0" targetFramework="net451" />
822
<package id="System.Memory" version="4.5.4" targetFramework="net451" />
23+
<package id="System.Net.Http" version="4.3.0" targetFramework="net451" />
24+
<package id="System.Net.Primitives" version="4.3.0" targetFramework="net451" />
25+
<package id="System.ObjectModel" version="4.3.0" targetFramework="net451" />
26+
<package id="System.Reflection" version="4.3.0" targetFramework="net451" />
27+
<package id="System.Reflection.Extensions" version="4.3.0" targetFramework="net451" />
28+
<package id="System.Reflection.Primitives" version="4.3.0" targetFramework="net451" />
29+
<package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="net451" />
30+
<package id="System.Runtime" version="4.3.0" targetFramework="net451" />
931
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.3" targetFramework="net451" />
32+
<package id="System.Runtime.Extensions" version="4.3.0" targetFramework="net451" />
33+
<package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="net451" />
34+
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="net451" />
35+
<package id="System.Runtime.Numerics" version="4.3.0" targetFramework="net451" />
36+
<package id="System.Text.Encoding" version="4.3.0" targetFramework="net451" />
37+
<package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="net451" />
38+
<package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="net451" />
39+
<package id="System.Threading" version="4.3.0" targetFramework="net451" />
40+
<package id="System.Threading.Tasks" version="4.3.0" targetFramework="net451" />
41+
<package id="System.Threading.Timer" version="4.3.0" targetFramework="net451" />
42+
<package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="net451" />
43+
<package id="System.Xml.XDocument" version="4.3.0" targetFramework="net451" />
1044
</packages>

0 commit comments

Comments
 (0)