我已经安装了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"]
}
}
]
}
非常感谢所有帮助。 :)