相关疑难解决方法(0)

为什么有.sln,.suo和.csproj文件?

我开始使用Visual Studio 2010中,我与C#程序完成后,我看到有.sln,并.suo在项目的根目录中的文件和.csproj子目录中的文件.这些文件是为了什么?

我需要识别要放入Git存储库的文件.连同我创建的源代码/文档,我猜这三个文件是我唯一需要处理的文件.但是,我不确定我是否正在跟踪正确的文件.

添加

个人宏文件怎么样?我有Emacs键开关宏,.sln文件或.csproj文件有这个宏吗?

git visual-studio

58
推荐指数
3
解决办法
6万
查看次数

为什么我的.csproj文件在git rebase之后搞砸了?

在使用GIT进行源代码控制的.NET C#项目中,我在重新定位后不断收到格式错误的csproj文件以获取最近提交的代码.这是我的过程:

  1. 提交我的代码
  2. 构建并运行测试
  3. 重新定义为"最新"
  4. 诅咒天堂,因为csproj文件搞砸了...再次

这是rebase的输出:

D:\GitHub\AwesomeProject>git rebase master
First, rewinding head to replay your work on top of it...
Applying: added getstatus call
Using index info to reconstruct a base tree...
M       Host/Host.csproj
M       Host/packages.config
M       Trees/Trees.csproj
M       Trees/packages.config
M       UnitTests/UnitTests.csproj
<stdin>:1229: trailing whitespace.
  <!-- To modify your build process, add your task inside one of the targets bel
ow and uncomment it.
warning: 1 line adds whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging …
Run Code Online (Sandbox Code Playgroud)

.net git csproj git-rebase

14
推荐指数
1
解决办法
6558
查看次数

标签 统计

git ×2

.net ×1

csproj ×1

git-rebase ×1

visual-studio ×1