-
Notifications
You must be signed in to change notification settings - Fork 0
/
FarmDoctor.csproj
96 lines (84 loc) · 3.65 KB
/
FarmDoctor.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Edit this!-->
<ModName>FarmDoctor</ModName>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>$(ModName)</AssemblyName>
<Description>More insights for your farming.</Description>
<Version>1.0.0</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
https://api.nuget.org/v3/index.json;
https://nuget.bepinex.dev/v3/index.json;
https://nuget.samboy.dev/v3/index.json
</RestoreAdditionalProjectSources>
<RootNamespace>$(ModName)</RootNamespace>
<OutputType>Library</OutputType>
<!-- Base paths -->
<!-- You should modify the Directory.Build.props.template -> Directory.Build.props and put a custom path there if needed. -->
<GamePath Condition="'$(GamePath)' == '' AND '$(OS)' == 'Windows_NT'">S:\Games\Steam Games\steamapps\common\Elin</GamePath>
<GamePath Condition="'$(GamePath)' == '' AND '$(OS)' != 'Windows_NT'">/home/$(USERNAME)/.steam/steam/steamapps/common/Elin</GamePath>
<!-- derived paths -->
<ManagedPath>$(GamePath)/Elin_Data/Managed</ManagedPath>
<BepInExPath>$(GamePath)/BepInEx</BepInExPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>$(ManagedPath)/Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Elin">
<HintPath>$(ManagedPath)/Elin.dll</HintPath>
</Reference>
<Reference Include="BepInEx.Core">
<HintPath>$(BepInExPath)/core/BepInEx.Core.dll</HintPath>
</Reference>
<Reference Include="BepInEx.Unity">
<HintPath>$(BepInExPath)/core/BepInEx.Unity.dll</HintPath>
</Reference>
<Reference Include="Harmony">
<HintPath>$(BepInExPath)/core/0Harmony.dll</HintPath>
</Reference>
<PackageReference Include="UnityEngine.Modules" Version="2021.3.34" IncludeAssets="compile" />
<Reference Include="Plugins.UI">
<HintPath>$(ManagedPath)/Plugins.UI.dll</HintPath>
</Reference>
<Reference Include="Plugins.BaseCore">
<HintPath>$(ManagedPath)/Plugins.BaseCore.dll</HintPath>
</Reference>
<Reference Include="Plugins.Sound">
<HintPath>$(ManagedPath)/Plugins.Sound.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<PropertyGroup>
<ModFolder>$(GamePath)/Package/$(ModName)</ModFolder>
</PropertyGroup>
<!-- Create the mod directory if it doesn't exist -->
<MakeDir Directories="$(ModFolder)" />
<!-- Copy the compiled DLL to the mod folder -->
<Copy
SourceFiles="$(TargetPath)"
DestinationFolder="$(ModFolder)"
SkipUnchangedFiles="true"
/>
<!-- Optional: You can add a message to confirm the copy -->
<Message Text="Copied $(TargetFileName) to $(ModFolder)" Importance="high" />
</Target>
<!-- Copying the important .dll file to build/, useful if you want to copy it yourself but don't want to dig through bin/...-->
<!-- <Target Name="PostBuild" AfterTargets="PostBuildEvent">
<PropertyGroup>
<BuildOutputFolder>./build/</BuildOutputFolder>
</PropertyGroup>
<MakeDir Directories="$(BuildOutputFolder)" />
<Copy
SourceFiles="$(TargetPath)"
DestinationFolder="$(BuildOutputFolder)"
SkipUnchangedFiles="true"
/>
<Message Text="Copied $(TargetFileName) to $(BuildOutputFolder)" Importance="high" />
</Target> -->
</Project>