什么是文件的.csproj办? [英] What does the .csproj file do?

查看:132
本文介绍了什么是文件的.csproj办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常C#项目都有一个与之关联的.csproj的文件。什么该文件是什么?它包含哪些数据?

Usually a C# project has a .csproj file associated with it. What is that file for? What data does it contain?

推荐答案

基本上.csproj的文件包含在你的项目文件,以及系统组件等的参考文献列表。

Basically the .csproj file 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 organise 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 your favourite text editor and take a look.

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

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

这篇关于什么是文件的.csproj办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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