生成后步骤未执行

时间:2018-10-25 19:27:34

标签: visual-studio-code .net-core csproj

我正在尝试运行一个后构建步骤,该步骤在我的项目编译后执行。我希望它可以在调试和发布模式下运行。我还尝试过使用AfterCompileAfterTargets中的CompileBuild,但无法执行。

为什么这行不通?根据文档,应该如此。

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <RuntimeIdentifiers>win-x64;osx-x64;linuxx64</RuntimeIdentifiers>
  </PropertyGroup>

  <Target Name="AfterBuild">
    <Message Importance="High" Text="AfterBuild"></Message>
  </Target>
</Project>

0 个答案:

没有答案
相关问题