作者:用户ll08sq9y2x | 来源:互联网 | 2023-02-05 17:47
如何解决《如何在VisualStudio2017项目(新的.csproj文件格式)中设置`OutputPath`属性,而不会使目标框架混乱已解析的路径?》经验,为你挑选了2个好方法。
设置OutputPath
在新的Visual Studio 2017年项目格式会自动添加路径目标框架.例如,如果我在项目文件中设置了这些:
net462
/build/debug/
实际的输出文件夹将解析为/build/debug/net462/
,而不是/build/debug/
旧版本.如何在没有变通方法的情况下解决这个问题,例如使用后期构建操作来移动事物?
1> aksu..:
解决方案是使用AppendTargetFrameworkToOutputPath
https://www.tabsoverspaces.com/233608-stopping-msbuild-appending-targetframework-to-outputpath/
false
删除运行时标识符:`
false AppendTargetFrameworkToOutputPath>`` false AppendRuntimeIdentifierToOutputPath>
2> Jon..:
上面的答案是正确的,但您可能还想删除运行时标识符:
false
false