MSBuild:bin/release 文件夹未创建

MSBuild : bin/release folder is not getting created

我正在使用以下 MSBuild 脚本编译解决方案,并且 Class 库项目 .dll 正在文件夹 obj/Release 中创建,但依赖项目 dll 在那里不可用。 Bin\Release 文件夹也没有创建。

<ItemGroup>     
    <PPTProjectToBuild Include="C:\TestProject\sln\Test.sln" />
</ItemGroup>


<MSBuild Projects="@(PPTProjectToBuild)" Properties="Configuration=Release;DebugType=None;DebugSymbols=false;OutputPath=$(PPTCompiledOutputDirPath);ReferencePath=$(ReferencePath)" ContinueOnError="ErrorAndStop"/>

您将多个属性传递给 MSBuild 任务:"Configuration=Release;DebugType=None;DebugSymbols=false;OutputPath=$(PPTCompiledOutputDirPath);ReferencePath=$(ReferencePath)"

只需从属性字符串中删除部分 "OutputPath=$(PPTCompiledOutputDirPath);",您的 dll 将被放置到每个项目配置的位置。

如果您希望将构建输出放在其他地方,只需将 "OutputPath=" 属性 值设置到适当的位置即可。