C
C#2mo ago
Memw

Targets not running

So I was testing with msbuild properties and I have a target that's supposed to show a message, but the target doesn't even run, I feel I'm missing something
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Reference Include="MemwLib">
<HintPath>..\MemwLib\bin\AnyCPU_Debug\MemwLib\net7.0\MemwLib.dll</HintPath>
</Reference>
</ItemGroup>

<Target Name="lmfao" AfterTargets="AfterBuild">
<ItemGroup>
<Message Text="Hello $(TargetDir)" Importance="High"/>
</ItemGroup>
</Target>
</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Reference Include="MemwLib">
<HintPath>..\MemwLib\bin\AnyCPU_Debug\MemwLib\net7.0\MemwLib.dll</HintPath>
</Reference>
</ItemGroup>

<Target Name="lmfao" AfterTargets="AfterBuild">
<ItemGroup>
<Message Text="Hello $(TargetDir)" Importance="High"/>
</ItemGroup>
</Target>
</Project>
The target that should run is the "lmfao" one
0 Replies
No replies yetBe the first to reply to this messageJoin