Jump to content

Tfs Build Definition Experts


Recommended Posts

Posted

Hi,

Here's my scenario -

I have a common project "My.DataContracts", this project is used by 2 solutions ("Student.Service" and "Emp.Service").

I have added the project to these solutions using add existing project. So i will see this common project in both the solutions.

Now i have created 2 separate build definitions for "Student.Service" and "Emp.Service".

I have created the builds to be triggered when there is any change on either of the solutions.

On build server the source code is dropped on 2 separate folders.

My problem is first build gets success and the second one is failing for the below reason:

CSC: Unexpected error creating debug information file 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB' -- 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB: The process cannot access the file because it is being used by another process.

 

I tried several things:

  1. I tried to give some time and triggered manually the second build, but still the same error.
  2. After giving lot of hits, i got it success. But cant use this option always.

Could you please help me in resolving the issue.

Posted

 

Hi,

Here's my scenario -

I have a common project "My.DataContracts", this project is used by 2 solutions ("Student.Service" and "Emp.Service").

I have added the project to these solutions using add existing project. So i will see this common project in both the solutions.

Now i have created 2 separate build definitions for "Student.Service" and "Emp.Service".

I have created the builds to be triggered when there is any change on either of the solutions.

On build server the source code is dropped on 2 separate folders.

My problem is first build gets success and the second one is failing for the below reason:

CSC: Unexpected error creating debug information file 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB' -- 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB: The process cannot access the file because it is being used by another process.

 

I tried several things:

  1. I tried to give some time and triggered manually the second build, but still the same error.
  2. After giving lot of hits, i got it success. But cant use this option always.

Could you please help me in resolving the issue.

 

 

2 builds simultaneous ga kick in avtunnaya? Did u exclude all other files in the build (exclude generated debug symbols, etcc) ?

Posted

2 builds simultaneous ga kick in avtunnaya? Did u exclude all other files in the build (exclude generated debug symbols, etcc) ?

the builds will get triggered one after the other....

Posted

the builds will get triggered one after the other....

 

Are u following any build template? What about excluding debug symols, etc? It's clear that the first build is locking that pdb debug file (which is not really needed for publishing) while the 2nd build is waiting for it.

Posted

Are u following any build template? What about excluding debug symols, etc? It's clear that the first build is locking that pdb debug file (which is not really needed for publishing) while the 2nd build is waiting for it.

in my build definition, i have Default Template been used.

 

where can i look for excluding debug symbols ?

Posted

in my build definition, i have Default Template been used.

 

where can i look for excluding debug symbols ?

 

Visual Studio lo project properties lo build lo untadi. TFS build definition lo untado ledo gurtu ledu... I don't have it to see n tell u.

 

Try this and test your luck!

Posted

Visual Studio lo project properties lo build lo untadi. TFS build definition lo untado ledo gurtu ledu... I don't have it to see n tell u.

 

Try this and test your luck!

its not there in Build tab of project properties...

Posted

its not there in Build tab of project properties...

 

Try Project -> properties -> Package/Publish Web

Posted

Try Project -> properties -> Package/Publish Web

the common project that i am talking about is Class library project type...... its not web or svc....

Posted

Delete the pdb files and build the application again. Then start publishing

Posted

pdb akarledu kadu why to even psuh them..ignore cheyachu emo kada specific extension files

 

Hi,

Here's my scenario -

I have a common project "My.DataContracts", this project is used by 2 solutions ("Student.Service" and "Emp.Service").

I have added the project to these solutions using add existing project. So i will see this common project in both the solutions.

Now i have created 2 separate build definitions for "Student.Service" and "Emp.Service".

I have created the builds to be triggered when there is any change on either of the solutions.

On build server the source code is dropped on 2 separate folders.

My problem is first build gets success and the second one is failing for the below reason:

CSC: Unexpected error creating debug information file 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB' -- 'f:\WORKINGDIR\DevCIEmplSvc\src\Services\TFS-EmplSvc\MyDataContracts\obj\Dev\MyDataContracts.PDB: The process cannot access the file because it is being used by another process.

 

I tried several things:

  1. I tried to give some time and triggered manually the second build, but still the same error.
  2. After giving lot of hits, i got it success. But cant use this option always.

Could you please help me in resolving the issue.

 

 

Posted

Delete the pdb files and build the application again. Then start publishing

i am not publishing... this pdb is build part of build on the build server....

Posted

Found the solution for my qs:

I had to change the configuration setting to Release and it did the magic.

×
×
  • Create New...