|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | 3 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
4 | | - <Import Project="$(MSBuildProjectDirectory)\..\Props\common.props" |
5 | | - Condition="Exists('$(MSBuildProjectDirectory)\..\Props\common.props')" /> |
| 4 | + <Import Project="$(MSBuildProjectDirectory)\..\Props\mod.props" Condition="Exists('$(MSBuildProjectDirectory)\..\Props\common.props')" /> |
6 | 5 | <PropertyGroup> |
7 | | - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
8 | | - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
9 | 6 | <ProjectGuid>{6019B364-210A-45AB-9E74-192953A87867}</ProjectGuid> |
10 | | - <OutputType>Library</OutputType> |
11 | | - <AppDesignerFolder>Properties</AppDesignerFolder> |
12 | 7 | <RootNamespace>BugReportDisabler</RootNamespace> |
13 | 8 | <AssemblyName>BugReportDisablerPlugin</AssemblyName> |
14 | | - <TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion> |
15 | | - <FileAlignment>512</FileAlignment> |
16 | | - </PropertyGroup> |
17 | | - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
18 | | - <PlatformTarget>AnyCPU</PlatformTarget> |
19 | | - <DebugSymbols>false</DebugSymbols> |
20 | | - <DebugType>none</DebugType> |
21 | | - <Optimize>false</Optimize> |
22 | | - <OutputPath>$(GameDir)\mods\</OutputPath> |
23 | | - <DefineConstants>DEBUG;TRACE</DefineConstants> |
24 | | - <ErrorReport>prompt</ErrorReport> |
25 | | - <WarningLevel>4</WarningLevel> |
26 | | - </PropertyGroup> |
27 | | - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
28 | | - <PlatformTarget>AnyCPU</PlatformTarget> |
29 | | - <DebugType>pdbonly</DebugType> |
30 | | - <Optimize>true</Optimize> |
31 | | - <OutputPath>$(GameDir)\mods\</OutputPath> |
32 | | - <DefineConstants>TRACE</DefineConstants> |
33 | | - <ErrorReport>prompt</ErrorReport> |
34 | | - <WarningLevel>4</WarningLevel> |
35 | 9 | </PropertyGroup> |
36 | 10 | <ItemGroup> |
37 | | - <Reference Include="0Harmony, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null"> |
38 | | - <HintPath>..\GoingMedievalModLauncher\libs\0Harmony.dll</HintPath> |
39 | | - <Private>False</Private> |
40 | | - </Reference> |
41 | | - <Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"> |
42 | | - <HintPath>$(GameDir)\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath> |
43 | | - </Reference> |
44 | | - <Reference Include="System" /> |
45 | 11 | <Reference Include="System.Core" /> |
46 | 12 | <Reference Include="System.Data" /> |
47 | 13 | <Reference Include="System.Xml" /> |
48 | | - <Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"> |
49 | | - <HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath> |
50 | | - </Reference> |
51 | 14 | </ItemGroup> |
52 | 15 | <ItemGroup> |
53 | 16 | <Compile Include="BugReportDisablerPlugin.cs" /> |
54 | 17 | <Compile Include="Properties\AssemblyInfo.cs" /> |
55 | 18 | </ItemGroup> |
56 | 19 | <ItemGroup> |
57 | | - <ProjectReference Include="..\GoingMedievalModLauncher\GoingMedievalModLauncher.csproj"> |
58 | | - <Project>{91aecc71-ab38-4e60-bc8d-34263b818a39}</Project> |
59 | | - <Name>GoingMedievalModLauncher</Name> |
60 | | - </ProjectReference> |
| 20 | + <Content Include="manifest.json" /> |
| 21 | + <Content Include="readme.md" /> |
61 | 22 | </ItemGroup> |
62 | 23 | <ItemGroup> |
63 | | - <Content Include="readme.md" /> |
| 24 | + <None Include="packages.config" /> |
64 | 25 | </ItemGroup> |
65 | 26 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| 27 | + <Target Name="CopyManifest" BeforeTargets="Build"> |
| 28 | + <ItemGroup Condition="Exists(assets)"> |
| 29 | + <ASSETS Include="assets\**\*.*" /> |
| 30 | + </ItemGroup> |
| 31 | + <Copy SourceFiles="manifest.json" DestinationFolder="$(ModDir)" /> |
| 32 | + <Copy SourceFiles="@(ASSETS)" DestinationFolder="$(Assets)\%(RecursiveDir)" Condition="Exists(assets)" /> |
| 33 | + </Target> |
| 34 | + <ItemGroup> |
| 35 | + <ProjectReference Include="..\GoingMedievalModLauncher\GoingMedievalModLauncher.csproj"> |
| 36 | + <Project>{91aecc71-ab38-4e60-bc8d-34263b818a39}</Project> |
| 37 | + <Name>GoingMedievalModLauncher</Name> |
| 38 | + <Private>False</Private> |
| 39 | + </ProjectReference> |
| 40 | + </ItemGroup> |
66 | 41 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
67 | 42 | Other similar extension points exist, see Microsoft.Common.targets. |
68 | 43 | <Target Name="BeforeBuild"> |
|
0 commit comments