rimworld-blax-slaves/Tools/WorkshopUpload/WorkshopUpload.csproj

34 lines
1.4 KiB
XML
Raw Normal View History

<Project Sdk="Microsoft.NET.Sdk">
<!--
Command-line Steam Workshop updater for RimWorld mods. It uses the Steamworks.NET build and the
steam_api64.dll that ship with RimWorld 1.7, and attaches to the running Steam client as app 294100.
Run it through Tools\workshop-upload.ps1.
-->
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>latest</LangVersion>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<RimWorldDir Condition="'$(RimWorldDir)' == ''">E:\SteamLibrary\steamapps\common\RimWorld</RimWorldDir>
</PropertyGroup>
<ItemGroup>
<Reference Include="com.rlabrecque.steamworks.net">
<HintPath>$(RimWorldDir)\com.rlabrecque.steamworks.net.dll</HintPath>
<Private>true</Private>
</Reference>
<None Include="$(RimWorldDir)\steam_api64.dll" Link="steam_api64.dll" CopyToOutputDirectory="PreserveNewest" Visible="false" />
</ItemGroup>
<!-- SteamAPI.Init reads the app id from steam_appid.txt in the working directory. -->
<Target Name="WriteSteamAppId" AfterTargets="Build">
<WriteLinesToFile File="$(OutDir)steam_appid.txt" Lines="294100" Overwrite="true" />
</Target>
</Project>