有解决方案提取工具吗? [英] Is there a solution extraction tool?

查看:99
本文介绍了有解决方案提取工具吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个解决方案提取工具可以解决所有项目的开发代码(即C#,XAML,HTML ...)和支持库(即NuGets)并且没有全部临时文件和二进制文件到一组不​​同的文件夹
如果需要可以重新构建?

Is there a solution extraction tool that can take a solution with all of its projects with development code (i.e. C#, XAML, HTML...) and supporting libraries (i.e. NuGets) and without all the temporary files and binaries to a different set of folders which could be re-built if necessary?

推荐答案

方法会要为解决方案的每个项目设置输出文件夹(bin)和中间文件夹(obj)在源文件夹的同一级别:

An approach would be to set for each project of the solution the Output folder (bin) and Intermediate Folder (obj) at the same level of the source folder:

- 解决方案文件夹

- Solution folder

---"来源"文件夹

--- "Source" folder

---" Bin"文件夹

--- "Bin" folder

---" Obj"文件夹

--- "Obj" folder

其中"来源"文件夹包含.sln文件和"packages"文件夹。 NuGet的文件夹。然后你可以复制解决方案>源文件夹到某处并重新构建。

Where the "Source" folder contains the .sln file and the "packages" folder for NuGet. Then you can copy the Solution > Source folder to somewhere and build again.

要在项目属性中为每个配置/平台(调试,发布等)设置项目的输出(Bin)文件夹,使用.. \..\ ..直到达到所需的文件夹级别。

To set the Output (Bin) folder of a project is done in the Project properties for each configuration/platform (Debug, Release, etc.), using ..\..\.. until you reach the desired folder level.

要为项目设置Intermediate(Obj)文件夹,需要手动编辑.csproj文件并为每个Configuration / Platform添加IntermediateOutputPath属性。

To set the Intermediate (Obj) folder for a project requires to edit the .csproj file by hand and add the IntermediateOutputPath property for each Configuration/Platform.

示例:

  <PropertyGroup Condition=" '


(配置)|


(平台)'=='Debug | AnyCPU'">
< OutputPath> .. \..\Bin \Debug \< / OutputPath>
< IntermediateOutputPath> .. \..\Obj \
(Platform)' == 'Debug|AnyCPU' "> <OutputPath>..\..\Bin\Debug\</OutputPath> <IntermediateOutputPath>..\..\Obj\


这篇关于有解决方案提取工具吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆