add mod build features for new csproj format
This commit is contained in:
parent
4f87da3426
commit
d5a7465b02
|
@ -230,8 +230,11 @@ _[Game path](#game-path)_ above.
|
||||||
### Upcoming release
|
### Upcoming release
|
||||||
* Updated for SMAPI 3.0 and Stardew Valley 1.4.
|
* Updated for SMAPI 3.0 and Stardew Valley 1.4.
|
||||||
* If the project contains an `assets` folder, its contents are now included in the mod automatically.
|
* If the project contains an `assets` folder, its contents are now included in the mod automatically.
|
||||||
|
* For projects using the new `.csproj` format:
|
||||||
|
* platform target is now set to x86 automatically to avoid mismatching platform target warnings;
|
||||||
|
* added GAC to assembly search paths to fix references to XNA Framework.
|
||||||
* Fixed `Newtonsoft.Json.pdb` included in release zips when Json.NET is referenced directly.
|
* Fixed `Newtonsoft.Json.pdb` included in release zips when Json.NET is referenced directly.
|
||||||
* Fixed `<IgnoreModFilePatterns>` not working for `i18n` files.
|
* Fixed `<IgnoreModFilePatterns>` not working for `i18n` files.
|
||||||
* Dropped support for older versions of SMAPI and Visual Studio.
|
* Dropped support for older versions of SMAPI and Visual Studio.
|
||||||
|
|
||||||
### 2.2
|
### 2.2
|
||||||
|
|
|
@ -13,6 +13,13 @@
|
||||||
|
|
||||||
<!-- set build options -->
|
<!-- set build options -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<!-- set build to x86 to avoid mismatched platform warnings (only affects mods using new csproj format) -->
|
||||||
|
<Platforms>x86</Platforms>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
|
||||||
|
<!-- recognise XNA Framework DLLs in the GAC (only affects mods using new csproj format) -->
|
||||||
|
<AssemblySearchPaths>$(AssemblySearchPaths);{GAC}</AssemblySearchPaths>
|
||||||
|
|
||||||
<!-- set default package options -->
|
<!-- set default package options -->
|
||||||
<ModFolderName Condition="'$(ModFolderName)' == ''">$(MSBuildProjectName)</ModFolderName>
|
<ModFolderName Condition="'$(ModFolderName)' == ''">$(MSBuildProjectName)</ModFolderName>
|
||||||
<ModZipPath Condition="'$(ModZipPath)' == ''">$(TargetDir)</ModZipPath>
|
<ModZipPath Condition="'$(ModZipPath)' == ''">$(TargetDir)</ModZipPath>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>Pathoschild.Stardew.ModBuildConfig</id>
|
<id>Pathoschild.Stardew.ModBuildConfig</id>
|
||||||
<version>3.0.0-alpha.20190426</version>
|
<version>3.0.0-alpha.20190611</version>
|
||||||
<title>Build package for SMAPI mods</title>
|
<title>Build package for SMAPI mods</title>
|
||||||
<authors>Pathoschild</authors>
|
<authors>Pathoschild</authors>
|
||||||
<owners>Pathoschild</owners>
|
<owners>Pathoschild</owners>
|
||||||
|
@ -16,6 +16,9 @@
|
||||||
3.0.0:
|
3.0.0:
|
||||||
- Updated for SMAPI 3.0 and Stardew Valley 1.4.
|
- Updated for SMAPI 3.0 and Stardew Valley 1.4.
|
||||||
- If the project contains an `assets` folder, its contents are now included in the mod automatically.
|
- If the project contains an `assets` folder, its contents are now included in the mod automatically.
|
||||||
|
- For projects using the new `.csproj` format:
|
||||||
|
- platform target is now set to x86 automatically to avoid mismatching platform target warnings;
|
||||||
|
- added GAC to assembly search paths to fix references to XNA Framework.
|
||||||
- Fixed `Newtonsoft.Json.pdb` included in release zips when Json.NET is referenced directly.
|
- Fixed `Newtonsoft.Json.pdb` included in release zips when Json.NET is referenced directly.
|
||||||
- Fixed `<IgnoreModFilePatterns>` not working for `i18n` files.
|
- Fixed `<IgnoreModFilePatterns>` not working for `i18n` files.
|
||||||
- Dropped support for older versions of SMAPI and Visual Studio.
|
- Dropped support for older versions of SMAPI and Visual Studio.
|
||||||
|
|
Loading…
Reference in New Issue