我是 MSBuild 的新手。我需要在 IIS 中创建一个虚拟目录,但我不知道如何不尝试一些教程,但它们太模糊了,所以请指导我,我的当前代码如下所示
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<PropertyGroup>
<Resource >D:\test_2\Tony_Mail\Tony_Mail\Tony_Mail.csproj</Resource>
<OutputDir>D:\test_2\Tony_Mail\Tony_Mail\Build</OutputDir>
<clean>D:\test_2\Tony_Mail\Tony_Mail\Build\bin\*.pdb</clean>
</PropertyGroup>
<Target Name="Build">
<MSBuild Projects="D:\test_2\Tony_Mail\Tony_Mail\Tony_Mail.csproj"></MSBuild>
<CallTarget Targets="Publish"></CallTarget>
</Target>
<Target Name="Publish">
<MSBuild Projects="$(Resource)" Targets="ResolveReferences;_CopyWebApplication" Properties="WebProjectOutputDir=S(OutputDir);OutDir=$(MSBuildProjectsDirectory)\Bin\"></MSBuild>
<CallTarget Targets="Clean"></CallTarget>
</Target>
<Target Name="Clean">
<Delete Files="$(clean)" />
</Target>
</Project>