Can';t在ST2中构建C#

Can';t在ST2中构建C#,c#,compiler-construction,sublimetext2,building,C#,Compiler Construction,Sublimetext2,Building,我已经安装了Sublime Text 2,我希望将其与C#结合使用,但由于某些原因,我无法构建代码。我得到的错误是: Project "D:\PannariBranch\Dropbox\dev\build.cs" on node 1 (default targets). D:\PannariBranch\Dropbox\dev\build.cs(1,1): error MSB4025: The project file could not be loaded. Data at the root

我已经安装了Sublime Text 2,我希望将其与C#结合使用,但由于某些原因,我无法构建代码。我得到的错误是:

Project "D:\PannariBranch\Dropbox\dev\build.cs" on node 1 (default targets).
D:\PannariBranch\Dropbox\dev\build.cs(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
Done Building Project "D:\PannariBranch\Dropbox\dev\build.cs" (default targets) -- FAILED.

Build FAILED.

"D:\PannariBranch\Dropbox\dev\build.cs" (default target) (1) ->
 D:\PannariBranch\Dropbox\dev\build.cs(1,1): error MSB4025: The project file could not be    loaded. Data at the root level is invalid. Line 1, position 1.

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.03
[Finished in 0.8s with exit code 1]
这是我的构建配置:

{
"cmd": ["msbuild", "$file"],
"working_dir": "${file_path:${folder}}",
"file_regex": "^\\s*(.+?)\\(([0-9]+),?([0-9]+)?\\):\\s*(.*) \\[",
"shell": true,
"selector": "source.msbuild",
"windows":
{
    "path": "%PATH%;%WINDIR%\\Microsoft.NET\\Framework\\v4.0.30319;%WINDIR%\\Microsoft.NET\\Framework\\v3.5;%WINDIR%\\Microsoft.NET\\Framework\\v2.0.50727"
},
"linux":
{
    "cmd": ["xbuild $file"]
},
"variants": [
    {
        "cmd": ["msbuild", "/m", "$file"],
        "file_regex": "^\\s*\\d*>?\\s*(.+?)\\(([0-9]+),?([0-9]+)?\\):\\s*(.*) \\[",
        "name": "Parallel Build",
        "linux":
        {
            "cmd": ["xbuild /m $file"]
        }
    },
    {
        "cmd": ["msbuild", "$file", "/p:Configuration=Debug"],
        "name": "Debug Configuration",
        "linux":
        {
            "cmd": ["xbuild $file /p:Configuration=Debug"]
        }
    },
    {
        "cmd": ["msbuild", "$file", "/p:Configuration=Release"],
        "name": "Release Configuration",
        "linux":
        {
            "cmd": ["xbuild $file /p:Configuration=Release"]
        }
    }
]
}

非常感谢您的帮助。:)

在我看来,您正在尝试构建一个.cs文件,而不是一个C#项目(.csproj)或解决方案(.sln)。因此,我应该在尝试构建它之前创建一个项目吗?对不起,我对C#完全是新手,我从C#开始。我建议从Microsoft获得免费的Visual Studio工具开始。至少您可以使用VS创建项目结构,然后根据需要在ST中编辑所有内容;我相信它应该是免费的。