diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-09-23 20:32:21 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-09-23 20:32:21 -0400 |
commit | 819b796e8dd264fbcea72ea065944a206743693e (patch) | |
tree | e0504a81f46d06dec1f659040e8f148374efc9c9 /src/SMAPI.ModBuildConfig | |
parent | 05727acb9b6a90fd4911e74800fe5ea0ea02050d (diff) | |
download | SMAPI-819b796e8dd264fbcea72ea065944a206743693e.tar.gz SMAPI-819b796e8dd264fbcea72ea065944a206743693e.tar.bz2 SMAPI-819b796e8dd264fbcea72ea065944a206743693e.zip |
streamline mod build config package creation
Diffstat (limited to 'src/SMAPI.ModBuildConfig')
-rw-r--r-- | src/SMAPI.ModBuildConfig/SMAPI.ModBuildConfig.csproj | 39 | ||||
-rw-r--r-- | src/SMAPI.ModBuildConfig/package.nuspec | 27 |
2 files changed, 31 insertions, 35 deletions
diff --git a/src/SMAPI.ModBuildConfig/SMAPI.ModBuildConfig.csproj b/src/SMAPI.ModBuildConfig/SMAPI.ModBuildConfig.csproj index 605096d9..ec810dd1 100644 --- a/src/SMAPI.ModBuildConfig/SMAPI.ModBuildConfig.csproj +++ b/src/SMAPI.ModBuildConfig/SMAPI.ModBuildConfig.csproj @@ -1,10 +1,27 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> + <!--build--> <RootNamespace>StardewModdingAPI.ModBuildConfig</RootNamespace> - <Version>3.2.1</Version> <TargetFramework>net45</TargetFramework> <PlatformTarget>x86</PlatformTarget> - <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> + <LangVersion>latest</LangVersion> + <GeneratePackageOnBuild>true</GeneratePackageOnBuild> + + <!--NuGet package--> + <PackageId>Pathoschild.Stardew.ModBuildConfig</PackageId> + <Title>Build package for SMAPI mods</Title> + <Version>3.2.1</Version> + <Authors>Pathoschild</Authors> + <Description>Automates the build configuration for crossplatform Stardew Valley SMAPI mods. For SMAPI 3.0 or later.</Description> + <PackageLicenseExpression>MIT</PackageLicenseExpression> + <PackageIcon>images/icon.png</PackageIcon> + <PackageProjectUrl>https://smapi.io/package/readme</PackageProjectUrl> + <PackageReleaseNotes> + 3.2.1: + - Added more detailed logging. + - Fixed "path's format is not supported" error when using default Mods path in 3.2. + </PackageReleaseNotes> + <IncludeBuildOutput>false</IncludeBuildOutput> </PropertyGroup> <ItemGroup> @@ -16,16 +33,22 @@ </ItemGroup> <ItemGroup> - <ProjectReference Include="..\SMAPI.Toolkit\SMAPI.Toolkit.csproj" /> + <ProjectReference Include="..\SMAPI.Toolkit\SMAPI.Toolkit.csproj" PrivateAssets="All" /> </ItemGroup> <ItemGroup> - <None Include="..\..\build\find-game-folder.targets" Link="build\find-game-folder.targets" /> + <!--project files--> <None Include="..\..\docs\technical\mod-package.md" Link="mod-package.md" /> - <None Update="assets\nuget-icon.png" CopyToOutputDirectory="PreserveNewest" /> + + <!--NuGet package files--> + <None PackagePath="analyzers/dotnet/cs" Include="$(SolutionDir)/SMAPI.ModBuildConfig.Analyzer/bin/netstandard2.0/SMAPI.ModBuildConfig.Analyzer.dll" Pack="true" Visible="false" /> + <None PackagePath="build/" Include="..\..\build\find-game-folder.targets" Link="build/find-game-folder.targets" Pack="true" /> + <None PackagePath="build/" Include="$(OutputPath)\Newtonsoft.Json.dll" Pack="true" Visible="false" /> + <None PackagePath="build/" Include="$(OutputPath)\SMAPI.Toolkit.dll" Pack="true" Visible="false" /> + <None PackagePath="build/" Include="$(OutputPath)\SMAPI.Toolkit.CoreInterfaces.dll" Pack="true" Visible="false" /> + <None PackagePath="build/SMAPI.ModBuildConfig.dll" Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" Visible="false" /> + <None PackagePath="build/Pathoschild.Stardew.ModBuildConfig.targets" Include="build\smapi.targets" Pack="true" /> + <None PackagePath="images/icon.png" Include="assets\nuget-icon.png" Pack="true" /> </ItemGroup> - <Import Project="..\SMAPI.Internal\SMAPI.Internal.projitems" Label="Shared" /> - <Import Project="..\..\build\common.targets" /> - <Import Project="..\..\build\prepare-nuget-package.targets" /> </Project> diff --git a/src/SMAPI.ModBuildConfig/package.nuspec b/src/SMAPI.ModBuildConfig/package.nuspec deleted file mode 100644 index 05aed8f9..00000000 --- a/src/SMAPI.ModBuildConfig/package.nuspec +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> - <metadata> - <id>Pathoschild.Stardew.ModBuildConfig</id> - <version>3.2.1</version> - <title>Build package for SMAPI mods</title> - <authors>Pathoschild</authors> - <owners>Pathoschild</owners> - <requireLicenseAcceptance>false</requireLicenseAcceptance> - <license type="expression">MIT</license> - <repository type="git" url="https://github.com/Pathoschild/SMAPI" /> - <projectUrl>https://smapi.io/package/readme</projectUrl> - <icon>images\icon.png</icon> - <iconUrl>https://raw.githubusercontent.com/Pathoschild/SMAPI/develop/src/SMAPI.ModBuildConfig/assets/nuget-icon.png</iconUrl> - <description>Automates the build configuration for crossplatform Stardew Valley SMAPI mods. For SMAPI 3.0 or later.</description> - <releaseNotes> - 3.2.1: - - Added more detailed logging. - - Fixed "path's format is not supported" error when using default Mods path in 3.2. - </releaseNotes> - </metadata> - <files> - <file src="analyzers\**" target="analyzers" /> - <file src="build\**" target="build" /> - <file src="images\**" target="images" /> - </files> -</package> |