summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SMAPI.Common/Models/ModInfoModel.cs (renamed from src/SMAPI.Models/ModInfoModel.cs)2
-rw-r--r--src/SMAPI.Common/Models/ModSeachModel.cs (renamed from src/SMAPI.Models/ModSeachModel.cs)2
-rw-r--r--src/SMAPI.Common/StardewModdingAPI.Common.projitems (renamed from src/SMAPI.Models/StardewModdingAPI.Models.projitems)9
-rw-r--r--src/SMAPI.Common/StardewModdingAPI.Common.shproj (renamed from src/SMAPI.Models/StardewModdingAPI.Models.shproj)2
-rw-r--r--src/SMAPI.Web/Controllers/ModsController.cs2
-rw-r--r--src/SMAPI.Web/Framework/ModRepositories/BaseRepository.cs2
-rw-r--r--src/SMAPI.Web/Framework/ModRepositories/ChucklefishRepository.cs2
-rw-r--r--src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs2
-rw-r--r--src/SMAPI.Web/Framework/ModRepositories/IModRepository.cs2
-rw-r--r--src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs2
-rw-r--r--src/SMAPI.Web/StardewModdingAPI.Web.csproj2
-rw-r--r--src/SMAPI.sln6
-rw-r--r--src/SMAPI/Framework/WebApiClient.cs2
-rw-r--r--src/SMAPI/Program.cs2
-rw-r--r--src/SMAPI/StardewModdingAPI.csproj2
15 files changed, 22 insertions, 19 deletions
diff --git a/src/SMAPI.Models/ModInfoModel.cs b/src/SMAPI.Common/Models/ModInfoModel.cs
index 44071230..e071c0bb 100644
--- a/src/SMAPI.Models/ModInfoModel.cs
+++ b/src/SMAPI.Common/Models/ModInfoModel.cs
@@ -1,6 +1,6 @@
using Newtonsoft.Json;
-namespace StardewModdingAPI.Models
+namespace StardewModdingAPI.Common.Models
{
/// <summary>Generic metadata about a mod.</summary>
internal class ModInfoModel
diff --git a/src/SMAPI.Models/ModSeachModel.cs b/src/SMAPI.Common/Models/ModSeachModel.cs
index 526fbaf3..3f69f0ae 100644
--- a/src/SMAPI.Models/ModSeachModel.cs
+++ b/src/SMAPI.Common/Models/ModSeachModel.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace StardewModdingAPI.Models
+namespace StardewModdingAPI.Common.Models
{
/// <summary>Specifies mods whose update-check info to fetch.</summary>
internal class ModSearchModel
diff --git a/src/SMAPI.Models/StardewModdingAPI.Models.projitems b/src/SMAPI.Common/StardewModdingAPI.Common.projitems
index e2cb29e1..b3296570 100644
--- a/src/SMAPI.Models/StardewModdingAPI.Models.projitems
+++ b/src/SMAPI.Common/StardewModdingAPI.Common.projitems
@@ -6,10 +6,13 @@
<SharedGUID>2aa02fb6-ff03-41cf-a215-2ee60ab4f5dc</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
- <Import_RootNamespace>StardewModdingAPI.Models</Import_RootNamespace>
+ <Import_RootNamespace>StardewModdingAPI.Common</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
- <Compile Include="$(MSBuildThisFileDirectory)ModSeachModel.cs" />
- <Compile Include="$(MSBuildThisFileDirectory)ModInfoModel.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)Models\ModSeachModel.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)Models\ModInfoModel.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="$(MSBuildThisFileDirectory)Models\" />
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/src/SMAPI.Models/StardewModdingAPI.Models.shproj b/src/SMAPI.Common/StardewModdingAPI.Common.shproj
index c80517af..0ef29144 100644
--- a/src/SMAPI.Models/StardewModdingAPI.Models.shproj
+++ b/src/SMAPI.Common/StardewModdingAPI.Common.shproj
@@ -8,6 +8,6 @@
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
<PropertyGroup />
- <Import Project="StardewModdingAPI.Models.projitems" Label="Shared" />
+ <Import Project="StardewModdingAPI.Common.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
</Project>
diff --git a/src/SMAPI.Web/Controllers/ModsController.cs b/src/SMAPI.Web/Controllers/ModsController.cs
index 7dcfcf13..a671ddca 100644
--- a/src/SMAPI.Web/Controllers/ModsController.cs
+++ b/src/SMAPI.Web/Controllers/ModsController.cs
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
-using StardewModdingAPI.Models;
+using StardewModdingAPI.Common.Models;
using StardewModdingAPI.Web.Framework.ConfigModels;
using StardewModdingAPI.Web.Framework.ModRepositories;
diff --git a/src/SMAPI.Web/Framework/ModRepositories/BaseRepository.cs b/src/SMAPI.Web/Framework/ModRepositories/BaseRepository.cs
index d98acd89..edb00454 100644
--- a/src/SMAPI.Web/Framework/ModRepositories/BaseRepository.cs
+++ b/src/SMAPI.Web/Framework/ModRepositories/BaseRepository.cs
@@ -1,6 +1,6 @@
using System.Text.RegularExpressions;
using System.Threading.Tasks;
-using StardewModdingAPI.Models;
+using StardewModdingAPI.Common.Models;
namespace StardewModdingAPI.Web.Framework.ModRepositories
{
diff --git a/src/SMAPI.Web/Framework/ModRepositories/ChucklefishRepository.cs b/src/SMAPI.Web/Framework/ModRepositories/ChucklefishRepository.cs
index ed7bd60b..06ec58ed 100644
--- a/src/SMAPI.Web/Framework/ModRepositories/ChucklefishRepository.cs
+++ b/src/SMAPI.Web/Framework/ModRepositories/ChucklefishRepository.cs
@@ -3,7 +3,7 @@ using System.Net;
using System.Threading.Tasks;
using HtmlAgilityPack;
using Pathoschild.Http.Client;
-using StardewModdingAPI.Models;
+using StardewModdingAPI.Common.Models;
namespace StardewModdingAPI.Web.Framework.ModRepositories
{
diff --git a/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs b/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs
index 174fb79a..9d43adf0 100644
--- a/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs
+++ b/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs
@@ -3,7 +3,7 @@ using System.Net;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Pathoschild.Http.Client;
-using StardewModdingAPI.Models;
+using StardewModdingAPI.Common.Models;
namespace StardewModdingAPI.Web.Framework.ModRepositories
{
diff --git a/src/SMAPI.Web/Framework/ModRepositories/IModRepository.cs b/src/SMAPI.Web/Framework/ModRepositories/IModRepository.cs
index 98e4c957..4496400c 100644
--- a/src/SMAPI.Web/Framework/ModRepositories/IModRepository.cs
+++ b/src/SMAPI.Web/Framework/ModRepositories/IModRepository.cs
@@ -1,6 +1,6 @@
using System;
using System.Threading.Tasks;
-using StardewModdingAPI.Models;
+using StardewModdingAPI.Common.Models;
namespace StardewModdingAPI.Web.Framework.ModRepositories
{
diff --git a/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs b/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs
index 71970bec..8a4bb0d8 100644
--- a/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs
+++ b/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs
@@ -2,7 +2,7 @@ using System;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Pathoschild.Http.Client;
-using StardewModdingAPI.Models;
+using StardewModdingAPI.Common.Models;
namespace StardewModdingAPI.Web.Framework.ModRepositories
{
diff --git a/src/SMAPI.Web/StardewModdingAPI.Web.csproj b/src/SMAPI.Web/StardewModdingAPI.Web.csproj
index 6b1d0687..ec1311f4 100644
--- a/src/SMAPI.Web/StardewModdingAPI.Web.csproj
+++ b/src/SMAPI.Web/StardewModdingAPI.Web.csproj
@@ -21,6 +21,6 @@
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
</ItemGroup>
- <Import Project="..\SMAPI.Models\StardewModdingAPI.Models.projitems" Label="Shared" />
+ <Import Project="..\SMAPI.Common\StardewModdingAPI.Common.projitems" Label="Shared" />
</Project>
diff --git a/src/SMAPI.sln b/src/SMAPI.sln
index fcb805a7..7941394d 100644
--- a/src/SMAPI.sln
+++ b/src/SMAPI.sln
@@ -29,7 +29,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StardewModdingAPI.Web", "SM
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Internal", "Internal", "{82D22ED7-A0A7-4D64-8E92-4B6A5E74ED11}"
EndProject
-Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "StardewModdingAPI.Models", "SMAPI.Models\StardewModdingAPI.Models.shproj", "{2AA02FB6-FF03-41CF-A215-2EE60AB4F5DC}"
+Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "StardewModdingAPI.Common", "SMAPI.Common\StardewModdingAPI.Common.shproj", "{2AA02FB6-FF03-41CF-A215-2EE60AB4F5DC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{EB35A917-67B9-4EFA-8DFC-4FB49B3949BB}"
ProjectSection(SolutionItems) = preProject
@@ -47,8 +47,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{09CF91E5
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
- SMAPI.Models\StardewModdingAPI.Models.projitems*{2aa02fb6-ff03-41cf-a215-2ee60ab4f5dc}*SharedItemsImports = 13
- SMAPI.Models\StardewModdingAPI.Models.projitems*{f1a573b0-f436-472c-ae29-0b91ea6b9f8f}*SharedItemsImports = 4
+ SMAPI.Common\StardewModdingAPI.Common.projitems*{2aa02fb6-ff03-41cf-a215-2ee60ab4f5dc}*SharedItemsImports = 13
+ SMAPI.Common\StardewModdingAPI.Common.projitems*{f1a573b0-f436-472c-ae29-0b91ea6b9f8f}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
diff --git a/src/SMAPI/Framework/WebApiClient.cs b/src/SMAPI/Framework/WebApiClient.cs
index f3c7de28..e78ac14b 100644
--- a/src/SMAPI/Framework/WebApiClient.cs
+++ b/src/SMAPI/Framework/WebApiClient.cs
@@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Net;
using Newtonsoft.Json;
-using StardewModdingAPI.Models;
+using StardewModdingAPI.Common.Models;
namespace StardewModdingAPI.Framework
{
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index 7dfdc745..293c9da7 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -12,6 +12,7 @@ using System.Management;
using System.Windows.Forms;
#endif
using Newtonsoft.Json;
+using StardewModdingAPI.Common.Models;
using StardewModdingAPI.Events;
using StardewModdingAPI.Framework;
using StardewModdingAPI.Framework.Exceptions;
@@ -21,7 +22,6 @@ using StardewModdingAPI.Framework.ModHelpers;
using StardewModdingAPI.Framework.ModLoading;
using StardewModdingAPI.Framework.Reflection;
using StardewModdingAPI.Framework.Serialisation;
-using StardewModdingAPI.Models;
using StardewValley;
using Monitor = StardewModdingAPI.Framework.Monitor;
using SObject = StardewValley.Object;
diff --git a/src/SMAPI/StardewModdingAPI.csproj b/src/SMAPI/StardewModdingAPI.csproj
index c6ff75d1..35a784cd 100644
--- a/src/SMAPI/StardewModdingAPI.csproj
+++ b/src/SMAPI/StardewModdingAPI.csproj
@@ -265,7 +265,7 @@
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
- <Import Project="..\SMAPI.Models\StardewModdingAPI.Models.projitems" Label="Shared" />
+ <Import Project="..\SMAPI.Common\StardewModdingAPI.Common.projitems" Label="Shared" />
<ItemGroup>
<ProjectReference Include="..\SMAPI.AssemblyRewriters\StardewModdingAPI.AssemblyRewriters.csproj">
<Project>{10db0676-9fc1-4771-a2c8-e2519f091e49}</Project>