在新的 Visual Studio 2017 项目格式中设置 OutputPath 会自动在路径中添加目标框架.例如,如果我在项目文件中设置了这些:
Setting OutputPath in the new Visual Studio 2017 project format automatically adds the target framework in the path. For example, if I have these set in the project file:
<TargetFramework>net462</TargetFramework>
<OutputPath>/build/debug/<OutputPath>
实际的输出文件夹将解析为 /build/debug/net462/,而不是像旧版本中的 /build/debug/.如果没有使用构建后操作移动东西等变通方法,我该如何解决这个问题?
The actual output folder will resolve to /build/debug/net462/, not /build/debug/ like in the older versions.
How do I solve this without workarounds like moving things around with post build actions?
解决方案是使用 AppendTargetFrameworkToOutputPath https://www.tabsoverspaces.com/233608-stopping-msbuild-appending-targetframework-to-outputpath/
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
这篇关于如何在 Visual Studio 2017 项目(新的 .csproj 文件格式)中设置“OutputPath",而目标框架不会弄乱解析的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
是否有执行 Excel NORMINV 函数的 C# 库?Is there a C# library that will perform the Excel NORMINV function?(是否有执行 Excel NORMINV 函数的 C# 库?)
从 C# 中的加权列表中选择 x 个随机元素(无需替换Select x random elements from a weighted list in C# (without replacement)(从 C# 中的加权列表中选择 x 个随机元素(无需替换))
给定轮班列表,创建时间表的摘要描述Create a summary description of a schedule given a list of shifts(给定轮班列表,创建时间表的摘要描述)
C# 普通随机数C# Normal Random Number(C# 普通随机数)
通用列表的标准偏差?Standard deviation of generic list?(通用列表的标准偏差?)
AsyncCTP:创建一个 IAwaitable 的类AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:创建一个 IAwaitable 的类)