目录结构未在TFS中进行映射 [英] Directory Structure is not mapping in TFS

查看:94
本文介绍了目录结构未在TFS中进行映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在TFS之外有一个项目,我正在尝试将其包含在TFS中。  目录是"Solution1Server"; ,"Sulution1Client","MixLibraries"。

-   Solution1Server - 包含解决方案文件和使用"MixLibraries"的项目

I have a project outside TFS and I am trying to include it inside TFS.  the directory is "Solution1Server" , "Sulution1Client", "MixLibraries".
-- Solution1Server - has solution files and a project using "MixLibraries"

-   ; Sulution1Client - 包含解决方案文件和使用 "MixLibraries"的项目。并使用"Solution1Server"在构建期间也是库。

-- Sulution1Client - has solution files and a project using "MixLibraries" and using "Solution1Server" libraries too during build.

我们没有两个解决方案,但它们是链接的。在根上我们没有解决方案。在这种情况下我如何创建TFS工作区?因为工作区,项目只需要一个解决方案文件?

not we have two solutions but also they are linked. on the root we have no solution. in this case how i can create a TFS Workspace? becasue workspace, the project needs to have one solution file only?

提前感谢。

推荐答案

Hi Momin,

Hi Momin,

TFS工作区是团队代码库的本地副本,它与您的项目结构无关。检查:
https://www.visualstudio.com/en-us/ docs / tfvc / create-work-workspaces

TFS workspace is your local copy of the team’s codebase, it has nothing to do with your project structure. Check: https://www.visualstudio.com/en-us/docs/tfvc/create-work-workspaces

但对于您的项目结构,我们有一些建议。不建议在解决方案根目录或引用输出程序集之外的参考项目。此外,不建议将程序集签入TFS。建议将项目引用
或创建Nuget包,使用Nuget进行包管理。

But for your project structure, we have some suggestions. It's not suggested reference projects outside your solution root, or reference output assemblies. Also, it's not suggested check in assemblies to TFS. It's suggested make a project reference or create a Nuget package, use Nuget for package management.

在您的情况下,您可以为"MixLibraries"创建Nuget包。和"Solution1Server"通过这种方式,您可以只使用一个解决方案"Sulution1Client"。

In your case, you can create Nuget packages for "MixLibraries" and "Solution1Server" libraries, in this way, you can use just one solution "Sulution1Client".

关于如何创建Nuget包,您可以参考以下链接:

About how to create a Nuget package, you can refer to the link below:

https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package

致敬,


这篇关于目录结构未在TFS中进行映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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