Fwank79

Hi,

I posted a similar thread about this. But now that i have done more experimenting, i know exactly what to ask:

I try to do a simple recursive check in using tf.exe. However, it keeps telling me that i was unable to determine the workspace. Well, no worries, i'll just specify the workspace using the ./workspace parameter like in the checkout command but NO, the parameter does'nt seem to exist for checkin...

The funny thing is, the command works if i do not specify the /recursive parameter...

For example:

This work:

tf checkin /noprompt /override:"Overriden from MSBUILD" "C:\myfiles\*"

But not this:

tf checkin /noprompt /recursive /override:"Overriden from MSBUILD" "C:\myfiles\*"

Why

Thank you




Re: Team Foundation Server - Build Automation How can you specify the workspace in TF Checkin

eugene.z

As far as I know, tf.exe determines workspace from the mapping (or in some cases from your working directory - for example, when you do get without parameters).

So I would look into your workspace mappings - how c:\myfiles is mapped there Is the mapping such that by looking at it tf.exe may always infer workspace

Hope that helps.

Eugene






Re: Team Foundation Server - Build Automation How can you specify the workspace in TF Checkin

Fwank79

Hi Eugene,

Yes, i looked at the mapping. But the thing i don't understand is that if i do a checkout with the same path, it works, so obviously, the path is correctly mapped.

So, this works:

tf checkout /recursive /noprompt "c:\myfiles"

But this does'nt:

tf checkin /override:"reason" /resursive /noprompt "c:\myfiles"

But this will work: (without the recursive argument)

tf checkin /override:"reason" /noprompt "c:\myfiles"

I don't get it...






Re: Team Foundation Server - Build Automation How can you specify the workspace in TF Checkin

Matthew Mitrik MSFT

Hi there,

Were you ever able to get this issue resolved

Thanks,
-Matt






Re: Team Foundation Server - Build Automation How can you specify the workspace in TF Checkin

Fwank79

I haven't found an answer to this so instead of running tf checkin i have created my own custom task using c# and the Team server API.