TypeScript文件VS2017中的C#错误

时间:2017-08-20 13:13:20

标签: c# angular typescript

我正在学习带有angular2的aspnetcore mvc,我按如下方式编写了我的模型:

if userurl == true
    myurl = 'xxxxxxxxx'
    $.post(do.stuff)

else
    myurl = '+++++++++'
    $.post(do.stuff)

哪个没有显示错误,应该没有错误。但是,如果我尝试构建项目,我会得到:

错误CS0116命名空间不能直接包含成员,例如字段或方法SportsStore F:\ Projects \ mvcng2 \ SportsStore \ ClientApp \ app \ models \ product.model.ts

错误CS1026)预计SportsStore F:\ Projects \ mvcng2 \ SportsStore \ ClientApp \ app \ models \ product.model.ts

错误CS1002;预计SportsStore F:\ Projects \ mvcng2 \ SportsStore \ ClientApp \ app \ models \ product.model.ts

错误CS1519类,结构或接口成员声明中的令牌','无效SportsStore F:\ Projects \ mvcng2 \ SportsStore \ ClientApp \ app \ models \ product.model.ts

0 个答案:

没有答案