-
Notifications
You must be signed in to change notification settings - Fork 2
/
Bullseye.csproj
102 lines (97 loc) · 4.28 KB
/
Bullseye.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
97
98
99
100
101
102
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyTitle>Bullseye</AssemblyTitle>
<Authors>TeacupAngel</Authors>
<Version>2.5.2</Version>
<Description>A vanilla-friendly rebalance and overhaul of ranged weapons.</Description>
<RepositoryUrl>https://github.com/TeacupAngel/VSBullseye</RepositoryUrl>
<TargetFramework>net7.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<ModId>bullseye</ModId>
<VSVersion>1.19.3</VSVersion>
<ModWebsite>https://mods.vintagestory.at/bullseye</ModWebsite>
</PropertyGroup>
<ItemGroup>
<ModInfoAuthors Include='TeacupAngel'/>
</ItemGroup>
<ItemGroup>
<Dependencies Include='game'>
<Version>$(VSVersion)</Version>
</Dependencies>
<Dependencies Include='survival'>
<Version>$(VSVersion)</Version>
</Dependencies>
</ItemGroup>
<ItemGroup>
<Reference Include="VintagestoryAPI">
<HintPath>$(VINTAGE_STORY)/VintagestoryAPI.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="VSEssentials">
<HintPath>$(VINTAGE_STORY)/Mods/VSEssentials.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="VSSurvivalMod">
<HintPath>$(VINTAGE_STORY)/Mods/VSSurvivalMod.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="VintagestoryLib">
<HintPath>$(VINTAGE_STORY)/VintagestoryLib.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Cairo">
<HintPath>$(VINTAGE_STORY)/Lib/cairo-sharp.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="protobuf-net">
<HintPath>$(VINTAGE_STORY)/Lib/protobuf-net.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="0Harmony">
<HintPath>$(VINTAGE_STORY)/Lib/0Harmony.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(VINTAGE_STORY)/Lib/Newtonsoft.Json.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
<PropertyGroup>
<DebugType>portable</DebugType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<AnalysisMode>Minimum</AnalysisMode>
</PropertyGroup>
<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);Launcher/**</DefaultItemExcludes>
</PropertyGroup>
<Target Name="BaseTarget">
<PropertyGroup>
<ModInfo>
{
"type": "code",
"name": "$(AssemblyTitle)",
"modid": "$(ModId)",
"version": "$(Version)",
"description": "$(Description)",
"website": "$(ModWebsite)",
"authors": [ @(ModInfoAuthors->'"%(Identity)"', ', ') ],
"dependencies": {
@(Dependencies->'"%(Identity)": "%(Version)"', ', ')
}
}
</ModInfo>
</PropertyGroup>
<WriteLinesToFile File="$(MSBuildProjectDirectory)/resources/modinfo.json" Lines="$(ModInfo)" Overwrite="true" WriteOnlyWhenDifferent="true" />
<Copy SourceFiles="$(MSBuildProjectDirectory)/resources/modinfo.json" DestinationFolder="$(MSBuildProjectDirectory)/resources" SkipUnchangedFiles="true"/>
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(MSBuildProjectDirectory)/resources/" SkipUnchangedFiles="true"/>
<Copy SourceFiles="$(TargetDir)/$(TargetName).pdb" DestinationFolder="$(MSBuildProjectDirectory)/resources" SkipUnchangedFiles="true"/>
</Target>
<Target Name="DebugTarget" AfterTargets="PostBuildEvent" DependsOnTargets="BaseTarget" Condition="'$(ReleasePack)' == ''"></Target>
<Target Name="ReleaseTarget" AfterTargets="PostBuildEvent" DependsOnTargets="BaseTarget" Condition="'$(ReleasePack)' == 1">
<MakeDir Directories="$(MSBuildProjectDirectory)/release/$(Version)" />
<ZipDirectory SourceDirectory="$(MSBuildProjectDirectory)/resources" DestinationFile="$(MSBuildProjectDirectory)/release/$(Version)/$(TargetName)_$(Version)$(ReleasePackName).zip" Overwrite="true" />
</Target>
</Project>