解决方案文件,XML文件或两者? [英] Solution File, XML File or Both?

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

问题描述

我有一个.sln文件,但它不会作为解决方案文件加载到VS.内容如下。有人可以告诉我这是一个解决方案文件,XML文件还是两者?代码是解决方案文件XML吗?试图弄清楚为什么这个文件不会作为
解决方案文件加载。

I have an .sln file but it will not load into VS as a solution file. The contents is listed below. Can some one tell me if this a solution file , XML file or Both? Is the code to a solution file XML? Trying to figure out why this file will not load as a solution file.

     。

     .

     。

     .

      ......更多代码

     ...... more code

     。

     .

     。

     .

推荐答案

朋友,

它是.csproj文件,其中包含项目中的文件列表,以及对系统程序集的引用等。

It’s the .csproj file which contains the list of files in your project, plus the references to system assemblies,etc.

有很多设置 - Visual Studio版本,项目类型,程序集名称,应用程序图标,目标文化,安装URL,...

There are a whole bunch of settings - Visual Studio version, project type, Assembly name, Application Icon, Target Culture, Installation Url, ...

构建项目所需的一切。虽然你可以假设你需要当前文件夹中的所有内容,但是有一个明确的列表允许你在磁盘和项目中逻辑地组织它们,这样你就可以更容易地找到你想要的文件。

Everything you need to build your project. While you could assume that you need everything in the current folder, having an explicit list allows you to organize them logically both on the disk and in the project so you can more easily find the files you want.

它只是XML,所以你可以在记事本等文本编辑器中打开它。

It's just XML so you can open it in text editor like Notepad.

你得到一个.csproj文件,每个程序集和.sln(解决方案文件)联系在一起构成项目的所有程序集。

You get one .csproj file per assembly and the .sln (solution file) ties together all the assemblies that make up your project.

祝你好运,

Fletch


这篇关于解决方案文件,XML文件或两者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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