I'm trying to use the VssGet task of the MSBuild Community Tasks, and the error message "File or project not found" is beating me with a stick. I can't figure out what in particular the error message is referring to. Here's the task:
我正在尝试使用MSBuild社区任务的VssGet任务,并且错误消息“文件或项目未找到”正在用棍子击败我。我无法弄清楚错误消息所指的是什么。这是任务:
<LocalFilePath Include="C:\Documents and Settings\michaelc\My Documents\Visual Studio 2005\Projects\Astronom\Astronom.sln" />
<VssGet DatabasePath="\\ofmapoly003\Individual\michaelc\VSS\Astronom_VSS\srcsafe.ini"
Path="$/Astronom_VSS"
LocalPath="@(LocalFilePath)"
UserName="build" Password="build"
Recursive="True" />
If I write a Streamreader to read to either the database path or the local path, it succeeds fine. So the path to everything appears to be accessible. Any ideas?
如果我写一个Streamreader来读取数据库路径或本地路径,它就可以成功。因此,通向一切的道路似乎是可以访问的。有任何想法吗?
3 个解决方案
#1
2
Two thoughts. One, sometimes a type load exception manifests as a FNF - let's hope that's not it. But if the code is actually being honest, you can track the problem using Procmon or Filemon. Start one of those utilities and then run your task again. You should be able to track down a record of a file that couldn't be located.
两个想法。一个,有时类型加载例外表现为FNF - 让我们希望不是它。但如果代码实际上是诚实的,您可以使用Procmon或Filemon跟踪问题。启动其中一个实用程序,然后再次运行您的任务。您应该能够追踪无法找到的文件的记录。
#2
0
@famoushamsandwich that's a great response -- I had not previously heard of procmon or filemon. Tried procmon on the problem, but even after sifting through the relevant output (my gosh the machine does a lot more stuff behind the screen than I was aware of) I couldn't find where a file I'm referencing wasn't being found.
@famoushamsandwich这是一个很好的回应 - 我以前没有听说过procmon或filemon。试图解决这个问题,但即使在筛选出相关的输出后(我的天哪,机器在屏幕后面做了比我所知的更多的东西)我找不到我引用的文件在哪里找不到。
#3
0
Procmon and Filemon are good suggestions - just make sure you filter the results to only show errors. Otherwise the success messages will bury the problem entries. Also, you can filter out processes that are not at fault (either through the filter dialog or by right-clicking the entry and choosing "Exclude Process".)
Procmon和Filemon是很好的建议 - 只需确保过滤结果只显示错误。否则,成功消息将掩盖问题条目。此外,您可以筛选出无故障的进程(通过筛选器对话框或右键单击该条目并选择“排除进程”。)
A couple other thoughts:
还有其他一些想法:
- In the LocalFilePath, you are specifying a single file as opposed to a folder. The task, on the other hand, specifies to get files recursively. Perhaps you need to remove "\Astronom.sln" from the LocalFilePath?
- Is the build task being run under your account or another? It's possible you have a permissions issue
- Do you already have a copy of the code pulled down in the same location? Perhaps there is a failure to overwrite an existing file/folder?
在LocalFilePath中,您指定的是单个文件而不是文件夹。另一方面,该任务指定递归地获取文件。也许您需要从LocalFilePath中删除“\ Astronom.sln”?
构建任务是在您的帐户下运行还是其他?您可能有权限问题
您是否已在同一位置下载了代码副本?也许无法覆盖现有的文件/文件夹?
#1
2
Two thoughts. One, sometimes a type load exception manifests as a FNF - let's hope that's not it. But if the code is actually being honest, you can track the problem using Procmon or Filemon. Start one of those utilities and then run your task again. You should be able to track down a record of a file that couldn't be located.
两个想法。一个,有时类型加载例外表现为FNF - 让我们希望不是它。但如果代码实际上是诚实的,您可以使用Procmon或Filemon跟踪问题。启动其中一个实用程序,然后再次运行您的任务。您应该能够追踪无法找到的文件的记录。
#2
0
@famoushamsandwich that's a great response -- I had not previously heard of procmon or filemon. Tried procmon on the problem, but even after sifting through the relevant output (my gosh the machine does a lot more stuff behind the screen than I was aware of) I couldn't find where a file I'm referencing wasn't being found.
@famoushamsandwich这是一个很好的回应 - 我以前没有听说过procmon或filemon。试图解决这个问题,但即使在筛选出相关的输出后(我的天哪,机器在屏幕后面做了比我所知的更多的东西)我找不到我引用的文件在哪里找不到。
#3
0
Procmon and Filemon are good suggestions - just make sure you filter the results to only show errors. Otherwise the success messages will bury the problem entries. Also, you can filter out processes that are not at fault (either through the filter dialog or by right-clicking the entry and choosing "Exclude Process".)
Procmon和Filemon是很好的建议 - 只需确保过滤结果只显示错误。否则,成功消息将掩盖问题条目。此外,您可以筛选出无故障的进程(通过筛选器对话框或右键单击该条目并选择“排除进程”。)
A couple other thoughts:
还有其他一些想法:
- In the LocalFilePath, you are specifying a single file as opposed to a folder. The task, on the other hand, specifies to get files recursively. Perhaps you need to remove "\Astronom.sln" from the LocalFilePath?
- Is the build task being run under your account or another? It's possible you have a permissions issue
- Do you already have a copy of the code pulled down in the same location? Perhaps there is a failure to overwrite an existing file/folder?
在LocalFilePath中,您指定的是单个文件而不是文件夹。另一方面,该任务指定递归地获取文件。也许您需要从LocalFilePath中删除“\ Astronom.sln”?
构建任务是在您的帐户下运行还是其他?您可能有权限问题
您是否已在同一位置下载了代码副本?也许无法覆盖现有的文件/文件夹?