如何使用 Visual Studio(可能是 MsBuild)在特定目标目录中获取构建输出
How to get the build output in a specific target directory using Visual Studio (maybe MsBuild)
使用包含项目文件的 .NET 项目编译 class 库
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>C:\aaa</OutputPath>
</PropertyGroup>
中的集会结果
c:\aaa\net48
我直接需要它们
c:\aaa
实现该目标最实用的方法是什么?
我尝试使用
将配置设置为空值
<Configuration></Configuration>
但这没有效果。
尝试使用OutDir
属性覆盖路径
使用这个:
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutDir>C:\aaa\</OutDir>
</PropertyGroup>
使用包含项目文件的 .NET 项目编译 class 库
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>C:\aaa</OutputPath>
</PropertyGroup>
中的集会结果
c:\aaa\net48
我直接需要它们
c:\aaa
实现该目标最实用的方法是什么?
我尝试使用
将配置设置为空值<Configuration></Configuration>
但这没有效果。
尝试使用OutDir
属性覆盖路径
使用这个:
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutDir>C:\aaa\</OutDir>
</PropertyGroup>