ho ottenuto la seguente struttura:squadra Costruire con più progetti del team
$
--TeamProject1
---Solution1.sln
----TestProject1
--TeamProject2
---Solution2.sln
----TestProject2
In TestProject1, aggiungo TestProject2.dll come riferimento (non un riferimento al progetto, ma un riferimento al file). La mia domanda è: come costruire una soluzione che faccia riferimento a gruppi appartenenti a diversi progetti di team?
ho avuto il file TFSBuild.proj contenente le seguenti informazioni:
<TfCommand>$(TeamBuildRefPath)\..\tf.exe</TfCommand>
<SolutionToBuild Include="$(BuildProjectFolderPath)/../../DEV/TeamProject1.sln">
<Targets></Targets>
<Properties></Properties>
</SolutionToBuild>
<Map Include="$/TeamProject1">
<LocalPath>$(SolutionRoot)</LocalPath>
</Map>
<Map Include="$/TeamProject2">
<LocalPath>$(SolutionRoot)</LocalPath>
</Map>
<Target Name="BeforeGet">
<DeleteWorkspaceTask TeamFoundationServerUrl="$(TeamFoundationServerUrl)" Name="$(WorkspaceName)" />
<Exec WorkingDirectory="$(SolutionRoot)" Command=""$(TfCommand)" workspace /new $(WorkspaceName) /server:$(TeamFoundationServerUrl)" />
<Exec WorkingDirectory="$(SolutionRoot)" Command=""$(TfCommand)" workfold /unmap /workspace:$(WorkSpaceName) "$(SolutionRoot)"" />
<Exec WorkingDirectory="$(SolutionRoot)" Command=""$(TfCommand)" workfold /map /workspace:$(WorkSpaceName) /server:$(TeamFoundationServerUrl) "%(Map.Identity)" "%(Map.LocalPath)"" />
</Target>
Grazie in anticipo.
Xiaosu
Grazie per il tuo aggiornamento. Come mantenere TestProject2.dll in sincronia? Nella fase di sviluppo, TestProject2.dll potrebbe essere cambiato ogni settimana, quindi devo copiare manualmente TestProject2.dll da TeamProject2 alla cartella lib di TeamProject1 ?? Grazie. – Xiaosu