【问题标题】:TFS Build: System.IO.FileNotFoundException: Could not find fileTFS 构建:System.IO.FileNotFoundException:找不到文件
【发布时间】:2019-07-01 02:29:02
【问题描述】:

我们遇到了一个问题,开发人员在我们的 Visual Studio SSIS 项目中重命名和删除文件。收到此错误:

System.IO.FileNotFoundException: Could not find file '..SSISPackage.dtsx'

2019-02-07T02:29:05.5297338Z    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2019-02-07T02:29:05.5297338Z    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
2019-02-07T02:29:05.5297338Z    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
2019-02-07T02:29:05.5297338Z    at Microsoft.DataTransformationServices.Design.Project.IDEProjectStorage.LoadStream(String streamName)
2019-02-07T02:29:05.5297338Z    at Microsoft.SqlServer.Dts.Runtime.Project.LoadStreamToEnd(IProjectStorage storage, String streamName)
2019-02-07T02:29:05.5297338Z    at Microsoft.SqlServer.Dts.Runtime.Project.LoadPackage(IProjectStorage storage, Package package, String streamName, IDTSEvents events)
2019-02-07T02:29:05.5297338Z    at Microsoft.SqlServer.Dts.Runtime.PackageItem.Load(IDTSEvents events)
2019-02-07T02:29:05.5297338Z    at Microsoft.SqlServer.Dts.Runtime.PackageItem.get_Package()
2019-02-07T02:29:05.5297338Z    at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.IncrementalBuildThroughObj(IOutputWindow outputWindow)
2019-02-07T02:29:05.5297338Z    at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.BuildIncremental(IOutputWindow outputWindow)

我们去了 Visual Studio 和清洁解决方案。 --> 清理文件并重建解决方案。我们尝试了几次,但都没有成功,所以我关闭并重新启动了桌面上的 Visual Studio,并为几个开发人员服务。问题和错误消失了。

现在我们在 TFS 2015 服务器上遇到了同样的问题。我尝试清理解决方案并删除 TFS 任务中的工作区文件。这是行不通的。在 TFS 上“重新启动”这个相当于什么,或者我如何清除内存缓存?我们最后的选择是重启服务器,必须是更好的方法。

【问题讨论】:

    标签: sql-server tfs ssis devops tfs-2015


    【解决方案1】:

    创建一个模板空假文件来替换丢失的文件并完成您的签到。签入文件后,它应该正确构建。然后删除不需要的文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-11
      • 2021-09-23
      • 1970-01-01
      • 2022-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多