Cleaning a bit the MsBuild task

This commit is contained in:
Julien Richard 2022-10-31 17:46:21 +01:00
commit e9eabf966c
2 changed files with 6 additions and 5 deletions

View file

@ -3,7 +3,10 @@
<DefineConstants>$(DefineConstants);GREENSHOT_BUILDTASKS</DefineConstants> <DefineConstants>$(DefineConstants);GREENSHOT_BUILDTASKS</DefineConstants>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Build.Utilities.Core" version="17.3.2" /> <PackageReference Include="Microsoft.Build.Utilities.Core" version="17.3.2">
<PrivateAssets>all</PrivateAssets>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="SixLabors.ImageSharp.Drawing" version="1.0.0-beta15" /> <PackageReference Include="SixLabors.ImageSharp.Drawing" version="1.0.0-beta15" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -11,7 +14,4 @@
<Link>Emojis.cs</Link> <Link>Emojis.cs</Link>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<Target Name="CleanupBuildAssemblies" AfterTargets="AfterBuild">
<Exec Command="del $(TargetDir)\Microsoft.Build.*.dll" />
</Target>
</Project> </Project>

View file

@ -33,6 +33,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Greenshot.Base\Greenshot.Base.csproj" /> <ProjectReference Include="..\Greenshot.Base\Greenshot.Base.csproj" />
<ProjectReference Include="..\Greenshot.Editor\Greenshot.Editor.csproj" /> <ProjectReference Include="..\Greenshot.Editor\Greenshot.Editor.csproj" />
<ProjectReference Include="..\Greenshot.BuildTasks\Greenshot.BuildTasks.csproj" ReferenceOutputAssembly="false" />
<FilesToHash Include="$(SolutionDir)$(SolutionName)\$(OutDir)\*" /> <FilesToHash Include="$(SolutionDir)$(SolutionName)\$(OutDir)\*" />
</ItemGroup> </ItemGroup>
@ -65,7 +66,7 @@
</Task> </Task>
</UsingTask> </UsingTask>
<UsingTask TaskName="EmojiDataTask" TaskFactory="TaskHostFactory" AssemblyFile="..\Greenshot.BuildTasks\bin\Debug\net472\Greenshot.BuildTasks.dll" /> <UsingTask TaskName="EmojiDataTask" TaskFactory="TaskHostFactory" AssemblyFile="..\Greenshot.BuildTasks\bin\$(Configuration)\$(TargetFramework)\Greenshot.BuildTasks.dll" />
<Target Name="GenerateEmojiTestTxtFile" BeforeTargets="BeforeBuild"> <Target Name="GenerateEmojiTestTxtFile" BeforeTargets="BeforeBuild">
<EmojiDataTask EmojiTestTxtFile="..\Greenshot.Editor\Controls\Emoji\emoji-test.txt" OutputFilename="$(SolutionDir)$(SolutionName)\$(OutDir)\emojis.xml" /> <EmojiDataTask EmojiTestTxtFile="..\Greenshot.Editor\Controls\Emoji\emoji-test.txt" OutputFilename="$(SolutionDir)$(SolutionName)\$(OutDir)\emojis.xml" />