Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoked-Fish committed May 25, 2024
1 parent c725585 commit 0793a13
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions AnythingAnywhere.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<DefineConstants>EnableCommonPatches</DefineConstants>
<EnableCommonPatches>true</EnableCommonPatches>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<Version>1.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand All @@ -19,21 +20,14 @@
<None Remove="LICENSE" />
<None Remove="README.md" />
<None Remove="images\**" />
<Compile Remove="Framework\Common\CommonTasks.dll" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Pathoschild.Stardew.ModBuildConfig" Version="4.1.1" />
</ItemGroup>

<UsingTask TaskName="ReadManifestTask" AssemblyFile="Framework\Common\CommonTasks.dll" />

<Target Name="ReadManifest" AfterTargets="Build">
<ReadManifestTask ManifestPath="$(MSBuildProjectDirectory)\manifest.json">
<Output TaskParameter="Version" PropertyName="ManifestVersion" />
</ReadManifestTask>

<Message Text="Version extracted from manifest.json: $(ManifestVersion)" />
<Target Name="PrepareForGithubWorkflow" AfterTargets="Build" Condition="$(Configuration)=='Release'">
<WriteLinesToFile File="$(OutputPath)\version.txt" Lines="$(Version)" Overwrite="true" />
</Target>

</Project>

0 comments on commit 0793a13

Please sign in to comment.