Skip to content

Commit

Permalink
Update build system, use properties to find build output location
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooshua committed Aug 20, 2023
1 parent 60c30b8 commit 5c1ada3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<BitModDev Condition=" '$(BitModDev)' == '' " >$(MSBuildThisFileDirectory)\dev</BitModDev>

<!--Ditto for publishes-->
<BitModBuild Condition=" '$(BitModDev)' == '' " >$(MSBuildThisFileDirectory)\dev</BitModBuild>
<BitModBuild Condition=" '$(BitModBuild)' == '' " >$(MSBuildThisFileDirectory)\build</BitModBuild>
</PropertyGroup>

<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions builtin/BitMod.Commands/BitMod.Commands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>

<OutDir>../../dev/plugins/$(AssemblyName)/</OutDir>
<PublishDir>../../build/plugins/$(AssemblyName)</PublishDir>
<OutDir>$(BitModDev)/plugins/$(AssemblyName)/</OutDir>
<PublishDir>$(BitModBuild)/plugins/$(AssemblyName)/</PublishDir>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions builtin/BitMod.Flags/BitMod.Flags.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>

<OutDir>../../dev/plugins/$(AssemblyName)/</OutDir>
<PublishDir>../../build/plugins/$(AssemblyName)</PublishDir>
<OutDir>$(BitModDev)/plugins/$(AssemblyName)/</OutDir>
<PublishDir>$(BitModBuild)/plugins/$(AssemblyName)/</PublishDir>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions builtin/BitMod.Moderation/BitMod.Moderation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<Nullable>enable</Nullable>
<AssemblyName>bitmod_moderation</AssemblyName>

<OutDir>../../dev/plugins/$(AssemblyName)/</OutDir>
<PublishDir>../../build/plugins/$(AssemblyName)</PublishDir>
<OutDir>$(BitModDev)/plugins/$(AssemblyName)/</OutDir>
<PublishDir>$(BitModBuild)/plugins/$(AssemblyName)/</PublishDir>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions builtin/BitMod.Provision/BitMod.Provision.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<AssemblyName>bitmod_provision</AssemblyName>

<OutDir>../../dev/plugins/$(AssemblyName)/</OutDir>
<PublishDir>../../build/plugins/$(AssemblyName)</PublishDir>
<OutDir>$(BitModDev)/plugins/$(AssemblyName)/</OutDir>
<PublishDir>$(BitModBuild)/plugins/$(AssemblyName)/</PublishDir>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions builtin/BitMod.Whitelist/BitMod.Whitelist.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>

<OutDir>../../dev/plugins/$(AssemblyName)/</OutDir>
<PublishDir>../../build/plugins/$(AssemblyName)</PublishDir>
<OutDir>$(BitModDev)/plugins/$(AssemblyName)/</OutDir>
<PublishDir>$(BitModBuild)/plugins/$(AssemblyName)/</PublishDir>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>

<OutDir>$(BitModDev)/plugins/$(AssemblyName)/</OutDir>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions standalone/BitMod.Launcher/BitMod.Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>

<PublishDir>../../build</PublishDir>
<OutDir>../../dev</OutDir>
<PublishDir>$(BitModBuild)</PublishDir>
<OutDir>$(BitModDev)</OutDir>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down

0 comments on commit 5c1ada3

Please sign in to comment.