我看过其他帖子并在 stackoverflow 上阅读它们 -如何忽略 TFS 中的文件/目录以避免它们进入中央源存储库?
然而这似乎不起作用。
我有一个名为 /FS 的根文件夹,在该目录中我有以下 .tfignore
################################################################################
# This .tfignore file was automatically created by Microsoft(R) Visual Studio.
#
# Local items matching filespecs in this file will not be added to version
# control. This file can be checked in to share exclusions with others.
#
# Wildcard characters are * and ?. Patterns are matched recursively unless the
# pattern is prefixed by the \ character.
#
# You can prepend a …Run Code Online (Sandbox Code Playgroud) 我在使用 LINQ 查询时遇到问题 -
Dim otherRecords As List(Of Objects) = listOf.Where(Function(x) x.ID_NUM = newID _
And (x.Codes.Contains(ddlPrimaryCode.SelectedItem.Text.Trim) And Not x.Codes = Nothing)).ToList()
Run Code Online (Sandbox Code Playgroud)
错误'System.NullReferenceException' 类型的异常发生在 CI.dll 中,但未在用户代码中处理
附加信息:未将对象引用设置为对象的实例。
问题是listOf包含x.Codes.Contains的值“Nothing”。
在我有之前
Dim otherRecords As List(Of Objects) = listOf.Where(Function(x) x.ID_NUM = newID _
And (x.Codes.Contains(ddlPrimaryCode.SelectedItem.Text.Trim)).ToList()
Run Code Online (Sandbox Code Playgroud)
它正在崩溃。
我只需要能够返回具有匹配 ID_NUM 和代码的记录。