【发布时间】:2017-08-17 16:06:21
【问题描述】:
我在 Visual Studio 中正确构建了我的解决方案,但是当我使用 TFS 构建时,我遇到了几个错误,例如:
path\file.cs (8, 47)
path\file.cs(8,47): Error CS1002: ; expected
path\file.cs (8, 85)
path\file.cs(8,85): Error CS1519: Invalid token '(' in class, struct, or interface member declaration
namespace path
{
public class file : Ifile
{
public IContactService ContactService => Locator.GetService<IContactService>();
public IAddressService AddressService => Locator.GetService<IAddressService>();
}
}
谢谢你帮助我!
【问题讨论】:
-
您认为我们不需要查看 file.cs 中的代码来帮助您吗?它甚至可以在 Visual Studio 中编译吗?
-
是的,它可以在 Visual Studio 中正确编译。
-
我编辑了我的第一条消息。