Skip to content

Commit

Permalink
Nuget (#26)
Browse files Browse the repository at this point in the history
* compatible with Nuget
  • Loading branch information
amazingalek authored Dec 27, 2019
1 parent d7018f8 commit 6eb876f
Show file tree
Hide file tree
Showing 21 changed files with 386 additions and 74 deletions.
23 changes: 19 additions & 4 deletions OWML.Common/OWML.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,24 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="OW.Unity.Dlls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\OW.Unity.Dlls.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="UnityEngine.AudioModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Outer Wilds\OuterWilds_Data\Managed\UnityEngine.AudioModule.dll</HintPath>
<Reference Include="UnityEngine.AudioModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Outer Wilds\OuterWilds_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestWWWModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand All @@ -55,5 +67,8 @@
<Compile Include="IModManifest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
4 changes: 4 additions & 0 deletions OWML.Common/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="OW.Unity.Dlls" version="1.0.0" targetFramework="net35" />
</packages>
23 changes: 17 additions & 6 deletions OWML.ModHelper.Assets/OWML.ModHelper.Assets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,27 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="NAudio-Unity">
<HintPath>NAudio-Unity\NAudio-Unity.dll</HintPath>
</Reference>
<Reference Include="OW.Unity.Dlls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\OW.Unity.Dlls.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="UnityEngine.AudioModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Outer Wilds\OuterWilds_Data\Managed\UnityEngine.AudioModule.dll</HintPath>
<Reference Include="UnityEngine.AudioModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\Program Files (x86)\Outer Wilds\OuterWilds_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestWWWModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Outer Wilds\OuterWilds_Data\Managed\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
<Reference Include="UnityEngine.UnityWebRequestWWWModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand All @@ -68,5 +76,8 @@
<Name>OWML.ModHelper</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
4 changes: 4 additions & 0 deletions OWML.ModHelper.Assets/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="OW.Unity.Dlls" version="1.0.0" targetFramework="net35" />
</packages>
20 changes: 18 additions & 2 deletions OWML.ModHelper.Events/OWML.ModHelper.Events.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -34,9 +35,24 @@
<Reference Include="0Harmony, Version=1.2.0.1, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Lib.Harmony.1.2.0.1\lib\net35\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="OW.Unity.Dlls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\OW.Unity.Dlls.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Outer Wilds\OuterWilds_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Reference Include="UnityEngine.AudioModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestWWWModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions OWML.ModHelper.Events/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Lib.Harmony" version="1.2.0.1" targetFramework="net35" />
<package id="OW.Unity.Dlls" version="1.0.0" targetFramework="net35" />
</packages>
19 changes: 17 additions & 2 deletions OWML.ModHelper/OWML.ModHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,27 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Json.Net.Unity3D.9.0.1\lib\net35\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="OW.Unity.Dlls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\OW.Unity.Dlls.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Outer Wilds\OuterWilds_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Reference Include="UnityEngine.AudioModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestWWWModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions OWML.ModHelper/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Json.Net.Unity3D" version="9.0.1" targetFramework="net35" />
<package id="OW.Unity.Dlls" version="1.0.0" targetFramework="net35" />
</packages>
19 changes: 17 additions & 2 deletions OWML.ModLoader/OWML.ModLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,27 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Json.Net.Unity3D.9.0.1\lib\net35\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="OW.Unity.Dlls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\OW.Unity.Dlls.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Outer Wilds\OuterWilds_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Reference Include="UnityEngine.AudioModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestWWWModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OW.Unity.Dlls.1.0.0\lib\net35\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions OWML.ModLoader/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Json.Net.Unity3D" version="9.0.1" targetFramework="net35" />
<package id="OW.Unity.Dlls" version="1.0.0" targetFramework="net35" />
</packages>
70 changes: 70 additions & 0 deletions OWML.Nuget/OWML.Nuget.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6A215200-7519-4D57-B140-0E0973EE2345}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OWML.Nuget</RootNamespace>
<AssemblyName>OWML</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="NAudio-Unity, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\OWML.ModHelper.Assets\NAudio-Unity\NAudio-Unity.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OWML.Common\OWML.Common.csproj">
<Project>{3c00626f-b688-4f32-b493-5b7ec1c879a0}</Project>
<Name>OWML.Common</Name>
</ProjectReference>
<ProjectReference Include="..\OWML.ModHelper.Assets\OWML.ModHelper.Assets.csproj">
<Project>{a62856bd-d06c-4f2c-86e8-91c6fdf8f8d5}</Project>
<Name>OWML.ModHelper.Assets</Name>
</ProjectReference>
<ProjectReference Include="..\OWML.ModHelper.Events\OWML.ModHelper.Events.csproj">
<Project>{b771615e-6b51-44f8-b862-d7543c12c0ff}</Project>
<Name>OWML.ModHelper.Events</Name>
</ProjectReference>
<ProjectReference Include="..\OWML.ModHelper\OWML.ModHelper.csproj">
<Project>{cb57bab8-d70e-4fce-9bf1-328a924173a7}</Project>
<Name>OWML.ModHelper</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="OWML.Nuget.nuspec" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
30 changes: 30 additions & 0 deletions OWML.Nuget/OWML.Nuget.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<projectUrl>https://github.com/amazingalek/owml</projectUrl>
<description>$description$</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2019</copyright>
<tags>Outer Wilds</tags>
<dependencies>
<group targetFramework=".NETFramework3.5">
<dependency id="Lib.Harmony" version="1.2.0.1" />
<dependency id="Json.Net.Unity3D" version="9.0.1" />
</group>
</dependencies>
</metadata>
<files>
<file src="bin\Debug\OWML.ModHelper.dll" target="lib\net35" />
<file src="bin\Debug\OWML.ModHelper.Assets.dll" target="lib\net35" />
<file src="bin\Debug\OWML.ModHelper.Events.dll" target="lib\net35" />
<file src="bin\Debug\OWML.Common.dll" target="lib\net35" />
<file src="bin\Debug\NAudio-Unity.dll" target="lib\net35" />
</files>
</package>
35 changes: 35 additions & 0 deletions OWML.Nuget/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OWML")]
[assembly: AssemblyDescription("Mod loader and mod framework for Outer Wilds")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Alek")]
[assembly: AssemblyProduct("OWML")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6a215200-7519-4d57-b140-0e0973ee2345")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Loading

0 comments on commit 6eb876f

Please sign in to comment.