Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 Visual Studio 属性窗口(而不是 cmd 提示)中的构建后事件在 csproj 文件中运行目标。
那可能吗?请解释一下
您可以在您的 csproj 文件中定义一个名为 AfterBuild 的目标,它将在构建过程结束时调用。您还可以添加一个 BeforeBuild 目标,该目标在核心构建操作之前被调用。