c# - MSBuild : bin/release folder is not getting created

标签 c# visual-studio-2013 msbuild

我正在使用下面的 MSBuild 脚本编译解决方案,并且类库项目 .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=”属性值设置为适当的位置即可。

关于c# - MSBuild : bin/release folder is not getting created,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49747450/

相关文章:

asp.net - 如何在 ASP.NET 中自定义发布?

c# - 通过 visual studio 运行的 UI 外观与安装的应用程序不同

c# - 我怎样才能使 jCarousel 的宽度为 100% 而不是指定 px?

javascript - 如何从asp.cs方法中获取javascript中的数据

c# - 在策略设计模式的情况下,Hangfire 服务器无法选择工作

c++ - 当我在用空 throw() 说明符指定的函数中抛出异常时,为什么不调用 std::unexpected()?

c# - 如何在 "visual studio 2013"中创建由其他库项目组成的统一 c# 库项目

msbuild - 如何根据 MSBuild 中的用户输入进行分支?

c# - 需要在命令行上 msbuild 低版本的 C# 项目,没有 Visual Studio

c# - 如何按数字样式对字符串数组进行排序?